Project

General

Profile

Actions

Bug #13035

closed

Host fact search using ~ operator doesn't automatically add wildcards

Added by Dominic Cleal almost 9 years ago. Updated almost 9 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
Category:
Search
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When searching for hosts by facts with the ~/LIKE operator, entering a simple keyword without wildcards would have added % to the start and end of the value to match it anywhere (e.g. facts.foo ~ bar). Documented under wildcards at http://theforeman.org/manuals/1.10/index.html#4.1.5Searching.

Since #11150, the wildcards have to be added manually, e.g. facts.foo ~ %bar%, which shouldn't be necessary.


Related issues 2 (0 open2 closed)

Related to Foreman - Feature #11150: Allow searching of facts as types other than stringClosedImri Zvik07/19/2015Actions
Related to Foreman - Bug #12959: Host search based on fact value using LIKE clause does'nt workClosedDominic Cleal12/30/2015Actions
Actions

Also available in: Atom PDF