Project

General

Profile

Refactor #29498

make Plugin#pending_migration check plugin migrations instead of core ones

Added by Ondřej Ezr 8 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DB migrations
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

`pending_migration` method is used to check whether plugin permissions and roles should be initialized.
That should be based on plugin's migrations, but the method is now checking the core migrations only, as the plugin registration goes before the migration paths registration.


Related issues

Related to Foreman - Bug #30821: ActiveModel::UnknownAttributeError: unknown attribute 'name' for PermissionClosed

Associated revisions

Revision 3a5d4162 (diff)
Added by Ondřej Ezr 5 months ago

Fixes #29498 - improve pending_migrations check

History

#1 Updated by The Foreman Bot 8 months ago

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

#2 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 2.2.0 added

#3 Updated by Ondřej Ezr 5 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/foreman/pull/7975 added

#5 Updated by Ewoud Kohl van Wijngaarden 3 months ago

  • Related to Bug #30821: ActiveModel::UnknownAttributeError: unknown attribute 'name' for Permission added

Also available in: Atom PDF