8000 Add support for materializeViews as schedule and task type by guodah · Pull Request #542 · tableau/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

Add support for materializeViews as schedule and task type #542

10000
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 6 commits into from
Dec 13, 2019

Conversation

guodah
Copy link
Contributor
@guodah guodah commented Dec 12, 2019

Currently, the schedule and task APIs only support one task type which is extractRefresh. The word is hardcoded in the library. The changes in this PR is to make them more general so that the caller can decide what type of schedule and task is to be used. The changes still make extractRefresh the default type so that it will not cause problems to anyone that is already using the existing APIs.

Examples:

  • Currently, server.tasks.get() gets all the extractRefresh tasks from a site. This will still work as is. But now users can call server.tasks.get(task_type=TaskItem.Type.MaterializeViews to get all the materializeViews tasks from a site.
  • Currently, server.schedules.add_to_schedule(schedule_id, target_workbook) will add a workbook to extractRefresh schedule. Again, this will remain working. But now users can call server.schedules.add_to_schedule(schedule_id, target_workbook, task_type=TaskItem.Type.MaterializeViews) to add a workbook to a materializeViews task to schedule.

The API version is changed to 3.8 for Tasks.get(...) in that the new GET /sites/site-id/tasks/materializedViews API will be under version 3.8.

@shinchris
Copy link
Contributor

🚀 Looks good to me!

@gaoang2148 gaoang2148 merged commit 90343ac into tableau:development Dec 13, 2019
guodah added a commit to guodah/server-client-python that referenced this pull request Dec 18, 2019
Add support for materializeViews as schedule and task type (tableau#542)
shinchris pushed a commit that referenced this pull request Feb 21, 2020
* Added a way to handle non-xml errors (#515)
* Added Webhooks endpoints for create, delete, get, list, and test (#523, #532)
* Added delete method in the tasks endpoint (#524)
* Added description attribute to WorkbookItem (#533)
* Added support for materializeViews as schedule and task types (#542)
* Added warnings to schedules (#550, #551)
* Added ability to update parent_id attribute of projects (#560, #567)
* Improved filename behavior for download endpoints (#517)
* Improved logging (#508)
* Fixed runtime error in permissions endpoint (#513)
* Fixed move_workbook_sites sample (#503)
* Fixed project permissions endpoints (#527)
* Fixed login.py sample to accept site name (#549)
shinchris pushed a commit that referenced this pull request Feb 21, 2020
Merging v0.10 changes from development to master

* Added a way to handle non-xml errors (#515)
* Added Webhooks endpoints for create, delete, get, list, and test (#523, #532)
* Added delete method in the tasks endpoint (#524)
* Added description attribute to WorkbookItem (#533)
* Added support for materializeViews as schedule and task types (#542)
* Added warnings to schedules (#550, #551)
* Added ability to update parent_id attribute of projects (#560, #567)
* Improved filename behavior for download endpoints (#517)
* Improved logging (#508)
* Fixed runtime error in permissions endpoint (#513)
* Fixed move_workbook_sites sample (#503)
* Fixed project permissions endpoints (#527)
* Fixed login.py sample to accept site name (#549)
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