Project

General

Profile

Bug #18024

Hosts cannot be searched specifically by image name

Added by Dominic Cleal over 2 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Search
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Host::Managed has a search defined for image names:

scoped_search :relation => :image, :on => :name, :complete_value => true

But it's only accessible with free text search by searching for just the image name. It should be possible to search specifically for image = foo as well.

Currently this definition registers the search field name (from :on) rather than an alias such as image or image_name. As name is used by host.name, no new field name is added for it.

Associated revisions

Revision 917054f2 (diff)
Added by Dominic Cleal over 2 years ago

fixes #18024 - add 'image' search field to hosts

Revision 9877df11 (diff)
Added by Dominic Cleal over 2 years ago

fixes #18024 - add 'image' search field to hosts

(cherry picked from commit 917054f26d5fd7e0e3edaafdc6bbfed9a147ea3d)

History

#1 Updated by The Foreman Bot over 2 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4175 added

#2 Updated by Dominic Cleal over 2 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Dominic Cleal over 2 years ago

  • Legacy Backlogs Release (now unused) set to 210

Also available in: Atom PDF