-
Notifications
You must be signed in to change notification settings - Fork 180
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(app): display correct creation method for PD protocol exported i… #17724
base: edge
Are you sure you want to change the base?
Conversation
}) | ||
if ('protocolDesigner' in metadata) { | ||
return t('protocol_designer_version', { | ||
version: parseInt(metadata.protocolDesigner).toFixed(1), |
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.
How does parseInt()
work here? If the string is
"protocolDesigner": "8.4.3",
do you want this to return 8.0
?
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.
8.4.3 -> 8, then the toFixed()
goes to 8.0
. We want to display the schema version to match a PD protocol exported in json
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.
Oh! That was what was mentioned on the call about the PD version being the schema version.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## edge #17724 +/- ##
=======================================
Coverage 62.47% 62.47%
=======================================
Files 2792 2792
Lines 215277 215289 +12
Branches 18414 18416 +2
=======================================
+ Hits 134498 134511 +13
+ Misses 80594 80593 -1
Partials 185 185
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
createdAt, | ||
metadata: { | ||
...mockMostRecentAnalysis.metadata, | ||
protocolDesigner: '8.0.0', |
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 we make this 8.12.34
to demonstrate that we extract it as 8.0
no matter what the minor version is?
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 point, i'll do that
…n py
closes AUTH-1525
Overview
If a protocol was made in PD and downloaded in py, we want the creation method to reflect the PD schema version
Test Plan and Hands on Testing
Review the code and test uploading to the app. look at the protocol details's creation method. here is a protocol you can test with:
ot2AllModules.py.zip
Changelog
protocolDesigner
metadataRisk assessment
low, shouldn't encounter this in prod