-
Notifications
You must be signed in to change notification settings - Fork 40
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
improve adornment v2 importer typing #1658
Conversation
This turned up three bugs: - `yAttributeDescriptions.y` doesn't exist - if the v2 document had a plottedStDev adornment a stDev and stErr adornment would be added to the imported document - the creation of this erroneous stErr adornment did not set to the number of standard errors correctly. The importer now handles an older format of the multipleMovableValues adornment
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1658 +/- ##
==========================================
+ Coverage 85.69% 85.77% +0.07%
==========================================
Files 604 604
Lines 30740 30742 +2
Branches 7895 7896 +1
==========================================
+ Hits 26344 26368 +24
+ Misses 4241 4219 -22
Partials 155 155
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
codap-v3 Run #5419
Run Properties:
|
Project |
codap-v3
|
Branch Review |
main
|
Run status |
Passed #5419
|
Run duration | 02m 09s |
Commit |
acbae5764c: Increment the build number
|
Committer | eireland |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
3
|
View all changes introduced in this branch ↗︎ |
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.
👍 Looks good -- just one naming suggestion
// TODO_V2_IMPORT: This used to be yAttributeDescriptions.y, which would have always been undefined | ||
// I'm not sure if yAttributeDescriptions[0] is the right replacement. |
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 think yAttributeDescriptions[0]
is correct.
@@ -128,21 +153,31 @@ const instanceKeysForAdornments = (props: IInstanceKeysForAdornmentsProps) => { | |||
return instanceKeys | |||
} | |||
|
|||
export type AdornmentAttributeDescriptions = Partial<Record<GraphAttrRole, IAttributeDescriptionSnapshot>> |
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.
AdornmentAttributeDescriptions
aren't adornment specific, so I'd be inclined to call it something like GraphAttributeDescriptions
and move the definition into data-display-types.ts
or graphing-types.ts
.
This turned up three bugs:
yAttributeDescriptions.y
doesn't existThe importer now handles an older format of the multipleMovableValues adornment.
This also fixes other v2 types that didn't match the one random document from cfm-shared. I'll be checking more documents and will an submit a new PR with those changes.