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

refactor(app): Update dropTipInPlace command text #16610

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

mjhuff
Copy link
Contributor

@mjhuff mjhuff commented Oct 25, 2024

Closes EXEC-182

Overview

This PR updates tip drop command text when trash is dropped into a waste container, increasing specificity. Unfortunately, the command metadata itself does not give any location when performing a drop tip, so the app must derive the location from looking at the most recent addressableArea command. Fortunately, this should never be a compute-heavy scan unless the protocol does something like "move to trash" followed by a ton of "dispense over trash" before dropping tips, which seems quite unlikely in practice. Regardless, this instance serves as an example of places in which we should reduce compute done on the app in the future.

While the newly added tests demonstrate a need for broader utilities for testing command text, I think keeping them locally scoped to this one file is fine for now - as we refactor command text (and add more testing), we can generalize these testing utilities.

297f366 - Better namespacing for utilities.
760e728 - Self explanatory.
870271d - Self explanatory given the subsequent commit.
5d543bc - Add the util necessary to derive the location, update the actual command text, and add testing!

Flex

Before

Screenshot 2024-10-25 at 12 33 53 PM

After

Screenshot 2024-10-25 at 1 57 07 PM

OT-2

Before

Screenshot 2024-10-25 at 2 39 44 PM

After

Screenshot 2024-10-25 at 2 38 56 PM

Test Plan and Hands on Testing

  • See images

Changelog

  • Dropping tips in a waste/trash bin now shows the name of the receptacle and slot if applicable.

Risk assessment

low

@mjhuff mjhuff requested review from ecormany and a team October 25, 2024 19:31
@mjhuff mjhuff requested a review from a team as a code owner October 25, 2024 19:31
@mjhuff mjhuff requested review from ncdiehl11 and removed request for a team and ncdiehl11 October 25, 2024 19:31
@mjhuff mjhuff force-pushed the app_update-drop-tip-cmd-text branch from 5d543bc to d9c64ca Compare October 28, 2024 12:47
Copy link
Contributor

@ecormany ecormany left a comment

Choose a reason for hiding this comment

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

Command text looks good. Works with movable trash (Flex) and dropping tips in labware too.

Copy link
Member

@sfoster1 sfoster1 left a 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, thanks. Glad you like that util!

@mjhuff mjhuff merged commit 288b8a4 into edge Oct 28, 2024
40 checks passed
@mjhuff mjhuff deleted the app_update-drop-tip-cmd-text branch October 28, 2024 14:03
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.

3 participants