ADX-960 foreign key validation#98
Closed
ChasNelson1990 wants to merge 9 commits into
Closed
Conversation
This was referenced May 12, 2023
5594332 to
3f0eebe
Compare
3f0eebe to
812eba6
Compare
169a8fc to
7b517b9
Compare
244b1c6 to
1645701
Compare
1645701 to
2ffa7e5
Compare
2ffa7e5 to
b14a37c
Compare
11 tasks
Member
Author
|
made stale by #103 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Please note that this is a local Fjelltopp PR for initial review before creating an upstream PR. This ensure that the solution works for us before we merge upstream.
See ADX-960 for our ticket.
See ckan#84 for the community discussion on this.
Basically, this is a rewrite of upstream to use the frictionless Package object, instead of the Resource object.
This allows us to then pass in multiple resources and do the following:
ValidationErrorPackageobject for frictionless framework to utilise during validation!BREAKING CHANGE!
Actually, currently unaids_data_specifications uses schema names for
schema["foreignKeys"][i]["reference"]["resource"]but this probably doesn't generalise as it very much assumes our fork of ckanext-scheming. Instead, for this PR, I am changing this to use what we callresource_type... I think this has the pro that we won't have to update the our table_schemas if we updates our package_schemas - foreign keys will now always follow the package_schema whereas (theroretically) you could have had a table_schema with a foreign key using a different schema version than a package_schema, which seems silly.TODO
see also fjelltopp/adx_deploy#132
see also fjelltopp/unaids_data_specifications#58
Testing
TODO
Documentation
TODO
Checklist