-
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
Rename tabs in the haml to match current tab in the controller scope #4836
Rename tabs in the haml to match current tab in the controller scope #4836
Conversation
$scope.currentTab needs to always match the tab name passed in from the haml in order to make sure that the validation is done correctly when the "Enter" key is pressed
'container_metrics' is actually a proper name for a tab to differentiate it from the RHV metrics tab. So ideally 'container_metrics' tab name should be retained, however this would mean a whole bunch of other changes from the backend side, since the backend expects cred_type to be 'metrics' (as opposed to 'container_metrics') Therefore, unfortunately we have to rename the tab to 'metrics' . This is probably an easier change than changing the backend rails controller code.
@miq-bot add_label bug,hammer/yes |
@masayag Thank you for testing this. @miq-bot assign @h-kataria |
Checked commits AparnaKarve/manageiq-ui-classic@583d776~...bc783ed with ruby 2.3.3, rubocop 0.52.1, 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.
Verified on my env.
…_tab Rename tabs in the haml to match current tab in the controller scope (cherry picked from commit 020f33c) https://bugzilla.redhat.com/show_bug.cgi?id=1609735 https://bugzilla.redhat.com/show_bug.cgi?id=1640304
Hammer backport details:
|
Causes https://bugzilla.redhat.com/show_bug.cgi?id=1650410 (regression of https://bugzilla.redhat.com/show_bug.cgi?id=1550405, previously fixed in #3511) |
My first guess is something was probably missed in the first commit 583d776 while renaming virtualization tab to kubevirt. |
Adjusted Container Provider tab names so that they are consistent with what's specified in the haml and the value passed to the angular controller when Validate is clicked.
This is also a continuation of work for this PR - #4768
https://bugzilla.redhat.com/show_bug.cgi?id=1609735
https://bugzilla.redhat.com/show_bug.cgi?id=1640304