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

Extensions mechanism #98

Merged
merged 10 commits into from
Apr 9, 2024
Merged

Extensions mechanism #98

merged 10 commits into from
Apr 9, 2024

Conversation

michaelwood
Copy link
Member

No description provided.

@michaelwood
Copy link
Member Author

WIP for #97

@michaelwood michaelwood changed the title WIP Extensions mechanism Feb 19, 2024
This adds functionality to the Schema class to resolve a 360Giving json
schema extension into the standard extension.

The steps involved in this are:

1) unflatten the input data (if needed) using the vanilla schema
2) Replace the external reference in the package schema to a downloaded
   version of the grants schema
3) If an extension is detected merge in the extension
4) Re-unflatten the data with the new resolved schema file
5) Run common checks as normal

Process codelists functionality has been extended to allow codelists to
be loaded that are referenced by the extension.
This test doesn't appear to do anything
This is now merged so no longer needs to point to a branch
This is now failing due to a quirk in the way in which null is
interpreted when not in an embedded codelist. The lack of message here
is consistent with other codelists. This behaviour changed as a result
of using a local version of the grant standard and downloaded codelist
when "resolving" the standard.

ThreeSixtyGiving/standard#379
@michaelwood michaelwood marked this pull request as ready for review April 1, 2024 09:25
@michaelwood michaelwood requested a review from R2ZER0 April 1, 2024 09:25
R2ZER0
R2ZER0 previously approved these changes Apr 2, 2024
Copy link

@R2ZER0 R2ZER0 left a comment

Choose a reason for hiding this comment

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

Broadly looks good, can't see any major issues, just a couple of clarifying questions.

Avoid a potential clash of schema data vs grant data if file names were
the same. Also remove redundant comment about 1.4 release. This has
happened now.
Copy link

@R2ZER0 R2ZER0 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 👍

@michaelwood michaelwood merged commit 4079829 into main Apr 9, 2024
4 checks passed
@michaelwood michaelwood deleted the mw/extensions_mech branch April 9, 2024 13:53
@michaelwood michaelwood restored the mw/extensions_mech branch April 9, 2024 13:53
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.

None yet

2 participants