-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automation providers features changes to support De-explorization of Ansible Tower Explorer #21108
Automation providers features changes to support De-explorization of Ansible Tower Explorer #21108
Conversation
- Added an alias `ems_automation` to be consistent with Configuration Provider and features/controller/view naming. - Added methods to show count of inventory groups on list view and inventory group name on summary details view.
457f3f2
to
7ea9c2a
Compare
- Updated startpage shortcut entry. - Updated OOTB user roles to access to 3 product features after the Ansible Tower explorer split into 3 individual screens.
7ea9c2a
to
c0fdd25
Compare
@@ -1,2 +1,7 @@ | |||
class ManageIQ::Providers::AutomationManager::ConfiguredSystem < ::ConfiguredSystem | |||
virtual_column :inventory_root_group_name, :type => :string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming inventory_root_group
is a relationship, can you add a :uses => :inventory_root_group
clause here for performance reasons?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Fryguy please re-review
@Fryguy can you review this pr? |
These were added/edited in ManageIQ#21108 and ManageIQ#21076 All other MiqProductFeature has the feature_type field: irb(main):004:0> MiqProductFeature.where(:feature_type => nil).count (0.7ms) SELECT COUNT(*) FROM "miq_product_features" WHERE "miq_product_features"."feature_type" IS NULL => 2 Because this was missing, the sort_by in MiqProductFeature.sort_children was failing with the error below when you try to login as a non-admin user: ``` [----] F, [2021-05-05T12:03:59.696562 ManageIQ#8905:3fcc63630bcc] FATAL -- : Error caught: [ActionView::Template::Error] comparison of Array with Array failed /Users/joerafaniello/Code/manageiq/app/models/miq_product_feature.rb:145:in `sort_by' /Users/joerafaniello/Code/manageiq/app/models/miq_product_feature.rb:145:in `sort_children' /Users/joerafaniello/Code/manageiq/app/models/miq_product_feature.rb:76:in `feature_children' /Users/joerafaniello/Code/manageiq/app/models/miq_user_role.rb:55:in `block in allows_any?' /Users/joerafaniello/Code/manageiq/app/models/miq_user_role.rb:55:in `map' /Users/joerafaniello/Code/manageiq/app/models/miq_user_role.rb:55:in `allows_any?' /Users/joerafaniello/Code/manageiq/app/models/miq_user_role.rb:57:in `allows_any?' /Users/joerafaniello/Code/manageiq/lib/rbac/authorizer.rb:62:in `user_role_allows_any?' /Users/joerafaniello/Code/manageiq/lib/rbac/authorizer.rb:28:in `role_allows?' /Users/joerafaniello/Code/manageiq/lib/rbac/authorizer.rb:6:in `role_allows?' /Users/joerafaniello/Code/manageiq/lib/rbac.rb:29:in `role_allows?' /Users/joerafaniello/Code/manageiq/app/models/user.rb:212:in `role_allows_any?' /Users/joerafaniello/Code/manageiq-ui-classic/app/presenters/menu/section.rb:38:in `visible?' ``` Admin users bypass some of the feature checks so was able to login without issue.
The product feature was renamed along with the other de-explorization of ansible tower in: ManageIQ/manageiq#21108 The database migration in ManageIQ#564 handled most of the renames but one feature was missed. This commit handles automation_manager_add_provider => ems_automation_add_provider.
The product feature was renamed along with the others for de-explorization of ansible tower in: ManageIQ/manageiq#21108 The database migration in ManageIQ#564 handled most of the renames but one feature was missed. This commit handles automation_manager_add_provider => ems_automation_add_provider.
The product feature was renamed along with the others for de-explorization of ansible tower in: ManageIQ/manageiq#21108 The database migration in ManageIQ#564 handled most of the renames but one feature was missed. This commit handles automation_manager_add_provider => ems_automation_add_provider.
ManageIQ#1033 was fine on master but relied on a refactoring/rewording of product features and models in ManageIQ/manageiq#21108 and this refactoring did not get backported to lasker. In other words, ems_automation_add_provider doesn't exist in lasker, but automation_manager_add_provider does, so we'll use that.
for ManageIQ/manageiq-ui-classic#6819
Data Migration PR
UI PR
Cross Repo PR