Project

General

Profile

Bug #5689

Plugin permissions are skipped during migration from old to new system

Added by Marek Hulán about 5 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DB migrations
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Plugin initializer is loaded only once when running multiple migrations. Since plugin permissions are ignored (permissions table does not exist yet) they are not created in database and permission migration can't migrate them. Therefore we must find all plugin permission during permission migration and create them before that.


Related issues

Blocks Foreman - Tracker #4552: New permissions/authorization system issuesNew

Associated revisions

Revision 1a6e0963 (diff)
Added by Marek Hulán about 5 years ago

Fixes #5689 - Plugin permissions are migrated too

Revision 423aa160 (diff)
Added by Marek Hulán almost 5 years ago

Fixes #5689 - Plugin permissions are migrated too

(cherry picked from commit 1a6e0963a7229abbece7838b72c7e74660aafa25)

History

#1 Updated by Marek Hulán about 5 years ago

  • Blocks Tracker #4552: New permissions/authorization system issues added

#2 Updated by Marek Hulán about 5 years ago

  • Status changed from Assigned to Ready For Testing

#3 Updated by Marek Hulán about 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Bryan Kearney almost 5 years ago

  • Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1107696

Also available in: Atom PDF