-
Notifications
You must be signed in to change notification settings - Fork 356
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 performing SSA on Datastores in Datastore Clusters accordion #6298
Allow performing SSA on Datastores in Datastore Clusters accordion #6298
Conversation
bed03c4
to
b5c2040
Compare
Checked commit hstastna@b5c2040 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
@hstastna The breadcrumb changes after clicking on SSA. It's not happening for Delete Datastores. Otherwise it works perfectly :) |
SSA = toolbar Configuration / Perform SmartState Analysis |
@ZitaNemeckova The issue here is that it is not happening for Delete Datastores. Right? Because I think that, originally, 'Datastores in .. Cluster' was missing in breadcrumbs. |
@hstastna I think it's the other way - using a toolbar button that doesn't change the screen we're on should not change the breadcrumbs either. So, on a list screen, neither Delete nor Perform SSA should change the breadcrumbs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The breadcrumb issue is out of scope for this PR.
LGTM 👍
I agree, partially with you, @himdel . Yes, breadcrumbs shouldn't be changed because of some action but I think that here, after the SSA, the breadcrumbs are finally right, and before the action they weren't - 'Datastores in .. Cluster' was missing there. Because, everywhere across MIQ, I can see that the title of the page is also in breadcrumbs. I don't see any reason to have it differently in this page. |
Aah, agreed, the breadcrumbs should reflect the current screen. Create the issue please and maybe @rvsia can point you to the right way of fixing this situation. |
Ah, @ZitaNemeckova already created #6347 :) EDIT: but #6348 is more correct re #6298 (comment) |
Created an issue for it |
Issue: #6241
There was an issue with Datastores and SSA: The selected Datastore was not accessible while performing SSA from the list of Datastores of selected Datastore Cluster.
Details:
In
generic_button_operation
method, called byscanstorage
after clicking on Perform SmartState Analysis toolbar button,screen_redirection
is called. However, in this method, logic for@lastaction
different than"show_list"
is missing (see). The result is that it callsshow
instead ofshow_list
here (it does not 'go' into the proper condition and does not callreturn
when it should so we fall into the next condition withshow
call). And this is simply wrong because we are in the list of Datastores, we want to callshow_list
.I changed the condition and added some more possibilities for
@lastaction
, the same as it already is in a different place (for deleting Datastores, where it already fixes the same problem), see this. This all is just because@lastaction
is very specific, it is set to"storage_pod_list"
. Not sure how important is to set@lastaction
to such value but I am not going to change it.For other methods, it simply works just because
@lastaction
is set to"show_list"
or there isoptions[:redirect]
present (inscreen_redirection
). Or, simplygeneric_button_operation
is not called at all.Before:
After: