Refactor #34006
Feature #29991: Enable Zeitwerk autoload mode for Rails 6+
Refactor #33886: Fix early loads of constants
Plugin and its rbac_support are using Role and Permission models too early
Pull request:
Fixed in Releases:
Found in Releases:
Description
Initialization is not done at that point, we should postpone the Role and Permission creation and just remember what the plugin wants to do in a registry prior that.
Subtasks
Associated revisions
Refs #34006 - enable setup in tests
History
#1
Updated by The Foreman Bot 6 months ago
- Assignee set to Ondřej Ezr
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8954 added
#2
Updated by The Foreman Bot 4 months ago
- Fixed in Releases 3.2.0 added
#3
Updated by Ondřej Ezr 4 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|aa8657bcb0b6689cf20391ce51230f74ef85cc7a.
Fixes #34006 - use rbac_registry for all plugin rbac
Before this change we have executed all the changes to the Roles and Permissions right away in the plugins.
This pushes all the changes into the rbac_registry and uses it to initialize the changes only after Rails are ready.