-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagster-tableau][fix] Update workbooks and view endpoint (#25085)
## Summary & Motivation Previous implementation worked well when multiple workbooks exist in a workspace, but could not be loaded in Dagster when only one workbook exists. Parsing a XML response with only one workbook would create a JSON object like `{"workbooks": {"workbook": {"id": "my_id"}}}` but one with many workbooks would be `{"workbooks": {"workbook": [{"id": "my_id_1"}, ..., {"id": "my_id_n"}]}}` Updates the code to use `tableauserverclient.WorkbookItem` and `tableauserverclient.ViewItem` instead of XML and JSON objects - Tableau handles parsing their API response in these classes. ## How I Tested These Changes BK with updated tests. ## Changelog NOCHANGELOG - [ ] `NEW` _(added new feature or capability)_ - [ ] `BUGFIX` _(fixed a bug)_ - [ ] `DOCS` _(added or updated documentation)_
- Loading branch information
1 parent
78650e1
commit 01de388
Showing
3 changed files
with
89 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters