-
Notifications
You must be signed in to change notification settings - Fork 898
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
API for vm_infras in reconfigure form #22980
base: master
Are you sure you want to change the base?
Conversation
070bf88
to
35542c6
Compare
# Vm Infra | ||
- :name: Vm Infras | ||
:description: Every thing to Vm infras | ||
:feature_type: node | ||
:identifier: vm_infra | ||
:children: | ||
- :name: View | ||
:description: View Vm Infras | ||
:feature_type: view | ||
:identifier: vm_infra_view |
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.
Confused why we're adding a new top level node when we already have Reconfigure VMs
/ vm_reconfigure_all
https://github.com/ManageIQ/manageiq/blob/master/db/fixtures/miq_product_features.yml#L5949-L5973
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.
Do we need infra specific features?
Can we use 1 set of privileges for both views?
6fbab91
to
1a3a156
Compare
6e6a5ac
to
74cd750
Compare
Checked commit jaisejose1123@74cd750 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint lib/rbac/filterer.rb
|
elsif targets.first.kind_of?(Hash) | ||
target_ids = targets.first[:objectIds] |
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.
targets should be passed in as a scope Vm.all
or maybe an array of ids [1,2,3]
.
Don't add this here.
And to be honest, probably should not need to make changes in here unless we are not properly filtering a class.
@@ -367,7 +380,7 @@ def search(options = {}) | |||
end | |||
|
|||
# Preserve sort order of incoming target_ids | |||
if !target_ids.nil? && !order | |||
if !target_ids.nil? && !order && !targets.kind_of?(Array) |
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.
please share reason for this change.
The implications of this change will impact many many places of the application.
I do agree, that this sorting is called in a few places that I wish it were not.
The solution I find is to pass in a scope and that solves this problem.
In reviewing this again, I would like to avoid all the rbac changes, and probably the feature changes. |
This pull request has been automatically marked as stale because it has not been updated for at least 3 months. If these changes are still valid, please remove the |
1 similar comment
This pull request has been automatically marked as stale because it has not been updated for at least 3 months. If these changes are still valid, please remove the |
Related PR
ManageIQ/manageiq-api#1253