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

Use matching via descendants for CloudNetwork model #1474

Conversation

lpichler
Copy link
Contributor

@lpichler lpichler commented Jun 1, 2017

screen shot 2017-06-01 at 18 34 07

we need to filter CloudNetworks also according to their Network Manager when this limitation is set up in user's group in tab Host & Cluster.

but for allowing this feature, backend PR is needed.

Links

cc @mzazrivec
@miq-bot assing @martinpovolny

@miq-bot add_label bug

@miq-bot
Copy link
Member

miq-bot commented Jun 1, 2017

@lpichler unrecognized command 'assing', ignoring...

Accepted commands are: add_label, assign, close_issue, move_issue, remove_label, rm_label, set_milestone

@miq-bot miq-bot added the bug label Jun 1, 2017
@lpichler lpichler closed this Jun 2, 2017
@lpichler lpichler reopened this Jun 2, 2017
@lpichler lpichler closed this Jun 6, 2017
@lpichler lpichler reopened this Jun 6, 2017
@lpichler
Copy link
Contributor Author

lpichler commented Jun 7, 2017

@himdel

@himdel
Copy link
Contributor

himdel commented Jun 7, 2017

@lpichler I'm not sure this does anything? (Or maybe I'm reading the instructions wrong.) What I did:

Created a group (abc), checked only one Network provider in the Assign Filters H&C tree:

abc

Created a user with that group, logged in as that user.

On master, I'd expect to see all the networks, regardless of provider - check, that's true.
With this PR, I'd expect to see only the networks under Azure (the provider I checked).

I'm seeing all regardless:

after

@himdel
Copy link
Contributor

himdel commented Jun 14, 2017

@lpichler Does this depend on ManageIQ/manageiq#15367 now?

EDIT: no.. but Libor is investigating..

@martinpovolny
Copy link
Member

I know that you have not introduced that code, but the pattern for exceptions in process_params_options is just ugly.

We need to do something about it. I wonder how we would work with that if the report data was served through the API.

Thoughts?

@lpichler
Copy link
Contributor Author

@martinpovolny yes I was saying the same thing to myself and it is on my to do list.

First, I was thinking that process_params_options is returning params for rbac. But there is are keys (like [:view], [:model]) which are not related to rbac, I don't know whether they are needed at all. So it needs the deeper look.

WIP: because of @hidmel's findings

@lpichler lpichler changed the title Use matching via descendants for CloudNetwork model [WIP] Use matching via descendants for CloudNetwork model Jun 15, 2017
@miq-bot miq-bot added the wip label Jun 15, 2017
@lpichler lpichler force-pushed the use_matching_descendants_for_cloud_networks branch from 245826c to 36bd3a3 Compare June 15, 2017 18:31
@lpichler lpichler changed the title [WIP] Use matching via descendants for CloudNetwork model Use matching via descendants for CloudNetwork model Jun 15, 2017
@miq-bot
Copy link
Member

miq-bot commented Jun 15, 2017

Checked commit lpichler@36bd3a3 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 🏆

@miq-bot miq-bot removed the wip label Jun 15, 2017
@lpichler
Copy link
Contributor Author

@himdel thanks for testing!
I had here https://github.com/ManageIQ/manageiq-ui-classic/pull/1474/files#diff-023cabd4eee712930c5f9ff1a7bbd765R22 class which was including OpenStack namespace before.

and you had to use filter Azure Network Manager (instead of Azure )

@himdel
Copy link
Contributor

himdel commented Jun 15, 2017

@lpichler LGTM now, thanks 👍

When I have only the wrong Azure, I don't see any Cloud Networks now. And when I enable Azure Network, I see only those now.

Copy link
Contributor

@himdel himdel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lpichler
Copy link
Contributor Author

@mzazrivec @martinpovolny can you merge it, please? thanks!

@martinpovolny martinpovolny merged commit 57ba2bb into ManageIQ:master Jun 20, 2017
@martinpovolny martinpovolny added this to the Sprint 63 Ending Jun 19, 2017 milestone Jun 20, 2017
@martinpovolny martinpovolny removed this from the Sprint 63 Ending Jun 19, 2017 milestone Jun 20, 2017
@lpichler lpichler deleted the use_matching_descendants_for_cloud_networks branch June 20, 2017 12:51
@martinpovolny martinpovolny added this to the Sprint 64 Ending July 3, 2017 milestone Jun 20, 2017
@chessbyte chessbyte modified the milestones: Sprint 64 Ending Jul 3, 2017, Sprint 64 Ending July 3, 2017 Jun 20, 2017
@simaishi
Copy link
Contributor

@lpichler not sure where this change goes in Fine branch... Can you create a Fine PR?

@lpichler
Copy link
Contributor Author

@simaishi yes fine PR #1584

@simaishi
Copy link
Contributor

Backported to Euwe via ManageIQ/manageiq#15444

@simaishi
Copy link
Contributor

simaishi commented Aug 4, 2017

Backported to Fine via #1584

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.

7 participants