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

✨ Add cancel option for multiple analyses #2099

Merged

Conversation

MiriSafra
Copy link
Contributor

@MiriSafra MiriSafra commented Sep 17, 2024

Added support for cancelling multiple analyses simultaneously. Integrated functionality into the actions menu for bulk applications.
Resolves: https://issues.redhat.com/browse/MTA-3639

New Bulk Cancel Analyses Button
Screenshot from 2024-10-30 11-20-18
Cancel Analyses Button Disabled When No Applications Are Selected
Screenshot from 2024-10-30 11-07-24
Cancel Analyses Button Disabled When No Running Analyses Are Selected
Screenshot from 2024-10-30 11-07-02
Confirm Dialog Triggered on Cancel Analyses Button Click
Screenshot from 2024-10-30 11-05-06
Action Cancels All Running Analyses for Selected Applications
Screenshot from 2024-10-30 11-06-27

@MiriSafra MiriSafra force-pushed the shevi_miri_feature/cancel-multiple-analyses branch from 55a4d7a to cf9e79e Compare September 17, 2024 16:26
@MiriSafra MiriSafra changed the title ✨ add cancel for multiple analyses ✨ add cancel option for multiple analyses Sep 17, 2024
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.98%. Comparing base (b654645) to head (0406cf1).
Report is 242 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2099      +/-   ##
==========================================
+ Coverage   39.20%   41.98%   +2.78%     
==========================================
  Files         146      175      +29     
  Lines        4857     5630     +773     
  Branches     1164     1341     +177     
==========================================
+ Hits         1904     2364     +460     
- Misses       2939     3250     +311     
- Partials       14       16       +2     
Flag Coverage Δ
client 41.98% <ø> (+2.78%) ⬆️
server ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MiriSafra MiriSafra marked this pull request as ready for review September 17, 2024 20:27
@mguetta1 mguetta1 marked this pull request as draft September 17, 2024 20:58
@MiriSafra MiriSafra force-pushed the shevi_miri_feature/cancel-multiple-analyses branch 2 times, most recently from d8c2bb5 to 09d2827 Compare September 18, 2024 12:49
@MiriSafra MiriSafra force-pushed the shevi_miri_feature/cancel-multiple-analyses branch from 09d2827 to 3302462 Compare September 18, 2024 13:59
@MiriSafra MiriSafra marked this pull request as ready for review September 24, 2024 15:00
@mguetta1 mguetta1 marked this pull request as draft September 26, 2024 05:42
@MiriSafra MiriSafra changed the title ✨ add cancel option for multiple analyses ✨ Add cancel option for multiple analyses Sep 26, 2024
@MiriSafra MiriSafra marked this pull request as ready for review October 6, 2024 10:40
Copy link
Collaborator

@rszwajko rszwajko left a comment

Choose a reason for hiding this comment

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

The action looks good! The missing part is confirmation dialog - user needs to confirm all destructive actions to prevent accidental loss of data.
Please also attach screenshots presenting the change.

MiriSafra and others added 3 commits October 30, 2024 11:50
Signed-off-by: MiriSafra <[email protected]>
Signed-off-by: shevijacobson <[email protected]>
Copy link
Collaborator

@rszwajko rszwajko left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for contributing!
As a follow-up, could you create an issue to implement bulk canceling? Similar as it's done for deleting applications.

Copy link
Member

@sjd78 sjd78 left a comment

Choose a reason for hiding this comment

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

There is something off with the isTaskCancellable test. When I select a single application that has no anlaysis task at all, the cancel action should be disabled. Right now it is not.

Copy link
Contributor Author

@MiriSafra MiriSafra left a comment

Choose a reason for hiding this comment

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

Updated isTaskCancellable with !!task check.

@MiriSafra MiriSafra requested a review from sjd78 October 30, 2024 18:38
Copy link
Member

@sjd78 sjd78 left a comment

Choose a reason for hiding this comment

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

LGTM

@sjd78 sjd78 merged commit 2bc6eb1 into konveyor:main Nov 4, 2024
12 checks passed
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