Feature #35375
closeddb:seed should run on every upgrade even if there are no changes to seed files directly
Description
Today the foreman_seeder.rb : https://github.com/theforeman/foreman/blob/c3c697fa131aa54c11918bcc563a7789f3c08ef7/app/services/foreman_seeder.rb#L40
checks if any seed files have changed to run/skip seeding. This is not ideal as any changes to helper methods are not considered when deciding whether to run/skip seeding.
We should probably delete the Foreman.internal record pre-upgrade to make sure db:seed runs during all upgrades.
Updated by Ewoud Kohl van Wijngaarden almost 4 years ago
- Status changed from New to Rejected
We've moved the responsibility to seed into Foreman and simply call a rake task to check if we need to seed. I'm going to reject this from the installer's perspective. If you want to solve this, solve it in Foreman or the plugin itself.
If you run into this and want to force seeding, make sure the hash of a file changes. That can be done by adding a comment in it.
Updated by Samir Jha almost 4 years ago
- Project changed from Installer to Foreman
- Status changed from Rejected to New
Moving to foreman as per ewoud's comment.
Updated by The Foreman Bot 5 months ago
- Status changed from New to Ready For Testing
- Assignee set to Bernhard Suttner
- Pull request https://github.com/theforeman/foreman/pull/10858 added
Updated by Bernhard Suttner 5 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|f19594d555685043bf3da9089df555c1ae6229e7.