Project

General

Profile

Bug #21584

/statistics page does not respect organization context for admin user

Added by Marek Hulán almost 2 years ago. Updated over 1 year ago.

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

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.

Associated revisions

Revision fd68eb66 (diff)
Added by Marek Hulán almost 2 years ago

Fixes #21584 - set taxonomies for chart requests

History

#1 Updated by The Foreman Bot almost 2 years ago

  • Assignee set to Marek Hulán
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4982 added

#2 Updated by Tomer Brisker almost 2 years ago

  • Legacy Backlogs Release (now unused) set to 296
  • Subject changed from /statistics page does not respect organization context for admin user to /statistics page does not respect organization context for admin user

#3 Updated by Marek Hulán almost 2 years ago

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

Also available in: Atom PDF