Actions
Refactor #191
closedQuery should return all hosts, not just recent.
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?
Updated by Ohad Levy over 14 years ago
- Category set to 19
- Assignee set to Ohad Levy
- Target version set to 0.1-5
Updated by Ohad Levy over 14 years ago
- Status changed from New to Ready For Testing
- % Done changed from 0 to 100
Applied in changeset f217c950e4b148b021ade38f7a6bd6c75f0d90ad.
Updated by Ohad Levy over 14 years ago
- Status changed from Ready For Testing to Closed
Actions