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
Fixes #25894 - rename the host statuses report #6426
Conversation
Issues: #25894 |
Tests failed, can you rebase? Also, isn't this template locked therefore seed would overwrite it correctly. What is the reason for adding explicit migration? |
If we sync new version from community-templates, seed will create a new one. It's not that smart it would rename the template to a new name. Therefore, migration needs to happen before seed. Seeding would only update the content. Name in this case is the template identifier... I fixed the migration that caused test failures. |
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.
Testing hold on.
I've executed migrate then seed and I ended up with two copies: Host statuses and Host statuses CSV. |
the last fix caused that, taxonomies didn't allow to find templates, it's now fixed by using unscoped |
Hold my beer... |
Allright!
|
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.
All set. Sorry for the delay.
Reproducing steps:
this is no longer needed, we use rendering DSL which can modify the type, this is a leftover
to review:
rake db:migrate
rake db:seed
Best with theforeman/community-templates#548 which should be merged at the same time so next sync won't restore original template name.