-
Notifications
You must be signed in to change notification settings - Fork 179
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(api): disallow moving a fixed-trash labware #13534
fix(api): disallow moving a fixed-trash labware #13534
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## chore_release-7.0.0 #13534 +/- ##
====================================================
Coverage 71.32% 71.32%
====================================================
Files 1586 1586
Lines 52792 52792
Branches 3437 3437
====================================================
Hits 37656 37656
Misses 14606 14606
Partials 530 530
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Code looks great to me. Will test today.
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.
Tested, works as described. 🚮
if labware_validation.validate_if_labware_is_fixed_trash( | ||
current_labware_definition | ||
): |
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 we should just use the labware_view.is_fized_trash()
check to test if this is the fixed trash. We really only care about the 'fixed' trash in slot 12/ A3 and want to keep that fixed/ unmovable.
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.
done!
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.
🙌 Thanks for the quick fix!!
Overview
follow up work for #13504.
disallow moving a labware if it has a fixed trash quirk.
Test Plan
try moving a fixed trash labware. make sure it raises.
try moving a non fixed-trash labware - make sure it works as expected.
Changelog
Risk assessment
low. should only affect fixed-trash labware in move-labware.