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

fix(app): add affordances for tip detection failures #16828

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

mjhuff
Copy link
Contributor

@mjhuff mjhuff commented Nov 14, 2024

Closes RQA-3589

Overview

At the end of a protocol run, we execute tip detection logic to determine whether or not we should pop drop tip CTAs. There are a few network requests necessary to make this work, and we are not error handling if any of these requests fail.

This PR adds a general fallback: if almost any network request fails, let's just assume both pipettes have tips attached and pop the CTAs (assuming the pipettes have ok firmware status). It's probably better to be more conservative here, and in practice, this exact scenario should occur rarely.

Note that the very first request we make is to get the currently attached instruments. If this request fails, we can't do drop tip wizard, so we shouldn't show CTAs. The only workaround here would be going to design and coming up with some sort of "can't detect tips" copy. At the very least, the user can always go to drop tip wizard manually and handle tips there.

Test Plan and Hands on Testing

  • Ran drop tip wizard in various places, confirming it worked.

Changelog

  • Added better error handling to tip detection logic.

Risk assessment

low

@mjhuff mjhuff requested review from sfoster1, TamarZanzouri, smb2268 and a team November 14, 2024 18:47
@mjhuff mjhuff requested a review from a team as a code owner November 14, 2024 18:47
const pipettesWithTipAttached = attachedPipettes.filter(
attachedPipette =>
mountsWithTipAttached.includes(attachedPipette.mount) &&
attachedPipette.ok
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just slightly safer but we really should never be able to get through a protocol with bad pipettes.

@mjhuff mjhuff force-pushed the app_add-error-handling-tip-status branch from a9c5f18 to af0d840 Compare November 14, 2024 18:50
Copy link
Contributor

@smb2268 smb2268 left a comment

Choose a reason for hiding this comment

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

lgtm!

@mjhuff mjhuff merged commit 972c592 into chore_release-8.2.0 Nov 14, 2024
30 checks passed
@mjhuff mjhuff deleted the app_add-error-handling-tip-status branch November 14, 2024 20:47
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.

2 participants