-
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
feat(protocol-designer): add PD Pause form migration for 3.0.x -> 4.0.0 #5373
Conversation
const PAUSE_ACTION_MAP = { | ||
true: 'untilTime', | ||
false: 'untilResume', | ||
} |
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.
Previously if pauseForAmountOfTime
was true, I assume that always also meant that there would be at least one of pauseSecond
, pauseMinute
, or ``pauseHour`, right?
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.
should be, unless somehow the user was allowed to save an invalid form in some previous version of PD. But I figured this mapping was more direct/small/simple
Codecov Report
@@ Coverage Diff @@
## edge #5373 +/- ##
==========================================
- Coverage 63.71% 63.69% -0.02%
==========================================
Files 1087 1088 +1
Lines 30853 30865 +12
==========================================
+ Hits 19658 19661 +3
- Misses 11195 11204 +9
Continue to review full report at Codecov.
|
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.
✅
- In new protocols, Pause still works in all 3 of its forms
- Using an old PD protocol (eg fixture from `protocol-designer/src/load-file/tests/fixtures), Pause steps should migrate correctly when protocol is imported
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.
🔬
- Pause still works
- Older protocol pauses migrate
- Adding temperature module to imported fixture protocol allows pause until temp
overview
Closes #5371
Previously in 3.0.x (eg last release)
pauseForAmountOfTime
had valuestrue
orfalse
.This PR changes the
pauseForAmountOfTime
field topauseAction
, and its values are the 3 we have in edge PD rn: untilResume, untilTime, and untilTemperature.changelog
2 commits:
review requests
NOTE! I want to write a unit test for
4_0_0.js
, but I just moved the fixtures all around in #5369 so I want to add unit tests in after that is merged, as a follow-up. Will make ticket.risk assessment
PD only