8000 Code cleanup by scuml · Pull Request #618 · tableau/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@scuml
Copy link
Contributor
@scuml scuml commented May 11, 2020

Updates code removing unused imports, duplicate imports, and fixes an error in project_item.py.

Chris Shin and others added 7 commits October 4, 2019 14:20
Release v0.9
## 0.9 (4 Oct 2019)

* Added Metadata API endpoints (tableau#431)
* Added site settings for Data Catalog and Prep Conductor (tableau#434)
* Added new fields to ViewItem (tableau#331)
* Added support and samples for Tableau Server Personal Access Tokens (tableau#465)
* Added Permissions endpoints (tableau#429)
* Added tags to ViewItem (tableau#470)
* Added Databases and Tables endpoints (tableau#445)
* Added Flow endpoints (tableau#494)
* Added ability to filter projects by topLevelProject attribute (tableau#497)
* Improved server_info endpoint error handling (tableau#439)
* Improved Pager to take in keyword arguments (tableau#451)
* Fixed UUID serialization error while publishing workbook (tableau#449)
* Fixed materalized views in request body for update_workbook (tableau#461)
* delete folder

* add back readme for docs
Merging v0.10 changes from development to master

* Added a way to handle non-xml errors (tableau#515)
* Added Webhooks endpoints for create, delete, get, list, and test (tableau#523, tableau#532)
* Added delete method in the tasks endpoint (tableau#524)
* Added description attribute to WorkbookItem (tableau#533)
* Added support for materializeViews as schedule and task types (tableau#542)
* Added warnings to schedules (tableau#550, tableau#551)
* Added ability to update parent_id attribute of projects (tableau#560, tableau#567)
* Improved filename behavior for download endpoints (tableau#517)
* Improved logging (tableau#508)
* Fixed runtime error in permissions endpoint (tableau#513)
* Fixed move_workbook_sites sample (tableau#503)
* Fixed project permissions endpoints (tableau#527)
* Fixed login.py sample to accept site name (tableau#549)
The logger statement is using the parameter to output the id of the user, but that isnt set until line 67 and saved to a new variable. We want the logger statement to use that new user
Merge development into master for v0.11 release

v0.11 (1 May 2020)

-Added more fields to Data Acceleration config (tableau#588)
-Added OpenID as an auth setting enum (tableau#610)
-Added support for Data Acceleration Reports (tableau#596)
-Added support for view permissions (tableau#526)
-Materialized views changed to Data Acceleration (tableau#576)
-Improved consistency across workbook/datasource endpoints (tableau#570)
-Fixed print error in update_connection.py (tableau#602)
-Fixed log error in add user endpoint (tableau#608)
@t8y8
Copy link
Collaborator
t8y8 commented May 12, 2020

@scuml thanks for the flurry of PRs -- have you submitted the CLA? (I can't check at the moment)

@t8y8
Copy link
Collaborator
t8y8 commented May 12, 2020

And what did you use to find these? flake8 or something similar?

@scuml
Copy link
Contributor Author
scuml commented May 12, 2020

CLA has been submitted. And yes, these were found with flake8.

@t8y8 t8y8 merged commit cb00345 into tableau:development May 13, 2020
gaoang2148 pushed a commit that referenced this pull request Jul 10, 2020
* Sync development with master branch (#613)

* delete docs folder from master (#520)

* delete folder

* add back readme for docs

* Fix logger statement in User.add (#608)

The logger statement is using the parameter to output the id of the user, but that isnt set until line 67 and saved to a new variable. We want the logger statement to use that new user

Co-authored-by: Jac <jacalata@users.noreply.github.com>
Co-authored-by: Reba Magier <rebeccam@syapse.com>

* Adds hidden_views parameter to publish() (#614)

* delete docs folder from master (#520)

* delete folder

* add back readme for docs

* Fix logger statement in User.add (#608)

The logger statement is using the parameter to output the id of the user, but that isnt set until line 67 and saved to a new variable. We want the logger statement to use that new user

* Adds hidden views parameter to workbook publish

* Pycodestyle

Co-authored-by: Chris Shin <cshin@tableau.com>
Co-authored-by: Jac <jacalata@users.noreply.github.com>
Co-authored-by: Reba Magier <rebeccam@syapse.com>

* Code cleanup (#618)

* delete docs folder from master (#520)

* delete folder

* add back readme for docs

* Fix logger statement in User.add (#608)

The logger statement is using the parameter to output the id of the user, but that isnt set until line 67 and saved to a new variable. We want the logger statement to use that new user

* Cleans up imports and fixes some errors along the way

* pycodestyle fix for single char var name

Co-authored-by: Chris Shin <cshin@tableau.com>
Co-authored-by: Jac <jacalata@users.noreply.github.com>
Co-authored-by: Reba Magier <rebeccam@syapse.com>

* update comment to say Python 3.5 is required to run samples (#619)

* update comment to say Python 3.5 is required to run samples

* pycodestyle fix for single char var name

* Simple Paging Endpoint for GraphQL/Metadata API (#623)

Because GraphQL can be arbitrarily complex and nested, we can't get as smart with an automatic Pager object without parsing the query, and that's a can of worms.

So for now, I added a new endpoint that will take a single query with one set of pagination parameters and run through it until it ends. It's not very smart, but it works.

* Support Metadata Services Backfill & Eventing APIs (#626)

Simple JSON endpoints that return the status of Metadata Services related events.

* Adds in maxage param to csv and pdf export options (#635)

* Adds in maxage param to csv and pdf export options

* Fixes style issue

* Adding named param to test to be clear

* User favorites endpoint (#638)

* Create FavoriteRequest factory

* Create favorites_endpoint

* Enable addition of favorites

* Enabled deletion of favorites

* Fix XML response calls

* Genericize descriptor

* Fix typo

* Remove outdated content

* Use more descriptive variable names

* Adjust API version

* Create Favorite "enum"

* Factor response parsing logic to model

The favorites item is now a dictionary.
The user_item has been altered to reflect this.

* Test favorites.get

* Test adding a favorite workbook

* Test adding favorite view

* Test adding favorite data source

* Test adding favorite project

* Test favorite deletion

* Expand favorites test_get

* Unpack list of views in class method response

* Add Favorites back to import

* Replace deprecated assertEquals with assertEqual

* Rename Favorite FavoriteItem and encapsulate

Co-authored-by: Woods <jordan.woods@mkcorp.com>

* Fixing style error

* Fixes maxage to allow 0 as input (#639)

* Adds a sample for publishing datasources (#644)

* Adds a sample for publishing datasources

* Addresses feedback to use PAT and async flag

* Prep for v0.12 (#645)

* delete docs folder from master (#520)

* delete folder

* add back readme for docs

* Fix logger statement in User.add (#608)

The logger statement is using the parameter to output the id of the user, but that isnt set until line 67 and saved to a new variable. We want the logger statement to use that new user

* Prepares v0.12 release

* Fixes typo in changelog

Co-authored-by: Jac <jacalata@users.noreply.github.com>
Co-authored-by: Reba Magier <rebeccam@syapse.com>

Co-authored-by: Jac <jacalata@users.noreply.github.com>
Co-authored-by: Reba Magier <rebeccam@syapse.com>
Co-authored-by: Stephen Mitchell <scum@mac.com>
Co-authored-by: Mary Brennan <mbren@users.noreply.github.com>
Co-authored-by: Tyler Doyle <kingt8y8@gmail.com>
Co-authored-by: jorwoods <jorwoods@users.noreply.github.com>
Co-authored-by: Woods <jordan.woods@mkcorp.com>
shinchris pushed a commit that referenced this pull request Jul 10, 2020
* delete docs folder from master (#520)

* delete folder

* add back readme for docs

* Fix logger statement in User.add (#608)

The logger statement is using the parameter to output the id of the user, but that isnt set until line 67 and saved to a new variable. We want the logger statement to use that new user

* Development to master for v0.12 (#646)

* Sync development with master branch (#613)

* delete docs folder from master (#520)

* delete folder

* add back readme for docs

* Fix logger statement in User.add (#608)

The logger statement is using the parameter to output the id of the user, but that isnt set until line 67 and saved to a new variable. We want the logger statement to use that new user

Co-authored-by: Jac <jacalata@users.noreply.github.com>
Co-authored-by: Reba Magier <rebeccam@syapse.com>

* Adds hidden_views parameter to publish() (#614)

* delete docs folder from master (#520)

* delete folder

* add back readme for docs

* Fix logger statement in User.add (#608)

The logger statement is using the parameter to output the id of the user, but that isnt set until line 67 and saved to a new variable. We want the logger statement to use that new user

* Adds hidden views parameter to workbook publish

* Pycodestyle

Co-authored-by: Chris Shin <cshin@tableau.com>
Co-authored-by: Jac <jacalata@users.noreply.github.com>
Co-authored-by: Reba Magier <rebeccam@syapse.com>

* Code cleanup (#618)

* delete docs folder from master (#520)

* delete folder

* add back readme for docs

* Fix logger statement in User.add (#608)

The logger statement is using the parameter to output the id of the user, but that isnt set until line 67 and saved to a new variable. We want the logger statement to use that new user

* Cleans up imports and fixes some errors along the way

* pycodestyle fix for single char var name

Co-authored-by: Chris Shin <cshin@tableau.com>
Co-authored-by: Jac <jacalata@users.noreply.github.com>
Co-authored-by: Reba Magier <rebeccam@syapse.com>

* update comment to say Python 3.5 is required to run samples (#619)

* update comment to say Python 3.5 is required to run samples

* pycodestyle fix for single char var name

* Simple Paging Endpoint for GraphQL/Metadata API (#623)

Because GraphQL can be arbitrarily complex and nested, we can't get as smart with an automatic Pager object without parsing the query, and that's a can of worms.

So for now, I added a new endpoint that will take a single query with one set of pagination parameters and run through it until it ends. It's not very smart, but it works.

* Support Metadata Services Backfill & Eventing APIs (#626)

Simple JSON endpoints that return the status of Metadata Services related events.

* Adds in maxage param to csv and pdf export options (#635)

* Adds in maxage param to csv and pdf export options

* Fixes style issue

* Adding named param to test to be clear

* User favorites endpoint (#638)

* Create FavoriteRequest factory

* Create favorites_endpoint

* Enable addition of favorites

* Enabled deletion of favorites

* Fix XML response calls

* Genericize descriptor

* Fix typo

* Remove outdated content

* Use more descriptive variable names

* Adjust API version

* Create Favorite "enum"

* Factor response parsing logic to model

The favorites item is now a dictionary.
The user_item has been altered to reflect this.

* Test favorites.get

* Test adding a favorite workbook

* Test adding favorite view

* Test adding favorite data source

* Test adding favorite project

* Test favorite deletion

* Expand favorites test_get

* Unpack list of views in class method response

* Add Favorites back to import

* Replace deprecated assertEquals with assertEqual

* Rename Favorite FavoriteItem and encapsulate

Co-authored-by: Woods <jordan.woods@mkcorp.com>

* Fixing style error

* Fixes maxage to allow 0 as input (#639)

* Adds a sample for publishing datasources (#644)

* Adds a sample for publishing datasources

* Addresses feedback to use PAT and async flag

* Prep for v0.12 (#645)

* delete docs folder from master (#520)

* delete folder

* add back readme for docs

* Fix logger statement in User.add (#608)

The logger statement is using the parameter to output the id of the user, but that isnt set until line 67 and saved to a new variable. We want the logger statement to use that new user

* Prepares v0.12 release

* Fixes typo in changelog

Co-authored-by: Jac <jacalata@users.noreply.github.com>
Co-authored-by: Reba Magier <rebeccam@syapse.com>

Co-authored-by: Jac <jacalata@users.noreply.github.com>
Co-authored-by: Reba Magier <rebeccam@syapse.com>
Co-authored-by: Stephen Mitchell <scum@mac.com>
Co-authored-by: Mary Brennan <mbren@users.noreply.github.com>
Co-authored-by: Tyler Doyle <kingt8y8@gmail.com>
Co-authored-by: jorwoods <jorwoods@users.noreply.github.com>
Co-authored-by: Woods <jordan.woods@mkcorp.com>

Co-authored-by: Jac <jacalata@users.noreply.github.com>
Co-authored-by: Reba Magier <rebeccam@syapse.com>
Co-authored-by: Stephen Mitchell <scum@mac.com>
Co-authored-by: Mary Brennan <mbren@users.noreply.github.com>
Co-authored-by: Tyler Doyle <kingt8y8@gmail.com>
Co-authored-by: jorwoods <jorwoods@users.noreply.github.com>
Co-authored-by: Woods <jordan.woods@mkcorp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0