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

Fix cancelling any pending job from /tests/overview #5824

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

okurz
Copy link
Member

@okurz okurz commented Aug 6, 2024

As @perlpunk found out jobs in "uploading" state can be cancelled from
the tests details page but not the overview page. Also the alignment of
icons looks bad in that case as any row with a job in "uploading" shows
neither the "retrigger" nor the "cancel" action. This commit fixes this
problem for jobs in any "pending state" including not only "uploading"
but also "assigned" or "setup". The change changes the explicit check for
equality to a proper "any" check against the aggregate constant as we
should be using anyway.

Visualization of the problem:
Screenshot_20240806_114745_uploading_job_can_not_be_cancelled

As @perlpunk found out jobs in "uploading" state can be cancelled from
the tests details page but not the overview page. Also the alignment of
icons looks bad in that case as any row with a job in "uploading" shows
neither the "retrigger" nor the "cancel" action. This commit fixes this
problem for jobs in any "pending state" including not only "uploading"
but also "assigned" or "setup". The change changes the explicit check for
equality to a proper "any" check against the aggregate constant as we
should be using anyway.
@mergify mergify bot merged commit 097cf1d into os-autoinst:master Aug 6, 2024
38 checks passed
@okurz okurz deleted the fix/cancel_overview branch August 6, 2024 10:31
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.

4 participants