8000 feat: accept parameters for post endpoint by Udit107710 · Pull Request #850 · tableau/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

feat: accept parameters for post endpoint #850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Sep 23, 2021

Conversation

Udit107710
Copy link
Contributor

This will allow request parameters like timeout
to be set by user. Because the metadata api use
post_request endpoint, that endpoint will also
support adding request parameters.
This feature was already present in the GET
endpoint

Related issue: #849

Chris Shin and others added 4 commits February 17, 2021 12:18
[Release] Sync master with v0.15 changes
## 0.15.0 (16 Feb 2021)
* Added support for python version 3.9 (tableau#744)
* Added support for 'Get View by ID' (tableau#750)
* Added docs and test data to MANIFEST.in file (tableau#780)
* Added owner_id property to ProjectItem (tableau#784)
* Added support for skipping connection check while publishing workbook (tableau#791)
* Added support for 'Update Subscription' (tableau#794)
* Added support for 'Get Groups for a User' (tableau#799)
* Improved debug logging by including put/post request contents (tableau#743)
* Improved local and active-directory group creation (tableau#770)
* Improved 'Update Group' to match server requests/responses (tableau#772)
* Improved SiteItem with new properties and functions (tableau#777)
* Improved SubscriptionItem with new properties (tableau#794)
* Improved the 'type' property of TaskItem to convert server response to enum (tableau#796)
* Improved repository to use Github Actions for running tests/linter (tableau#798)
* Fixed data_acceleration field causing error in workbook update payload (tableau#741)
This will allow request parameters like timeout
to be set by user. Because the metadata api use
post_request endpoint, that endpoint will also
support adding request parameters.
This feature was already present in the GET
endpoint
@bcantoni
Copy link
Contributor

Hi @Udit107710 thanks for the pull request!

While we wait for a review we'll also need to ask you to submit a Contributor License Agreement - details are listed here: http://tableau.github.io/contributing.html

8000
@t8y8
Copy link
Collaborator
t8y8 commented Jun 17, 2021

Generally speaking, this is probably a good idea!

However, curious the use case -- the GraphQL API itself has a server-side timeout of 60 seconds by default, is there a reason you want to set that on the client side to a lower value?

@Udit107710
Copy link
Contributor Author

@t8y8 I did not know about the 60 sec timeout. But even then, I think it will be good to have common functionality across the endpoints

@bcantoni
Copy link
Contributor

Thanks Udit for the CLA; updated tags here to reflect.

@t8y8
Copy link
Collaborator
t8y8 commented Jun 23, 2021

@Udit107710 fair enough -- but yeah the metadata api times out 60 seconds by default, and returns an error on the error payload.

Still, change is reasonable -- can you target it against development instead of master? I'm also not sure if the formatting will match the formatter or not; you can run black against the file to see.

@jacalata jacalata changed the base branch from master to development June 24, 2021 06:38
@Udit107710
Copy link
Contributor Author

@jacalata I think you have incorrectly merged development into my branch

@Udit107710 Udit107710 changed the title feat: accept parameters for metadata api feat: accept parameters for post endpoint Jun 24, 2021
@Udit107710
Copy link
Contributor Author
Udit107710 commented Jun 24, 2021

@t8y8 Ran the check by pycodestyle and that passed. Didn't know about the check by black. Checking and updating branch

@t8y8
Copy link
Collaborator
t8y8 commented Jun 30, 2021

This PR doesn't have the "auto mergeable" checkmark which makes me somewhat nervous -- I think because it was branched from master, it includes the issue template (which we don't need in dev). Can you rebase on development rather than retarget the PR? That should fix it... I think.

Otherwise looks good.

@bcantoni
Copy link
Contributor
bcantoni commented Jul 1, 2021

Thanks @t8y8 good catch - @Udit107710 I think if you rebase this PR against the current development branch here, that should fix it.

@bcantoni
Copy link
Contributor

@Udit107710 reminder ping on this one - could you please rebase your branch from the current tableau:development branch? Then we should be able to merge.

@jacalata
Copy link
Contributor

I fixed the conflict, it was an update in content type.

@jacalata jacalata merged commit 29a71b0 into tableau:development Sep 23, 2021
@Udit107710
Copy link
Contributor Author

I fixed the conflict, it was an update in content type.

Thanks @jacalata

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0