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

Auto-format schemas on pull requests #321

Closed
wants to merge 13 commits into from

Conversation

tlrh314
Copy link
Contributor

@tlrh314 tlrh314 commented Nov 22, 2021

No description provided.

@tlrh314 tlrh314 requested a review from a team as a code owner November 22, 2021 09:31
@@ -5,6 +5,7 @@ on:
push:
paths:
- datasets/*/dataset.json
- datasets/*/*/*.json
Copy link
Contributor

@gkoller gkoller Nov 23, 2021

Choose a reason for hiding this comment

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

This doesn't solve the issue I raised, but maybe that's more of a thing to address in the validator itself.

The issue being that if a table JSON file changes the valdiation should not be run against the changed table JSON file, but against the dataset it is part of.

In addition, if I read the spec correctly, the table JSON files don't need to be in one directly below the directory that contains dataset.json, they could in a directories many levels below that. Does the paths spec allow for datasets/*/**/*.json (mind the double **)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does the paths spec allow for datasets/*/**/*.json (mind the double **)?

Yes

I suppose the workflow should still trigger on push where table-splitted files have been changed. However, in that case the CHANGED_DATASETS should be cleaned up to remove the table-splitted files, but only point to the dataset.json that it's part of. Lets see if I can bash this ...

Copy link
Contributor

@gkoller gkoller left a comment

Choose a reason for hiding this comment

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

Good addition. 👍

@Yrob Yrob closed this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants