Skip to content
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

Merged
merged 6 commits into from
Oct 4, 2021

Conversation

satra
Copy link
Member

@satra satra commented Oct 1, 2021

this fixes that only dandiset.json was being used for json validation when schema version of the object did not match current schema.

@codecov
Copy link

codecov bot commented Oct 1, 2021

Codecov Report

Merging #91 (b830d02) into master (3a46e18) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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              
Flag Coverage Δ
unittests 96.33% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
dandischema/metadata.py 96.93% <100.00%> (+0.03%) ⬆️
dandischema/tests/test_metadata.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3a46e18...b830d02. Read the comment docs.

@satra satra added patch Increment the patch version when merged release Create a release when this pr is merged labels Oct 1, 2021
"PublishedDandiset": "published-dandiset",
"Asset": "asset",
"PublishedAsset": "published-asset",
}
Copy link
Member

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

Copy link
Member

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

Copy link
Member

@yarikoptic yarikoptic left a 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

@yarikoptic yarikoptic merged commit f2eb028 into master Oct 4, 2021
@yarikoptic yarikoptic deleted the fix/validate branch October 4, 2021 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a release when this pr is merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants