Add tasks to organization and TaskStatus to filter tasks#1958
Merged
paulnoirel merged 5 commits intodevelopfrom Mar 20, 2025
Merged
Add tasks to organization and TaskStatus to filter tasks#1958paulnoirel merged 5 commits intodevelopfrom
paulnoirel merged 5 commits intodevelopfrom
Conversation
mnoszczak
requested changes
Mar 20, 2025
Contributor
mnoszczak
left a comment
There was a problem hiding this comment.
[gw16] [ 93%] FAILED [2025-03-20 13:10:06] tests/data/export/streamable/test_export_data_rows_streamable.py::TestExportDataRow::test_cancel_export_task
mnoszczak
approved these changes
Mar 20, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
To help customers with monitoring their tasks (especially the number of tasks in progress) we are adding the following:
Organization.tasks()to list all tasks in the OrganizationTaskStatuswhich is a new enumeration, useful to filter tasksTask.status_as_enumattribute of typeTaskStatusto match the type used in GraphQL and allow filters. Updating the type ofTask.status(string) would introduce a breaking change.cancel_type()is also updated to useTaskStatusto check if the task is in progress, and throw an error if the task does not have a cancelable type.Example:
Notes:
TaskStatususes theUnknowattribute if the value forTasks.status_as_enumdoesn't match an existing type.OrganizationTasksWhereInputwill require some changes for Task filtering to reach its full potential (aka filtering with AND at least)Type of change
Please delete options that are not relevant.
All Submissions
New Feature Submissions
Changes to Core Features