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

Fix retirevms and vm_button_operations to account for it being called for objects other than VMOrTemplate #890

Conversation

lgalis
Copy link
Contributor

@lgalis lgalis commented Apr 3, 2017

After #852 changes, the retirement buttons do not work for services and orchestration stacks list selection.

https://bugzilla.redhat.com/show_bug.cgi?id=1438598

pivotal: https://www.pivotaltracker.com/story/show/140944305

@lgalis
Copy link
Contributor Author

lgalis commented Apr 3, 2017

@miq-bot add_label refactoring

@lgalis lgalis changed the title [WIP] Fix retirevms to account it being called for objects other than VMOrTemplate Fix retirevms to account it being called for objects other than VMOrTemplate Apr 3, 2017
@miq-bot miq-bot removed the wip label Apr 3, 2017
@lgalis
Copy link
Contributor Author

lgalis commented Apr 3, 2017

@miq-bot add_label bug
@miq-bot assign @martinpovolny
/cc @romanblanco

@miq-bot miq-bot added the bug label Apr 3, 2017
@lgalis lgalis changed the title Fix retirevms to account it being called for objects other than VMOrTemplate [WIP]Fix retirevms to account it being called for objects other than VMOrTemplate Apr 3, 2017
@lgalis lgalis changed the title [WIP]Fix retirevms to account it being called for objects other than VMOrTemplate Fix retirevms to account it being called for objects other than VMOrTemplate Apr 3, 2017
@lgalis lgalis changed the title Fix retirevms to account it being called for objects other than VMOrTemplate [WIP] Fix retirevms to account it being called for objects other than VMOrTemplate Apr 3, 2017
@miq-bot miq-bot added the wip label Apr 3, 2017
@martinpovolny
Copy link
Member

martinpovolny commented Apr 3, 2017

Oh, I see, it's not just "vms" there are several types of entities handled by that code.

@romanblanco , @PanSpagetka : need to me more careful with this.

The comments as well as the variable names lie. You need to check buttons that lead to the particular place :-(

@@ -215,7 +215,8 @@ def ownership_update
# Retire 1 or more VMs
Copy link
Member

Choose a reason for hiding this comment

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

@lgalis, can you, please, remove the missleading comment and rename the variable vms to something that suggest that we deal here with different things?

@lgalis lgalis force-pushed the fix_find_checked_ids_with_rbac_for_retirement_call branch 2 times, most recently from e3b7439 to d724ecf Compare April 3, 2017 19:38
@lgalis lgalis changed the title [WIP] Fix retirevms to account it being called for objects other than VMOrTemplate [WIP] Fix retirevms and vm_button_operations to account for it being called for objects other than VMOrTemplate Apr 3, 2017
@lgalis lgalis force-pushed the fix_find_checked_ids_with_rbac_for_retirement_call branch from d724ecf to f04da5e Compare April 3, 2017 21:11
@lgalis lgalis force-pushed the fix_find_checked_ids_with_rbac_for_retirement_call branch from f04da5e to 0ab8562 Compare April 3, 2017 21:47
@miq-bot
Copy link
Member

miq-bot commented Apr 3, 2017

Checked commit lgalis@0ab8562 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks good. 🏆

@lgalis lgalis changed the title [WIP] Fix retirevms and vm_button_operations to account for it being called for objects other than VMOrTemplate Fix retirevms and vm_button_operations to account for it being called for objects other than VMOrTemplate Apr 3, 2017
@miq-bot miq-bot removed the wip label Apr 3, 2017
@lgalis
Copy link
Contributor Author

lgalis commented Apr 4, 2017

/cc @martinpovolny

@martinpovolny martinpovolny merged commit 5523cfb into ManageIQ:master Apr 5, 2017
@martinpovolny martinpovolny added this to the Sprint 58 Ending Apr 10, 2017 milestone Apr 5, 2017
@lgalis lgalis deleted the fix_find_checked_ids_with_rbac_for_retirement_call branch April 5, 2017 14:24
simaishi pushed a commit that referenced this pull request Apr 5, 2017
…r_retirement_call

Fix retirevms and vm_button_operations to account for  it being called for objects other than VMOrTemplate
(cherry picked from commit 5523cfb)

https://bugzilla.redhat.com/show_bug.cgi?id=1439295
@simaishi
Copy link
Contributor

simaishi commented Apr 5, 2017

Fine backport details:

$ git log -1
commit a903951ed776a5832a4aefd9d1b2dc904dfc5570
Author: Martin Povolny <[email protected]>
Date:   Wed Apr 5 16:19:54 2017 +0200

    Merge pull request #890 from lgalis/fix_find_checked_ids_with_rbac_for_retirement_call
    
    Fix retirevms and vm_button_operations to account for  it being called for objects other than VMOrTemplate
    (cherry picked from commit 5523cfbebda0cabe531f9169a2ac6d5c434883d2)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1439295

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.

4 participants