-
Notifications
You must be signed in to change notification settings - Fork 897
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
Classification.yml don't use parent_id=0 #18418
Conversation
e582c63
to
b226d60
Compare
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.
LGTM 👍
bfc09c6
to
9948425
Compare
@cben I truncated classifications, ran seeds and we had no Any other tests you think would be good? |
Will customers have exported data with non-zero parent_id values, and if so, will this de-parent those on re-import? |
I'm aware of 3 export paths, all converge to
|
For seeds and import/exports, the levels explain the nesting, so there is no need to pass parent_id This is part of the Classification.parent_id initiative more factory methods that do not need to specify parent_id Remove seed update_all The categories are now properly with parent_id no need to update_all after seeding
9948425
to
6c8d9ba
Compare
Checked commit kbrock@6c8d9ba with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 app/models/classification.rb
|
@Fryguy Think this is good to go. Anything else? |
@Fryguy If this is too much, I can pull out one or two small nuggets and try again. |
@Fryguy if you would prefer, I can remove the yaml file changes and just put in the code changes. These changes need to be made for removing We'll probably never put into place the change from Otherwise, let me know what I can do here to make this easier to grok |
@Fryguy These are not very important but they do simplify a subtle corner and would be nice to land |
For seeds and import/exports, the levels explain the nesting, so
there is no need to pass
parent_id: 0
This is part of the
Classification.parent_id
initiative #18301