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

ADX-960 ADX-959 ckanext-validation upgrade #58

Merged
merged 8 commits into from
Aug 8, 2023
Merged

Conversation

ChasNelson1990
Copy link
Member

@ChasNelson1990 ChasNelson1990 commented May 12, 2023

Description

Here we make schemas compatible with new upstream ckanext-validation after foreign key validation has been enabled.

!BREAKING CHANGE!

Previously unaids_data_specifications used schema names for schema["foreignKeys"][i]["reference"]["resource"] but this didn't generalise as it very much assumes our fork of ckanext-scheming. Instead, I changed this to use what we call resource_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 seemed silly.

Issue: https://fjelltopp.atlassian.net/browse/ADX-959

relates fjelltopp/adx_deploy#350
relates fjelltopp/adx_develop#132
relates fjelltopp/ckanext-validation#103 - including changes pushed upstream and Fjelltopp-specific patches
relates fjelltopp/ckanext-unaids#271 - Fjelltopp-specific logic and custom badges

@ChasNelson1990 ChasNelson1990 changed the title Adx 960 ADX-959 make schemas compatible with ckanext-validation after foreign key validation added May 12, 2023
@ChasNelson1990 ChasNelson1990 self-assigned this May 12, 2023
@ChasNelson1990 ChasNelson1990 added the enhancement New feature or request label May 12, 2023
@ChasNelson1990 ChasNelson1990 marked this pull request as draft May 12, 2023 14:14
@ChasNelson1990
Copy link
Member Author

Supersedes #56

@ChasNelson1990 ChasNelson1990 changed the title ADX-959 make schemas compatible with ckanext-validation after foreign key validation added ADX-960 ADX-959 ckanext-validation upgrade Aug 8, 2023
@ChasNelson1990 ChasNelson1990 marked this pull request as ready for review August 8, 2023 10:37
Copy link
Member

@tomeksabala tomeksabala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good.

@ChasNelson1990 ChasNelson1990 merged commit 4127014 into development Aug 8, 2023
@ChasNelson1990 ChasNelson1990 deleted the ADX-960 branch August 8, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants