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 missing routes to compare managed VMs of a Datastore #5876
Add missing routes to compare managed VMs of a Datastore #5876
Conversation
@miq-bot add_label bug, hammer/yes, ivanchuk/yes |
@hstastna compare routes should be added to ems_infra controller section as well, please check maybe there are others that have these routes missing too. |
a954425
to
baea2d1
Compare
Yes, the same problem occurs for comparing VMs displayed from an Infra provider's details page. |
8c0eef7
to
478c3d5
Compare
Just a note that I've checked other controllers and routes shouldn't be missing anywhere else. But in some controllers, comparing does not work (nothing happens in the UI, also no error). This is because of a different problem, the appropriate method for comparing is missing in those controllers. This will be fixed in a different PR. |
478c3d5
to
236898e
Compare
5189d78
to
112cbeb
Compare
So, all of these controllers seem to display vms or instances in some form:
And possibly (via EmsCommon, not sure)
Still investigating if any of those unchecked controllers actually allow the user to compare things. |
@himdel I've tested and found that there is another issue with comparing items: some a) comparing hosts displayed as a nested list
b) Networks > networks > some network > Instances > compare c) Networks > subnets > some subnet > Instances > compare d) Networks > Network Routers > some router > Instances > compare e) Networks > Security Groups > some group > Instances > compare As it is a slightly different issue, should I open a BZ/issue for this? Thank you. |
Another issue is that accordion with more comparing options is/will be missing for comparing. This is because we limit displaying it just for explorer screens. For me it does not make sense but maybe it has some reason. Maybe we did not allow comparing operation in the past if we were not in an explorer screen. I am not sure. See: https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/views/layouts/listnav/_compare_sections.html.haml#L1 |
What do you mean? There should be no All of those end up calling So... I guess it could be that a controller implements its own |
Ah, tested on the first case you mentioned... The request is And indeed, CloudNetwork has it's own So agreed, that's a second bug that needs to be fixed too. This may be as easy as adding a |
Sorry, my bad, I meant calling |
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1733120 Add missing routes also for ems infra and other controllers to fix the same issue.
112cbeb
to
37d40fb
Compare
Checked commit hstastna@37d40fb with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Fixes comparison in 2 controllers (ems_infra and storage), so merging now :). There may still be issues in other controllers, both with missing routes or with missing entries in the |
@miq-bot add_label blocker |
Add missing routes to compare managed VMs of a Datastore (cherry picked from commit 5b2253c) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1784179 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1784180 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1784181
Ivanchuk backport details:
|
Add missing routes to compare managed VMs of a Datastore (cherry picked from commit 5b2253c) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1794434 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1794436 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1794438
Hammer backport details:
|
Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=1733120
https://bugzilla.redhat.com/show_bug.cgi?id=1746214
https://bugzilla.redhat.com/show_bug.cgi?id=1746449
This PR adds missing routes to enable ability to compare Managed VMs of a Datastore (selected VMs, displayed in a nested list from Relationships table of a chosen Datastore).
Note:
Missing Cancel button will be fixed via https://bugzilla.redhat.com/show_bug.cgi?id=1733295.
Before:
After: