Description of problem:
this seems to worked prior snap #21:
when i access the /statistics page as admin user, the widget seem to contain data from all orgs&locs, not respecting the chosen context.
- e.g. OS distribution across hosts, or Architectures - if i have some hosts belonging to Org A, I still can see them counted in the chart even if i have Org B selected.
When i access the page using another user with Manager role assigned, this seems to perform correctly.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. have some hosts created in orgA
2. as admin, navigate to dashboard -> statistics
3. switch between organization contexts and notice, the stats are not changing (at least for OS and arch distributions over hosts)
[4.] try all the above with a custom user with Manager role and all orgs assigned.
note: this might not be a problem for a whole page, but the individual widgets. Please, correct the title accordingly, if that is the case
Created redmine issue http://projects.theforeman.org/issues/21584 from this bug
Upstream bug assigned to email@example.com
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21584 has been resolved.
This didn't cherry-pick cleanly, and I'm not that familiar with foreman's codebase. Could you do the pick for me?
In fact it seems this won't be needed as we'll fix it by BZ 1502725, let's keep it modified until it's resolved.
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