Description of problem: After login dashboard is the homepage, if the user is admin and has no default_organization set it takes long time to load (up to 2 minutes). Version-Release number of selected component (if applicable): Sattelite 6.2 snap 13 How reproducible: When system has more than 10 organizations Steps to Reproduce: 1. Create a lot of organizations 10+ 2. Create a new admin user without default_organization set 3. Login with this new user to dashboard 4. Note that login takes a long time comparing to users with default_organization Actual results: When user has no default_organization and log in, it will load in "Any Context" which will cause the dashboard to aggregate values form all organization. According to *beav* and watching server logs I notice there is a call to candlepin for each organization. Expected results: User log in to dashboard using "Any Context" showing data from all the organizations, but only a single call to candlepin to get the data in bulk would avoid the long time to load. Additional info:
The recommended fix is to display "please select an organization to view subscription information" for the subscription widget if no org is selected. It is possible to fix this by adding multi-org API calls to candlepin and katello, but I do not think it's worth it for this use case. Most users drill down into an org before examining subscription data.
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16713 has been resolved.
Verified on 6.3.0 snap 6. Subscription widget shows "Please select an organization to view subscription totals." msg. Even after creating 11 orgs the load time for the page seems to be the same. So I am changing status to verified
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. > > For information on the advisory, and where to find the updated files, follow the link below. > > If the solution does not work for you, open a new bug report. > > https://access.redhat.com/errata/RHSA-2018:0336