Project

General

Profile

Actions

Refactor #34006

closed

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

Added by Ondřej Ezr almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
-
Difficulty:
Triaged:
No
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 7 (0 open7 closed)

Refactor #34009: Add plugin after_initialize hookClosedOndřej EzrActions
Refactor #34010: Add initialization method to RbacRegistryClosedOndřej EzrActions
Refactor #34011: Move add_permissions_to_default_roles to rbac_registryRejectedActions
Refactor #34012: Move add_all_permissions_to_default_roles to RbacRegistryRejectedActions
Refactor #34013: Move add_resource_permissions_to_default_roles to RbacRegistryRejectedActions
Refactor #34014: Move role creation into RbacRegistryRejectedActions
Refactor #34015: Move permission creation in DB to RbacRegistryRejectedActions
Actions #1

Updated by The Foreman Bot almost 3 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ondřej Ezr
  • Pull request https://github.com/theforeman/foreman/pull/8954 added
Actions #2

Updated by The Foreman Bot almost 3 years ago

  • Fixed in Releases 3.2.0 added
Actions #3

Updated by Ondřej Ezr almost 3 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF