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): add dependent fields when tiprack changes #16790

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Nov 13, 2024

closes RQA-3541

Overview

Reset the flow rate fields when the tiprack changes, also reset the nozzle and tiprack fields when pipette changes. For mix and transfer forms

Test Plan and Hands on Testing

Create a protocol and add 3 tipracks for 1 pipette. Create a transfer form and add a custom aspirate and dispense flow rate. then go back and change the tiprack to another one. see that the flow rates got reset back to default. Test it also with the mix form.

Changelog

  • add a patch in mix and transfer to reset the fields when tiprack changes and expand a few fields for when pipette changes

Risk assessment

low

@jerader jerader requested a review from a team as a code owner November 13, 2024 16:34
@jerader jerader requested review from koji and ncdiehl11 November 13, 2024 16:34
Comment on lines +144 to +145
'tipRack',
'nozzles'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added tiprack and nozzles as well in here because if the user changes the pipette, we probably want both of these fields to be reset as well.

pipetteEntities: PipetteEntities
): FormPatch => {
if (fieldHasChanged(rawForm, patch, 'tipRack')) {
const pipette = patch.pipette
Copy link
Contributor

Choose a reason for hiding this comment

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

nit
const { pipette } = patch

Copy link
Contributor

@koji koji left a comment

Choose a reason for hiding this comment

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

lgtm

@jerader jerader merged commit 8835d1f into edge Nov 13, 2024
14 checks passed
@jerader jerader deleted the pd_reset-flow-rate branch November 13, 2024 17:46
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