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

Delete Resume button for VMs and Instances #6581

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

ZitaNemeckova
Copy link
Contributor

@ZitaNemeckova ZitaNemeckova commented Jan 6, 2020

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

Go to:
Compute -> Clouds -> Instances -> check one or more -> toolbar Power -> click Resume

Before:
Screenshot 2020-01-07 at 16 09 13

Nothing happens in UI but there's an error in log

 FATAL -- : Error caught: [ActionController::RoutingError] invalid button action
/ManageIQ/manageiq-ui-classic/app/controllers/application_controller/explorer.rb:81:in `x_button'

After: no Resume button
Screenshot 2020-01-07 at 15 46 49

Removing because:

  • I didn't find any mention of resume with
    VmOrTemplate.descendants.select{ |x| x.instance_methods.include?(:resume)}.count, VmOrTemplate.descendants.select{ |x| x.instance_methods.include?(:raw_resume)}.count, VmOrTemplate.descendants.select{ |x| x.methods.include?(:resume)}.count and VmOrTemplate.descendants.select{ |x| x.methods.include?(:raw_resume)}.count

  • The Resume button checks that a VM has start feature but never calls a method. Generic code that handles all Power buttons tries to call a method instance_resume that never existed in UI.

  • It seems that it never worked since Anand. There's no method for Resume button.

  • No VM has some kind of resume method(I would expect raw_resume or resume based on other Power action methods naming)

Leaving Provider Resume related code as is.

@miq-bot add_label bug, ivanchuk/yes, hammer/yes, wip

@miq-bot miq-bot changed the title Fix Resume button [WIP] Fix Resume button Jan 6, 2020
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1738584

- The Resume button checks that a VM has start feature but never calls a method. Generic code that handles all Power buttons tries to call a method instance_resume that never existed.

- It seems that it never worked since Anand. There's no method for Resume button.

- No VM has some kind of resume method(I would expect raw_resume or resume based on other Power action methods naming)

Leaving Provider Resume related code as is.
@miq-bot
Copy link
Member

miq-bot commented Jan 7, 2020

Checked commit ZitaNemeckova@f368d33 with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🏆

@ZitaNemeckova
Copy link
Contributor Author

@miq-bot remove_label wip

@h-kataria please have a look, thanks:)

@miq-bot miq-bot changed the title [WIP] Fix Resume button Fix Resume button Jan 7, 2020
@miq-bot miq-bot removed the wip label Jan 7, 2020
@ZitaNemeckova ZitaNemeckova changed the title Fix Resume button Delete Resume button for VMs and Instances Jan 8, 2020
@himdel himdel self-assigned this Jan 9, 2020
@himdel himdel added this to the Sprint 128 Ending Jan 20, 2020 milestone Jan 9, 2020
@himdel himdel merged commit b6691d1 into ManageIQ:master Jan 9, 2020
@ZitaNemeckova ZitaNemeckova deleted the fix_resume_action branch January 9, 2020 16:01
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