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

Ensure plugins are installed before the database #792

Merged
merged 1 commit into from
Jan 30, 2020

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jan 29, 2020

Previously plugins were installed after the database was set up. This was usually ok because all the plugins did database migrations after being installed. However, if the migration would need any config, it could still fail.

This changes it to make sure all plugins are installed and (mostly) configured before the database is done setting up. If any plugin needs additional configuration to be present before migrating and seeding, the foreman::plugin::$myplugin class needs to additionally take care of this. Currently all existing classes do where needed.

Previously plugins were installed after the database was set up. This
was usually ok because all the plugins did database migrations after
being installed. However, if the migration would need any config, it
could still fail.

This changes it to make sure all plugins are installed and (mostly)
configured before the database is done setting up. If any plugin needs
additional configuration to be present before migrating and seeding, the
foreman::plugin::$myplugin class needs to additionally take care of
this. Currently all existing classes do where needed.
@ekohl ekohl force-pushed the refactor-chaining branch from 15528e3 to 82de65f Compare January 29, 2020 16:12
@ehelms ehelms merged commit 9c1787a into theforeman:master Jan 30, 2020
@ekohl ekohl deleted the refactor-chaining branch February 12, 2020 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants