Bug #33146
closedSome of the "filters" permission changed after the upgrade.
Description
Description of problem: Some of the "filters" permission changed after the upgrade.
Version-Release number of selected component (if applicable):
6.9 Snap7
How reproducible:
always
Steps to Reproduce:
1. Install the 6.8 base version.
2. Check the filter's permission before the upgrade.
{'id': '361', 'resource type': 'katello::syncplan', 'search': 'none', 'unlimited?': 'true', 'override?': 'false', 'role': 'organization admin', 'permissions': 'view_sync_plans, create_sync_plans, edit_sync_plans, destroy_sync_plans'}
{'id': '365', 'resource type': 'katello::gpgkey', 'search': 'none', 'unlimited?': 'true', 'override?': 'false', 'role': 'viewer', 'permissions': 'view_gpg_keys, view_content_credentials'}
4. Upgrade the satellite from 6.8 to 6.9.
5. permission of "katello::syncplan" and "katello::gpgkey" change.
{'id': '361', 'resource type': 'katello::syncplan', 'search': 'none', 'unlimited?': 'true', 'override?': 'false', 'role': 'organization admin', 'permissions': 'view_sync_plans, create_sync_plans, edit_sync_plans, destroy_sync_plans, sync_sync_plans'}
{'id': '365', 'resource type': 'katello::gpgkey', 'search': 'none', 'unlimited?': 'true', 'override?': 'false', 'role': 'viewer', 'permissions': 'view_content_credentials, view_content_credentials'}
Actual results:
permission of "katello::syncplan" and "katello::gpgkey" changed after upgrade.
Expected results:
permission of "katello::syncplan" and "katello::gpgkey" should not change after upgrade.
all that is left here is to rename the gpg key model to content_credentials, which means:
renaming the class and all references
renaming the database table
Updating the resource name of any permission/filter records