fix(app): Update tip detection logic #15955
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes RQA-2935
Overview
Now, whenever a protocol run ends, show drop tip CTAs if the run command history shows the run ended with tips attached, even if this was intentionally done by the user (intentional in the sense of the protocol never explicitly specifying a drop tip before the run ends).
All the changes here really occur in
getPipettesWithTipAttached
, and there are two:Note that the run failure behavior and error recovery behavior remains the same.
Test Plan and Hands on Testing
Case 1, the client doesn't explicitly drop tips in their protocol (show the CTAs):
Case 2, the client does explicitly drop tips in their protocol (don't show the CTAs):
Changelog
Review requests
@SyntaxColoring points out that at the end of a run, the robot implictly drops the tip without an explicit drop tip at the end of a protocol:
Knowing this, are we still ok nagging the users with drop tip CTAs despite the tips not actually being there?
Risk assessment
low with the caveat mentioned in review requests