Project

General

Profile

Feature #32140

Allow searching hosts by attributes of the reported data facet

Added by Marek Hulán 5 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Category:
Search
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:

Description

The ReportedDataFacet (https://github.com/theforeman/foreman/blob/develop/app/models/host_facets/reported_data_facet.rb) defines several normalized data based on facts however we don't allow to use that in our search. E.g. search of all hosts having RAM > 1024 or all hosts running for longer than a year without reboot (based on boot_time).

We should define a scoped_search definition for each of the attribute. Ideally that should be possible on host search syntax so on host detail page I could do something like "reported.ram > 1024".

Associated revisions

Revision e35061d0 (diff)
Added by Dominik Matoulek 2 months ago

Fixes #32140 - Adding scoped search on reported data

Host has many parameters. These parameters are mostly searchable via
scoped search. Since the Reported data was added to host, the boot_time
was only searchable. This PR add others parameters for scoped search via
"reported.*" call.

History

#1 Updated by Marek Hulán 5 months ago

  • Description updated (diff)

#2 Updated by The Foreman Bot 3 months ago

  • Assignee set to Dominik Matoulek
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8524 added

#3 Updated by The Foreman Bot 2 months ago

  • Fixed in Releases 3.0.0 added

#4 Updated by Dominik Matoulek 2 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by The Foreman Bot about 2 months ago

  • Pull request https://github.com/theforeman/foreman/pull/8589 added

#6 Updated by Tomer Brisker about 2 months ago

  • Category set to Search
  • Fixed in Releases 2.5.1 added

Also available in: Atom PDF