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

Allow comparing Hosts and VMs/Instances displayed as a nested list #6044

Merged
merged 7 commits into from
Sep 5, 2019

Conversation

hstastna
Copy link

@hstastna hstastna commented Aug 16, 2019

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1741122
Related PR with more info: #5876

It was not possible to compare VMs/Instances/Hosts displayed in a nested list due to missing routes and/or missing comparemiq method in some controllers. You clicked on "Compare Selected items" and nothing happened in the UI or error message about missing route appeared.

Adding missing routes and comparemiq calls in appropriate controllers fixes the problem. I am also adding unless performed? to prevent multiple calls of javascript_flash method, for example in storage controller - this can happen for some operations because of this and this.

Where I fixed comparing items:
a) Compute > Infra > Datastores > choose some Datastore > Hosts (Relationships)
b) Networks > Networks > choose some Network > Instances (Relationships)
c) Networks > Subnets > choose some Subnet > Instances (Relationships)
d) Storage > Block Storage > Volumes > choose some Volume > Instances (Relationships)
e) Networks > Network Routers > choose some Router > Instances (Relationships)
f) Compute > Infra > Resource Pools > choose some Pool > All/Direct VMs (Relationships)
g) Networks > Security Groups > choose some Group > Instances (Relationships)

Note:
Missing Cancel button to cancel Compare action will be added via another PR.
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1733295 (fixed)


Before: (nothing happens in the UI)
comp_host_before

After:
host_comp

@miq-bot miq-bot added the wip label Aug 16, 2019
@hstastna hstastna force-pushed the Compare_Instances/Hosts_nested branch from 14b71e1 to 670ab7c Compare August 16, 2019 12:33
@hstastna
Copy link
Author

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

@hstastna hstastna force-pushed the Compare_Instances/Hosts_nested branch 12 times, most recently from b7f4367 to 6654849 Compare August 20, 2019 11:26
@hstastna hstastna changed the title [WIP] Allow comparing Hosts and VMs/Instances displayed as a nested list Allow comparing Hosts and VMs/Instances displayed as a nested list Aug 20, 2019
@miq-bot miq-bot removed the wip label Aug 20, 2019
@hstastna hstastna force-pushed the Compare_Instances/Hosts_nested branch from 6654849 to fc99970 Compare August 27, 2019 13:51
@miq-bot
Copy link
Member

miq-bot commented Aug 27, 2019

Checked commits hstastna/manageiq-ui-classic@467d061~...fc99970 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
12 files checked, 0 offenses detected
Everything looks fine. 🏆

@h-kataria h-kataria requested a review from skateman August 29, 2019 13:20
Copy link
Member

@skateman skateman left a comment

Choose a reason for hiding this comment

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

The Seal of Approval

@h-kataria h-kataria self-assigned this Sep 5, 2019
@h-kataria h-kataria added this to the Sprint 120 Ending Sep 16, 2019 milestone Sep 5, 2019
@h-kataria h-kataria merged commit 77973cd into ManageIQ:master Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants