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

Add ability to rename VMs #4351

Merged
merged 11 commits into from
Aug 13, 2018
Merged

Conversation

hstastna
Copy link

@hstastna hstastna commented Jul 25, 2018

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


What:
This VMware specific PR adds a new feature which allows users to rename VMs after provisioning has been completed (backend already done).

Why:
To simply rename VM without having to reprovision.

Backend PRs: (merged)
ManageIQ/manageiq#17853 (for rename_queue method)
ManageIQ/manageiq#17658
ManageIQ/manageiq-providers-vmware#291
ManageIQ/vmware_web_service#41


Done:

  • added Rename selected/this VM button to toolbar for VMs
  • added missing routes
  • added new screen for renaming a VM
  • changes in vm_common.rb
  • added new Rename module to Mixins for VM rename related methods
  • check for support of rename feature for a chosen VM in the list screen

How to test:

  1. Go to Compute > Infra > VMs (or to any VMs' page)
  2. Choose some VM after provisioning has been completed (check the checkbox)
    OR click on the VM to display its details page
  3. Configuration > Rename selected item/Rename this VM

Before:

After:
Rename selected item button:
rename_button
Rename this VM button:
rename_details
Renaming screen for a chosen VM (Compute > Infra > VMs):
rename_vm
Resetting changes of the name of a VM:
reset_vm
Canceling renaming of a VM:
cancel_rename
Flash message after trying to rename a chosen VM from the list screen which is not supported (it's only for VMs of VMware provider!):
rename_not
Renaming for other VMs - the button is visible but disabled (not VMware provider):
(you will see this after merging #4364, otherwise you will not see the button at all - if the feature will not be supported for a chosen VM)
not_rename
Renaming of a VM from a nested list (provider's details page):
non_exp_save
Rename of a VM task initiated successfully (from details page or list screen):
rename_succ
rename_succ2

@miq-bot miq-bot added the wip label Jul 25, 2018
@hstastna hstastna force-pushed the Ability_to_rename_VMs branch 29 times, most recently from 814a182 to 0d98258 Compare July 30, 2018 21:00
@hstastna hstastna changed the title Add ability to rename VMs [WIP] Add ability to rename VMs Aug 13, 2018
@miq-bot miq-bot added the wip label Aug 13, 2018
@hstastna hstastna changed the title [WIP] Add ability to rename VMs Add ability to rename VMs Aug 13, 2018
@miq-bot miq-bot removed the wip label Aug 13, 2018
Copy link
Member

@agrare agrare left a comment

Choose a reason for hiding this comment

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

Tested with ManageIQ/manageiq#17853 applied and works as expected 👍

Add the changes to the new Rename module, to get a task_id
and to save the new name of a VM while renaming it.
@miq-bot
Copy link
Member

miq-bot commented Aug 13, 2018

Checked commits hstastna/manageiq-ui-classic@13114ef~...e9f9e77 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
12 files checked, 0 offenses detected
Everything looks fine. 👍

@h-kataria
Copy link
Contributor

good to go, verified changes in UI.

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