Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jaisejose1123
Copy link
Contributor

@jaisejose1123 jaisejose1123 commented Apr 8, 2024

Comment on lines +4189 to +4198
# 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
Copy link
Member

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

Copy link
Member

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?

@jaisejose1123 jaisejose1123 force-pushed the api_vm_infra branch 2 times, most recently from 6fbab91 to 1a3a156 Compare April 10, 2024 07:01
@miq-bot
Copy link
Member

miq-bot commented Apr 10, 2024

Checked commit jaisejose1123@74cd750 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
1 file checked, 6 offenses detected

lib/rbac/filterer.rb

Comment on lines +265 to +266
elsif targets.first.kind_of?(Hash)
target_ids = targets.first[:objectIds]
Copy link
Member

@kbrock kbrock Apr 12, 2024

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)
Copy link
Member

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.

@kbrock
Copy link
Member

kbrock commented Apr 12, 2024

In reviewing this again, I would like to avoid all the rbac changes, and probably the feature changes.

@miq-bot
Copy link
Member

miq-bot commented Jul 15, 2024

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 stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

1 similar comment
@miq-bot
Copy link
Member

miq-bot commented Nov 1, 2024

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 stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants