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 #1

Updated by Dominic Cleal almost 9 years ago

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

Updated by Dominic Cleal almost 9 years ago

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

Updated by Dominic Cleal almost 9 years ago

  • Status changed from Assigned to Duplicate
  • Translation missing: en.field_release 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.

Actions

Also available in: Atom PDF