Project

General

Profile

Bug #16713

in "any organziation" view, the dashboard gets slower as orgs are added

Added by Chris Duryee over 2 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Dashboard
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

If you attempt to view the dashboard in the "any organization" view, the dashboard will get slower as orgs are added. This is because the subscription status widget is polling across all organizations, and making a call to candlepin for each org.

how to repro:

  • create two orgs
  • view dashboard

You will see two calls to candlepin, one per org.

It is not common to use the dashboard to find subscription info across orgs, since subscriptions are closely tied to an org. Instead, it is OK for the widget to just display "information not available, please select an organization" or some other text.

Associated revisions

Revision 3ef5d73c (diff)
Added by Chris Duryee over 2 years ago

Fixes #16713: do not show subscription info if no org is selected (#6357)

Previously, the dashboard would iterate over each organization the user
had access to and sum up the subscription info. If the user had a large
number of orgs, this could make the dashboard extremely slow, since
each organization required two calls to candlepin to find the
subscription counts.

Instead, display a message stating that an organization needs to be
selected in order to show subscription info. It is unlikely a user
would want to see a "roll-up" view of subs across orgs, since
subscriptions are tightly coupled to a particular org.

History

#1 Updated by The Foreman Bot over 2 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6357 added

#2 Updated by Chris Duryee over 2 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Justin Sherrill over 2 years ago

  • Legacy Backlogs Release (now unused) set to 162

Also available in: Atom PDF