Skip to content
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

Change TaskStatus to UserDefinedValue #2250

Merged
merged 1 commit into from
Aug 25, 2023
Merged

Change TaskStatus to UserDefinedValue #2250

merged 1 commit into from
Aug 25, 2023

Conversation

swallez
Copy link
Member

@swallez swallez commented Aug 25, 2023

Replaces TaskStatus with a UserDefinedValue. Fixes #2249.

In the ES code base this is just an interface with this comment: "These can vary wildly from task to task because each task is implemented differently but we should try to keep each task consistent from version to version where possible".

So we cannot make any assumption on the fields that will actually be there.

@github-actions
Copy link
Contributor

Following you can find the validation results for the APIs you have changed.

API Status Request Response
tasks.cancel 🟢 2/2 2/2
tasks.get 🟢 10/10 10/10
tasks.list 🟢 8/8 8/8

You can validate these APIs yourself by using the make validate target.

Copy link
Contributor

@technige technige left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, given the reasoning you mentioned on Slack.

@swallez swallez merged commit 63b1e45 into main Aug 25, 2023
6 checks passed
@swallez swallez deleted the fix-task-status branch August 25, 2023 16:02
github-actions bot pushed a commit that referenced this pull request Aug 25, 2023
swallez added a commit that referenced this pull request Aug 25, 2023
swallez added a commit that referenced this pull request Sep 7, 2023
swallez added a commit that referenced this pull request Sep 7, 2023
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revisit the TaskInfo API types
2 participants