-
Notifications
You must be signed in to change notification settings - Fork 178
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
Add name field to pipette v2 general specs #15251
base: chore_release-8.0.0
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## edge #15251 +/- ##
===========================================
- Coverage 92.43% 81.36% -11.08%
===========================================
Files 77 119 +42
Lines 1283 4100 +2817
===========================================
+ Hits 1186 3336 +2150
- Misses 97 764 +667
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.
nice, lgtm! Might be good to add a quick pytest for this though - maybe similarly to test_model_enum
in shared-data/python/tests/pipette/test_pipette_definition.py
but instead of testing a model, it tests that each name equals a PipetteNameType
(just a suggestion, i'd defer to @sfoster1's recommendations on test coverage 😄)
Yeah, I agree |
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.
I agree with @jerader 's point about adding a test, but looking at this in practice I'm a little worried that we're still implicitly relying on data from v1 of the pipette definitions - specifically the PipetteName
type.
Can tsc load type data from jsonschema? If so, maybe the right thing to do here is actually for this to be an enum in the schema so tsc can pick it up there. That ability would be enough for me to want to encode it in the schema instead of implicitly, even though I'd previously made the point that we should do that.
721668a
to
7c2e096
Compare
I think the plan for this is a retarget at edge, it will not be in 8.0.0 |
Overview
We need a to add
name
to v2 of pipette specs under general since it isn't otherwise represented in this version of the schema. Thename
for each pipette is pulled from the key ofpipetteNameSpecs
and thename
field ofpipetteModelSpecs
Test Plan
Changelog
Review requests
Risk assessment