-
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
Split up miq_capacity into threee separate controllers #1966
Conversation
f9e08fb
to
dd5e17e
Compare
0bb21f5
to
fcc16de
Compare
fcc16de
to
5209295
Compare
Checked commits skateman/manageiq-ui-classic@df27886~...5209295 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 app/controllers/bottlenecks_controller.rb
app/controllers/planning_controller.rb
app/controllers/utilization_controller.rb
app/presenters/menu/default_menu.rb
app/views/bottlenecks/_bottlenecks_report.html.haml
app/views/planning/_planning_options.html.haml
app/views/planning/_planning_report.html.haml
app/views/planning/_planning_summary.html.haml
app/views/planning/_planning_vm_profile.html.haml
app/views/planning/index.html.haml
app/views/utilization/_utilization_details.html.haml
app/views/utilization/_utilization_options.html.haml app/views/utilization/_utilization_report.html.haml
app/views/utilization/_utilization_summary.html.haml
spec/views/utilization/_utilization_options.html.haml_spec.rb
|
verified in UI, maybe some of the code that is split into individual controllers can be unified in a separate PR that will knock down few of the code climate warnings as well. |
multiple issues fixed: 1 Download button toolbar was not being rendered for Bottlenecks explorer 2 `change_tab` transaction was not working because the tab id being passed in miq_tabs_init had typo, also fixed typo in method name `bottleneck_get_node_info` it should be `get_node_info` 3 download button was always disabled, added condition to enable download buttons on report tab 4 added missing routes for `change_tab` and `report_download` 5 `report_download` method was missing in controller Issue was introduced in ManageIQ#1966 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1648500
The
miq_capacity
controller was behaving as an explorer, however, it was providing three different (utilization, planning, bottlenecks) screens. Two of these screens are rendering an explorer tree using their own partial distinguished by theaction_name
. To continue with the explorer tree unification effort I'm splitting it up this into three controllers.I was thinking how to split this up into small(er) commits but the code is too messy to do that, sorry for that @martinpovolny. More tree-related refactoring in the area will come in some followup PRs.
Depends on: ManageIQ/manageiq#15869