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

Show breadcrumbs when redirected from another controller #5148

Merged
merged 3 commits into from Jan 16, 2019

Conversation

PanSpagetka
Copy link
Contributor

When redirect from another (e.g. Alert) controller provider dashboards have no breadcrumbs. In GenericShowMixin show_dashboard method is dropping breadcrumb, but only for the showed record (one concrete Provider, like Amazon or Openshift instance). Not the upper level of hierarchy (Cloud/Container provider). So there are no breadcrumbs showed.

This PR adds the base of breadcrumbs fro providers.

Links [Optional]

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

Steps for Testing/QA [Optional]

  1. Configure an appliance with a provider (e.g. infra)
  2. Setup an alert to fire against that provider
  3. Navigate to Monitor->Alerts->All Alerts
  4. Click on the providers name in the list-view of the provider

@@ -19,6 +19,11 @@ def self.table_name
@table_name ||= "ems_cloud"
end

def show
@breadcrumbs = [{:name => "Cloud Providers", :url => "/ems_cloud/show_list"}]
Copy link
Contributor

Choose a reason for hiding this comment

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

Should not be it _('Cloud Providers')? (Same below) 🌐

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ye, it should

@mzazrivec
Copy link
Contributor

@PanSpagetka The current CI failures seem related to your changes.

@miq-bot
Copy link
Member

miq-bot commented Jan 14, 2019

Checked commits PanSpagetka/manageiq-ui-classic@8ed520c~...c7dc7ad with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
4 files checked, 0 offenses detected
Everything looks fine. 🍪

@PanSpagetka
Copy link
Contributor Author

@mzazrivec specs fixed :)

@mzazrivec
Copy link
Contributor

@rvsia Are the current changes OK with you?

@mzazrivec mzazrivec requested a review from rvsia January 16, 2019 09:10
@mzazrivec mzazrivec self-assigned this Jan 16, 2019
@mzazrivec mzazrivec added this to the Sprint 103 Ending Jan 21, 2019 milestone Jan 16, 2019
@mzazrivec mzazrivec merged commit 3e7db44 into ManageIQ:master Jan 16, 2019
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.

None yet

5 participants