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

Validating dataset & patches #284

Merged
merged 3 commits into from
Jul 9, 2020
Merged

Validating dataset & patches #284

merged 3 commits into from
Jul 9, 2020

Conversation

ptgolden
Copy link
Member

@ptgolden ptgolden commented Jul 9, 2020

This addresses the patch that caused an error in #267

ptgolden added 3 commits July 9, 2020 17:43
The only thing it does right now is make sure that periods referred to
in related period fields (narrower, broader, derivedFrom) actually exist
in the dataset
This function takes a raw dataset and a patch, creates an intermediary
DatasetProxy from the result of applying the patch to the dataset, and
then returns a new patch that is the result of going from the original
dataset to the validated dataset created by the DatasetProxy.

See dae853c for more details. Essentially, this is to prevent submitting
patches that result in an invalid dataset-- such as including related
periods that will not exist after applying the patch.
@ptgolden ptgolden merged commit e89f182 into master Jul 9, 2020
@rybesh rybesh deleted the validating-dataset branch December 9, 2020 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant