Project

General

Profile

Actions

Refactor #191

closed

Query should return all hosts, not just recent.

Added by Bash Shell about 14 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Search
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

The "find_hosts" method for query uses this following line of code:

list = Host.recent.with_class(k).send(state).map(&:name)

If a person queries Foreman for certain facts, this will only returns "recent" hosts having those facts.

If a host has no recent reports, it won't be included.

I'm not sure what is the rationale behind this.

Wouldn't it be better if a query returns ALL hosts matching the given facts and classes regardless of recent reports?


Related issues 2 (0 open2 closed)

Has duplicate Foreman - Bug #184: Query 'state' doesn't workClosedOhad LevyActions
Has duplicate Foreman - Bug #188: Fact, Class, State combined filter doesn't workClosed03/23/2010Actions
Actions #1

Updated by Ohad Levy about 14 years ago

  • Category set to 19
  • Assignee set to Ohad Levy
  • Target version set to 0.1-5
Actions #2

Updated by Ohad Levy about 14 years ago

  • Status changed from New to Ready For Testing
  • % Done changed from 0 to 100
Actions #3

Updated by Ohad Levy about 14 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Tomer Brisker over 5 years ago

  • Category changed from 19 to Search
Actions

Also available in: Atom PDF