Add tasks to organization and TaskStatus to filter tasks #1958
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 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