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

Fixed some inconsistencies on provider dashboards. #4659

Merged

Conversation

h-kataria
Copy link
Contributor

@h-kataria h-kataria commented Sep 13, 2018

  • Red crosses were added as part of Add a tooltip to health state of the cards in the physical infra dashboard #4453 that caused them to show up on all aggregate status cards on all provider dashboards, fixed the condition and removed setting of redundant notification hash for providers when it is not needed.
  • Show status icon under Alerts in aggregate card if Alerts are configured for a container provider, otherwise show "No data available" empty pf card.
  • On Containers Overview dashboard, Fixed to not show provider icon in Provider status aggregate card, it should only show count of providers with a link to list view to Container Providers show list.
  • Added a title on Container Overview dashboard screen, since that's the only screen on that subtab there are no breadcrumbs on the screen.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1626199
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1626427

before:
Container Overview
screenshot from 2018-09-13 13-42-08

Infrastructure Provider Dashboard
screenshot from 2018-09-13 13-42-38

Container Provider Dashboard
screenshot from 2018-09-13 13-43-04

after:
Container Overview
screenshot from 2018-09-13 13-39-07

Infrastructure Provider Dashboard
screenshot from 2018-09-13 13-21-37

Container Provider Dashboard
screenshot from 2018-09-13 13-21-08

@h-kataria h-kataria requested a review from skateman September 13, 2018 17:48
@h-kataria h-kataria force-pushed the provider_dashboard_inconsistencies_fixed branch 4 times, most recently from 37c0a1b to 43d3255 Compare September 13, 2018 21:16
@miq-bot
Copy link
Member

miq-bot commented Sep 14, 2018

This pull request is not mergeable. Please rebase and repush.

@h-kataria h-kataria force-pushed the provider_dashboard_inconsistencies_fixed branch 2 times, most recently from 66a6c42 to aa4cd1a Compare September 14, 2018 13:11
@h-kataria h-kataria force-pushed the provider_dashboard_inconsistencies_fixed branch from aa4cd1a to 897f11a Compare September 14, 2018 16:41
@@ -163,7 +165,7 @@ def build_provider_status(provider_type)
:count => 0,
:typeName => _(provider_type.to_s),
:iconImage => provider_fileicon ? ActionController::Base.helpers.image_path(provider_fileicon) : nil,
:statusIcon => provider_status_icon
:statusIcon => provider_status_icon || nil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this || nil really necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@skateman removed || nil it seems to work well without that as well. I needed to set that before your recent change.

- Red crosses were added as part of ManageIQ#4453 that caused them to show up on all aggregate status cards on all provider dashboards, fixed the condition and removed setting of redundant notification hash for providers when it is not needed.
- Show status icon under Alerts in aggregate card if Alerts are configured for a container provider, otherwise show "No data available" empty pf card.
- On Containers Overview dashboard, Fixed to not show provider icon in Provider status aggregate card, it should only show count of providers with a link to list view to Container Providers show list.
- Added a title on Container Overview dashboard screen, since that's the only screen on that subtab there are no breadcrumbs on the screen.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1626199
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1626427
@h-kataria h-kataria force-pushed the provider_dashboard_inconsistencies_fixed branch from 897f11a to b765b9b Compare September 17, 2018 15:50
@miq-bot
Copy link
Member

miq-bot commented Sep 17, 2018

Checked commit h-kataria@b765b9b with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
5 files checked, 1 offense detected

**

  • 💣 💥 🔥 🚒 - Linter/Haml - Linter::Haml STDERR:
warning: parser/current is loading parser/ruby23, which recognizes
warning: 2.3.6-compliant syntax, but you are running 2.3.3.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.

Copy link
Member

@skateman skateman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Seal of Approval

@skateman
Copy link
Member

@miq-bot assign @mzazrivec

@mzazrivec mzazrivec added this to the Sprint 95 Ending Sep 24, 2018 milestone Sep 18, 2018
@mzazrivec mzazrivec merged commit 0d0a3e2 into ManageIQ:master Sep 18, 2018
@h-kataria h-kataria deleted the provider_dashboard_inconsistencies_fixed branch October 24, 2018 22:04
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.

4 participants