-
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
refactor(app-shell): Migrate protocols to "protocols" directory #13753
refactor(app-shell): Migrate protocols to "protocols" directory #13753
Conversation
…otocols folder exists Migrates protocols to the protocols directory if protocols_v7.0-supported directory exists.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## chore_release-7.0.1 #13753 +/- ##
=======================================================
- Coverage 71.23% 71.18% -0.06%
=======================================================
Files 2430 2430
Lines 68447 68688 +241
Branches 8043 8145 +102
=======================================================
+ Hits 48759 48894 +135
- Misses 17789 17885 +96
- Partials 1899 1909 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -344,6 +345,17 @@ export function ProtocolDetails( | |||
setShowChooseRobotToRunProtocolSlideout(true) | |||
} | |||
|
|||
const UNKNOWN_ATTACHMENT_ERROR = `${protocolDisplayName} protocol uses | |||
instruments or modules from a future version of Opentrons software. Please update |
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.
The space between instruments
and or
is 2-space. Is this on purpose?
If not, ↓
instruments or modules from a future version of Opentrons software. Please update | |
instruments or modules from a future version of Opentrons software. Please update |
@@ -79,13 +79,14 @@ export function ProtocolCard(props: ProtocolCardProps): JSX.Element | null { | |||
) | |||
|
|||
const UNKNOWN_ATTACHMENT_ERROR = `${protocolDisplayName} protocol uses | |||
instruments or modules from a future version of the app. Please update | |||
instruments or modules from a future version of Opentrons software. Please update |
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 (2 spaces)
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.
The changes look good to me.
I tested this branch with macOS and Windows and both of them worked as expected.
Closes RAUT-716
Overview
This PR is a follow-up to #13561, which addressed pre-parity protocol directory compatibility if a 7.0.0 and <7.0.0 version of the app were used on the same computer. Now that there will only be one supported app soon and all protocols can go in the same directory again, it makes sense to migrate protocols back to the more semantic and familiar directory name, "protocols".
More importantly, there's no need to support a function that checks all protocols in an old directory every time the app is launched - let's migrate all the protocols from the temp 7.0 directory to "protocols" then delete the folder. That way, our only necessary act of atonement moving forward is to check to see if the temp directory exists every startup (asynchronously!).
The one downside to this approach is if two protocols have the same name UUID - the older protocol in the protocol directory will be overwritten. Considering this scenario could only occur for the handful of users utilizing both versions of the app, odds are pretty good.
The error boundary added in the earlier PR will prevent this exact scenario from occurring again!
Test Plan
Changelog
Review requests
Risk assessment
low but long term implications