-
Notifications
You must be signed in to change notification settings - Fork 176
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(api, robot-server): Allow loadLiquid commands and liquids support in protocol engine and analysis #11310
Conversation
Codecov Report
@@ Coverage Diff @@
## edge #11310 +/- ##
=======================================
Coverage 74.53% 74.53%
=======================================
Files 2033 2033
Lines 56588 56588
Branches 5437 5437
=======================================
Hits 42180 42180
Misses 13180 13180
Partials 1228 1228
Flags with carried forward coverage won't be shown. Click here to find out more.
|
assert result == LoadLiquidResult() | ||
|
||
|
||
async def test_load_liquid_liquid_not_found( |
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.
are these tests redundant now that the logic lives in the state?
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.
maybe delete these test
…liquid.py. changed has method name
"""Get all protocol liquids.""" | ||
return list(self._state.liquids_by_id.values()) | ||
|
||
def validate_has_liquid(self, liquid_id: str) -> str: |
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.
same comment ^
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.
Overall, looks great :) had a few questions about some things.
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.
A few final notes. Will approve when I've been able to smoke test against persisted protocols / analyses to make sure we don't have any data migration issues
api/tests/opentrons/protocol_engine/commands/test_load_liquid.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Mike Cousins <[email protected]>
Tested on a robot with json v5 and v6 protocols |
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.
Smoke tested with the dev server, did not encounter any data migration issues with persisted protocol / analysis / run / commands data from prior to this PR.
Nice work!
…t in protocol engine and analysis (#11310)
Overview
closes Jira ticket RLIQ-8.
this PR gives protocol engine the ability to consume and analyze loadLiquid and store liquids in the engine state.
Changelog
Review requests
Risk assessment
Medium. Added a new command, should not effect if not being called. added Liquids to StateSummery and Run data models. need to make sure old logic is not effected.