-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: associate schema key with schemas for older versions #91
Conversation
Codecov Report
@@ Coverage Diff @@
## master #91 +/- ##
==========================================
+ Coverage 96.30% 96.33% +0.02%
==========================================
Files 16 16
Lines 1407 1417 +10
==========================================
+ Hits 1355 1365 +10
Misses 52 52
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
dandischema/metadata.py
Outdated
"PublishedDandiset": "published-dandiset", | ||
"Asset": "asset", | ||
"PublishedAsset": "published-asset", | ||
} |
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.
Later (away from laptop ATM) we should centralize (the same dict should be used there) with with https://github.com/dandi/dandischema/blob/master/dandischema/metadata.py#L90
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.
FWIW -- pushed quick RF to "centralize" in 4484597
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 to me. Left a comment on need to avoid duplication, could be done later
In principle could be "computed", but at this scale "dict" would be just fine
this fixes that only dandiset.json was being used for json validation when schema version of the object did not match current schema.