Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add support for materializeViews as schedule and task type#542

Merged
gaoang2148 merged 6 commits intotableau:developmenttableau/server-client-python:developmentfrom
guodah:materialize_views_taskguodah/server-client-python:materialize_views_taskCopy head branch name to clipboard
Dec 13, 2019
Merged

Add support for materializeViews as schedule and task type#542
gaoang2148 merged 6 commits intotableau:developmenttableau/server-client-python:developmentfrom
guodah:materialize_views_taskguodah/server-client-python:materialize_views_taskCopy head branch name to clipboard

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.

tableauserverclient/server/endpoint/tasks_endpoint.py Outdated Show resolved Hide resolved
tableauserverclient/server/endpoint/tasks_endpoint.py Outdated Show resolved Hide resolved
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.