Project

General

Profile

Feature #33025

Add scoped search definition for arf reports that finds reports for hosts owned by current user

Added by Ondřej Pražák over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Search
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Associated revisions

Revision 8915e45f (diff)
Added by Marek Hulán over 1 year ago

Fixes #33025 - allow filtering hosts by user id

Users would like to set filters so users can only see reports of hosts
they own.

For that we can define an association on a Report based on the Host
ownership. Then we can add a scoped search definition that could be used
in Filter definition. The resulting scoped search term that can be used
on any Report subclass is

```
host_owner_id = current_user
```

Instead of `current_user`, a specific user ID can be used too.

This will not take user group ownership into the consideration due to
the complexity, especially when tree structure of user groups is
considered.

Revision f0c0fa5b (diff)
Added by Marek Hulán over 1 year ago

Refs #33025 - fix spacing of search definitions

History

#1 Updated by Marek Hulán over 1 year ago

  • Subject changed from Add scoped search definition for arf reports that finds reports for hosts owned by current user to Add scoped search definition for arf reports that finds reports for hosts owned by current user

This needs to be addressed in code thanks to the reports STI

#2 Updated by Marek Hulán over 1 year ago

  • Project changed from OpenSCAP to Foreman

#3 Updated by The Foreman Bot over 1 year ago

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

#4 Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.1.0 added

#5 Updated by Marek Hulán over 1 year ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Amit Upadhye over 1 year ago

  • Category set to Search

Also available in: Atom PDF