Project

General

Profile

Bug #13035

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

Added by Dominic Cleal about 4 years ago. Updated about 4 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
Category:
Search
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
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

Related to Foreman - Feature #11150: Allow searching of facts as types other than stringClosed2015-07-19
Related to Foreman - Bug #12959: Host search based on fact value using LIKE clause does'nt workClosed2015-12-30

History

#1 Updated by Dominic Cleal about 4 years ago

  • Related to Feature #11150: Allow searching of facts as types other than string added

#2 Updated by Dominic Cleal about 4 years ago

  • Related to Bug #12959: Host search based on fact value using LIKE clause does'nt work added

#3 Updated by Dominic Cleal about 4 years ago

  • Status changed from Assigned to Duplicate
  • Legacy Backlogs Release (now unused) deleted (104)

Actually, this is described at the start of #12959, I didn't spot that when reading it. I'll fix it under that ticket.

Also available in: Atom PDF