-
Notifications
You must be signed in to change notification settings - Fork 179
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): add load liquid commands #9923
Conversation
Codecov Report
@@ Coverage Diff @@
## edge #9923 +/- ##
==========================================
- Coverage 74.70% 74.69% -0.01%
==========================================
Files 2048 2054 +6
Lines 54034 54251 +217
Branches 5359 5421 +62
==========================================
+ Hits 40366 40525 +159
- Misses 12600 12644 +44
- Partials 1068 1082 +14
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌮
"4d23ffe0-b759-11ec-81e8-7fa12dc3e861": "opentrons/opentrons_96_filtertiprack_20ul/1" | ||
}, | ||
"dismissedWarnings": { "form": {}, "timeline": {} }, | ||
"ingredients": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is quite the ingredients list 😆
@@ -18,7 +18,7 @@ import type { | |||
|
|||
export type CommandStatus = 'queued' | 'running' | 'succeeded' | 'failed' | |||
export interface CommonCommandRunTimeInfo { | |||
key: string | |||
key?: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does this become optional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good question! two reasons
- in the v6 spec key is optional
- in order for
RunTimeCommand
s to extendCreateCommand
s, all properties must match if there are any that overlap. key was marked as optional inCreateCommand
(which is correct), but required inRunTimeCommand
, so TypeScript errors out.
designerApplication?.data?.ingredLocations | ||
)) { | ||
Object.values(liquidsByWellName).forEach(volumeByLiquidId => { | ||
if (liquidId in volumeByLiquidId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a lot of logic, I've seen in other files with a lot of logic have comments sprinkled in to help people understand what is going on easier 😄 (ex: see useModuleMatchResults
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol yes that is a good call, ill add some comments
Overview
This PR adds load liquid command to PD migrations, as well as the create file function which actually generates the final JSON file that users export.
closes #9702
Changelog
Review requests
Add a few different liquids to different labware in PD. Export the protocol, you should see load liquid commands generated in the commands list that conform to the
LoadLiquidCreateCommand
interface.Risk assessment
Low