-
Notifications
You must be signed in to change notification settings - Fork 357
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
Fix title of the page to be updated when searching text in Datastores and other pages #3385
Fix title of the page to be updated when searching text in Datastores and other pages #3385
Conversation
@miq-bot add_label bug |
8e97bd1
to
942d5e0
Compare
c9b9adb
to
bf05407
Compare
@@ -356,6 +356,24 @@ | |||
end | |||
end | |||
|
|||
describe '#get_node_info' do | |||
let(:search) { nil } |
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.
YAGNI
@@ -718,6 +718,24 @@ | |||
end | |||
end | |||
|
|||
describe '#get_node_info' do | |||
let(:search) { nil } |
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.
YAGNI
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1540613 Fix title of the page to be updated according to search text in Compute > > Infrastructure > Datastores page.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1540613 Fix title of the page to be updated according to search text in Services > My Services page.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1540613 Fix title of the page to be updated according to search text in Configuration > Management page.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1540613 Fix title of the page to be updated according to search text in Control > Explorer page.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1540613 Fix title of the page to be updated according to search text in Automation > Ansible Tower > Explorer screen.
bf05407
to
6e47e7d
Compare
6e47e7d
to
70a363d
Compare
70a363d
to
ec932f1
Compare
@skateman Thanks for your review of my specs, now it should be ok ;) |
Checked commits hstastna/manageiq-ui-classic@c7488df~...ec932f1 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
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.
…ther_pages Fix title of the page to be updated when searching text in Datastores and other pages (cherry picked from commit 749c538) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1552900
Gaprindashvili backport details:
|
@miq-bot add_label test |
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1540613
Fix title of the page to be updated according to search text in Compute > Infrastructure > Datastores page and in another pages.
Details (for Datastores):
The title of the page was not updated when searching text in Datastores, because it was not implemented in storage controller. In other pages, for example VMs, it is implemented in
get_node_info
method (like this: https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/vm_common.rb#L1155). The title which was changed according to search text in Datastores page, is stored in@title
variable, updated in application controller (here: https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/application_controller.rb#L1199), but this variable is used for title in other pages, not in Datastores (and also it was set to just "Datastores", and we need "All Datastores"). For Datastores we see the title in the page, which is stored in@right_cell_text
, so I added the line for updating@right_cell_text
according to what is in@search_text
to storage controller, toget_node_info
method (as it is in other controllers, where it works).Another note:
I've added the line for updating
@right_cell_text
to controllers BEFORE the name of a filter is added to the title here https://github.com/ManageIQ/manageiq-ui-classic/pull/3385/files#diff-deaa0e49bde4dd95612b5e0b14568aa6R343 (if some filter is applied). The reason is "clear":vs this:
Done: fixing the title in
-- Compute > Infrastructure > Datastores
-- Services > My Services
-- Configuration > Management
-- Control > Explorer
-- Automation > Ansible Tower > Explorer
-- spec tests for all of the changes in all of the controllers
Before searching text in Datastores:
Before fixing title in Datastores:
After fixing title in Datastores: