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

Validate showcase entries data format #121

Merged
merged 11 commits into from
Jan 30, 2023
Merged

Validate showcase entries data format #121

merged 11 commits into from
Jan 30, 2023

Conversation

MattiSG
Copy link
Member

@MattiSG MattiSG commented Jan 27, 2023

This changeset enables automatic validation, locally and in CI, of showcase entries. Combined with #110, it will be an important asset in ensuring quality and trust in the contributed data, enabling faster review of contributions and sparing maintainers with manual checks.

Some features (top-level await) used for testing needed a switch to the module type. This should not have any consequence beyond cosmetic changes.

I also used this PR to improve the readability of the package.json file in 676e03c and b9d8ed4. This is tangent to this changeset, so please let me know if you'd prefer me to split this PR in two to ease review 🙂

@MattiSG MattiSG requested a review from clementbiron January 27, 2023 22:05
@netlify
Copy link

netlify bot commented Jan 27, 2023

Deploy Preview for openfisca-org ready!

Name Link
🔨 Latest commit c73c314
🔍 Latest deploy log https://app.netlify.com/sites/openfisca-org/deploys/63d7e2ac78b01200083e4b1b
😎 Deploy Preview https://deploy-preview-121--openfisca-org.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@MattiSG
Copy link
Member Author

MattiSG commented Jan 27, 2023

This should not have any consequence beyond cosmetic changes.

Haha, of course that was not true. This should be fixed now.

@MattiSG
Copy link
Member Author

MattiSG commented Jan 27, 2023

Several currently failing tests should pass after a rebase on #118, since this changeset checks for metadata that will be added in there 🙂

Copy link
Collaborator

@clementbiron clementbiron left a comment

Choose a reason for hiding this comment

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

Great improvements! (and this one is very well catched ^^).

Missing data is set to a default to enable marking the metadata as mandatory
@MattiSG MattiSG enabled auto-merge January 30, 2023 15:16
@MattiSG MattiSG disabled auto-merge January 30, 2023 15:27
@MattiSG MattiSG requested a review from clementbiron January 30, 2023 15:27
@MattiSG MattiSG merged commit 5b8a984 into master Jan 30, 2023
@MattiSG MattiSG deleted the validate branch January 30, 2023 15:45
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.

2 participants