-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add values.yml and update seeding to use it #117
Conversation
Should we also pop attributes and values out of folders? |
red = value!(id: 11, name: "Red") | ||
zoo = value!(id: 12, name: "Zoo") | ||
other = value!(id: 10, name: "Other") | ||
red = value!(id: 11, name: "Red", friendly_id: "test__red") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious why we chose double underscore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume it's to help make it clear where the attribute name ends and the value name begins.
This was the format that I saw used in the slack conversation, so I carried it over here and to the parser
7e1b2ee
to
127da6e
Compare
Branch has been rebased off the latest changes to I'm going to fix the sort ordering for categories in the parser and add that to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to validate the taxonomy explorer still works.
make build
make serve
I believe are the commands to run locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One required tune, but looks good once the schema is updated!
Description
Add a new values.yml file under
data/values
for storing values and their ids instead of directly under attributes. The serializer and seeding logic has been updated to reflect these changes.The yaml files under
data/
are also updated as part of this PR with the output of our new parser.Questions for reviewers