Bug #21584
closed/statistics page does not respect organization context for admin user
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1510064
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):
6.3.0-21 / Foreman nightly
How reproducible:
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.
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Assignee set to Marek Hulán
- Pull request https://github.com/theforeman/foreman/pull/4982 added
Updated by Tomer Brisker about 7 years ago
- Subject changed from /statistics page does not respect organization context for admin user to /statistics page does not respect organization context for admin user
- Translation missing: en.field_release set to 296
Updated by Marek Hulán about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset fd68eb66fda726e54a32b580e22b6fc6287fa519.