Skip to content
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

Moved Timelines & Utilization buttons to summary screen from list view. #5738

Merged
merged 1 commit into from
Dec 16, 2015

Conversation

h-kataria
Copy link
Contributor

Fixed Timelines & Utilization buttons to go thru x_button method similar to all other toolbar buttons and removed any code that is not needed in explorer & show method.

@dkorn please take a look, this PR addresses the issue where Timelines/Utilization buttons were going thru explorer method and were messing up the url, causing an error(that was fixed with a hack https://github.com/ManageIQ/manageiq/blob/master/app/controllers/container_controller.rb#L138 in explorer method) when clicking on nodes in the tree while user is on timelines/C&U screen.

@h-kataria h-kataria force-pushed the containers_controller_fixes branch from a561aaa to fb53dc2 Compare December 7, 2015 21:51
@h-kataria h-kataria force-pushed the containers_controller_fixes branch 2 times, most recently from a89e694 to 95b8e2a Compare December 8, 2015 21:28
@h-kataria
Copy link
Contributor Author

@dkorn bump

@dkorn
Copy link
Contributor

dkorn commented Dec 14, 2015

@h-kataria first, thanks for this refactor!

I tested it locally and found two issues:

  1. when clicking the reload button from Timelines (/Utilization) it redirects back to the container view, instead of reloading the container's Timelines(/Utilization) page. Also, why isn't the reload button in the list CONTAINER_X_BUTTON_ALLOWED_ACTIONS?
  2. not sure if it is an issue or not, when moving from a certain container view to other entity list (Pods for example) and then clicking containers (under the containers tab) the controller redirects back to the specific container instead of the containers list.

@h-kataria
Copy link
Contributor Author

@dkorn, i will look at issue 1, 2 is not an issue, that's by design to bring user back to the last node that they were on before browsing to screen out of explorer.

- Fixed Timelines & Utilization buttons to go thru x_button method similar to all other toolbar buttons and removed any code that is not needed in explorer & show method.
- Added spec tests to verify Timelines & Utilization buttons render correct views.
@h-kataria h-kataria force-pushed the containers_controller_fixes branch from 95b8e2a to dfdb14f Compare December 14, 2015 21:36
@miq-bot
Copy link
Member

miq-bot commented Dec 14, 2015

Checked commit h-kataria@dfdb14f with ruby 2.2.3, rubocop 0.34.2, and haml-lint 0.13.0
2 files checked, 0 offenses detected
Everything looks good. ⭐

@h-kataria
Copy link
Contributor Author

@dkorn, i looked into you comment 1, that's by design, in all explorer reload button brings user back to the summary screen of the record that you were on before you clicked on any buttons or relationship links etc. See VM explorer for an example.

@dkorn
Copy link
Contributor

dkorn commented Dec 16, 2015

@h-kataria thanks for looking into my comments.
PR LGTM 👍

dclarizio pushed a commit that referenced this pull request Dec 16, 2015
Moved Timelines & Utilization buttons to summary screen from list view.
@dclarizio dclarizio merged commit 0581550 into ManageIQ:master Dec 16, 2015
@dclarizio dclarizio deleted the containers_controller_fixes branch December 16, 2015 21:14
@dclarizio dclarizio added this to the Sprint 34 Ending Jan 4, 2016 milestone Dec 16, 2015
chrisarcand pushed a commit to chrisarcand/manageiq that referenced this pull request Dec 18, 2015
Moved Timelines & Utilization buttons to summary screen from list view.

- Fixed Timelines & Utilization buttons to go thru x_button method similar to all other toolbar buttons and removed any code that is not needed in explorer & show method.
- Added spec tests to verify Timelines & Utilization buttons render correct views.
(cherry picked from commit dfdb14f)

https://bugzilla.redhat.com/show_bug.cgi?id=1289694
https://bugzilla.redhat.com/show_bug.cgi?id=1287563

@dclarizi please review, this is a clean cherry-pick for ManageIQ#5738

See merge request !634
@abonas
Copy link
Member

abonas commented Jan 4, 2016

@miq-bot add_label providers/containers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants