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(protocol-designer): fix slotOverflowMenu for tipracks on adapters and update path selection for trash bin #16908

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

syao1226
Copy link
Collaborator

@syao1226 syao1226 commented Nov 20, 2024

fix RQA-3607

Overview

In this PR, I updated the SlotOverflowMenu to disallow adding liquid and renaming labware for tipracks on adapters. Additionally, I updated updatePatchOnWellRatioChange to check if the dispense_labware includes 'movableTrash' or 'fixedTrash'. This fixes the issue where the consolidate path could not be selected when dispensing liquid into the trash bin.

Test Plan and Hands on Testing

Changelog

  • Added const isTiprackAdapter in SlotOverflowMenu to check if the slot is a tiprack adapter.

Review requests

Risk assessment

@syao1226 syao1226 marked this pull request as ready for review November 20, 2024 17:11
@syao1226 syao1226 requested a review from a team as a code owner November 20, 2024 17:11
@syao1226 syao1226 requested a review from jerader November 20, 2024 17:15
Comment on lines 117 to 119
const isTiprackAdapter =
labwareOnSlot?.id.includes('tiprack') && isLabwareAnAdapter

Copy link
Collaborator

Choose a reason for hiding this comment

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

what you have works but is a bit brittle, there could be an event where we add a new labware that meets those conditions that we want to add liquid to. i recommend instead, searching for the quirk tiprackAdapterFor96Channel. you can find it from labwareOnSlot.def.parameters

Copy link
Collaborator

Choose a reason for hiding this comment

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

here's the file path for the adapter definition so you can check it out shared-data/labware/definitions/2/opentrons_flex_96_tiprack_adapter/1.json

@syao1226 syao1226 changed the title fix(protocol-designer): disallowing adding liquid and renaming labware for tipracks on adapters fix(protocol-designer): fix slotOverflowMenu for tipracks on adapters and update path selection for trash bin Nov 20, 2024
Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

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

lgtm!

@syao1226 syao1226 merged commit 2db2805 into edge Nov 20, 2024
14 checks passed
@syao1226 syao1226 deleted the pd-fix-tiprack-adapter branch November 20, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants