-
Notifications
You must be signed in to change notification settings - Fork 3
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
[ENHC0010020] Delete multiple samples from project samples table #629
Conversation
b593738
to
72d353c
Compare
2e2d8fc
to
ecabed6
Compare
ea3e9e0
to
a9ac17a
Compare
app/javascript/controllers/projects/samples/single_delete_controller.js
Outdated
Show resolved
Hide resolved
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.
Just have one comment to start
1c59825
to
368cdf1
Compare
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.
This looks really good. I think I just have one comment below
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.
I think this looks good to me
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.
This is looking good just have one more comment for now
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.
As discussed instead of having methods such as new_*
lets try to move this into a deletions_controller for samples
A |
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.
Just a few comments for now
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.
This looks good to me
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.
A couple of changes to remove authorizations that are already being done in the services
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.
Looks great! 👍
df79672
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.
Looks good to me!
Simplecov Report
|
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.
Looks good to me!
What does this PR do and why?
This PR adds the ability to delete multiple samples from a project samples table.
In addition to this, other changes related to the changes required for this PR include:
infinite_scroll_controller
to use singular/plural forms based on number of selected samplesScreenshots or screen recordings
Screencast.from.2024-06-19.09.36.05.AM.webm
Multi_status message:
Error:
How to set up and validate locally
Deleting Multiple Samples:
Check the following:
Singular/Plural descriptions in sample dialogs:
Test single removal links while the item was selected with a checkbox
Test remaining checked samples after a removal still behave correctly
Remove
link to remove a sampleTest "Select All" checkbox and disabled button states after single removal
Remove
linkRemove
linkRepeat the above for the sample files
PR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.