-
Notifications
You must be signed in to change notification settings - Fork 66
Add tasks to organization and TaskStatus to filter tasks #1958
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done, lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[gw16] [ 93%] FAILED [2025-03-20 13:10:06] tests/data/export/streamable/test_export_data_rows_streamable.py::TestExportDataRow::test_cancel_export_task
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 OrganizationTaskStatus
which is a new enumeration, useful to filter tasksTask.status_as_enum
attribute of typeTaskStatus
to 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 useTaskStatus
to check if the task is in progress, and throw an error if the task does not have a cancelable type.Example:
Notes:
TaskStatus
uses theUnknow
attribute if the value forTasks.status_as_enum
doesn't match an existing type.OrganizationTasksWhereInput
will 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