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

feat(protocol-designer): fixed trash id in correct slot depending on robot #13098

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Jul 13, 2023

closes RAUT-539

Overview

co-authored with @b-cooper

Flex protocols should have correct trash slot

Test Plan

sandbox: https://sandbox.designer.opentrons.com/pd_init-fixed-trash-location-for-flex

create an OT-2 protocol, the JSON file should say 12 for trash slot name. For Flex protocols, it should say A3 for trash slot name

Changelog

  • update changeSavedStepForm to also add the trash labware location and remove it from the hard coded const
  • create test for CreateFileWizard and test out the trash slot locations

Review requests

see test plan

Risk assessment

low

@jerader jerader requested review from b-cooper and a team July 13, 2023 17:04
@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Merging #13098 (894b0b4) into edge (23870fe) will decrease coverage by 0.17%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #13098      +/-   ##
==========================================
- Coverage   72.57%   72.40%   -0.17%     
==========================================
  Files        2382     1559     -823     
  Lines       65896    51734   -14162     
  Branches     7286     3230    -4056     
==========================================
- Hits        47821    37458   -10363     
+ Misses      16338    13761    -2577     
+ Partials     1737      515    -1222     
Flag Coverage Δ
protocol-designer 47.28% <100.00%> (+1.43%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...onents/modals/CreateFileWizard/EquipmentOption.tsx 100.00% <ø> (ø)
protocol-designer/src/step-forms/reducers/index.ts 57.35% <ø> (ø)
...r/src/components/modals/CreateFileWizard/index.tsx 79.22% <100.00%> (+79.22%) ⬆️

... and 832 files with indirect coverage changes

labwareLocationUpdate: {
[FIXED_TRASH_ID]: {
slotName:
values.fields.robotType === FLEX_ROBOT_TYPE ? 'A3' : '12',
Copy link
Contributor

@koji koji Jul 17, 2023

Choose a reason for hiding this comment

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

maybe define constants for ot2 trash and flex trash?

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.

The changes look good to me.
Created protocol files for ot2 and ot3. Each json file showed the correct slotName.

@jerader jerader merged commit 2d9df73 into edge Jul 17, 2023
@jerader jerader deleted the pd_init-fixed-trash-location-for-flex branch July 17, 2023 19:05
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.

None yet

3 participants