-
Notifications
You must be signed in to change notification settings - Fork 356
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
Show VM transform button only if permitted #2959
Show VM transform button only if permitted #2959
Conversation
@miq-bot assign martinpovolny |
@miq-bot add_labels gaprindashvili/yes |
@smelamud: looks good but there's "but" ;-) Can you, please, extract the common behavior from the 2 button classes? (a common parent class or a module?) Why do the 2 implementations of Thank you! |
@martinpovolny Because |
@martinpovolny I can change the implementation in |
@martinpovolny can we merge this? |
Show VM transform button for mass transforms only if vm_transform_mass permission is set in the permission store. By default, it is visible in ManageIQ, that uses Null permission store, and hidden in CFME, if vm_transform_mass is not set explicitly in YAML permission store.
1c7e86b
to
3f07554
Compare
Checked commit smelamud@3f07554 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@jelkosz Enabled the button for single VM transforms, as we discussed. |
@smelamud great, thank you! |
Now I am lost. Why did you do that? Is that discussion somewhere I can read? |
@martinpovolny It was just my misunderstanding. I thought I should hide transform VM button everywhere, but Tomas said I need to hide only mass transforms button, but single VM transforms should be present. |
Show VM transform button only if permitted (cherry picked from commit aa625cd)
Gaprindashvili backport details:
|
Show VM transform button for mass transforms only if
vm_transform_mass
permission is set in the permission store. By default, it is visible in ManageIQ, that usesNull
permission store, and hidden in CFME, ifvm_transform_mass
is not set explicitly inYAML
permission store.