Bug #18024

Hosts cannot be searched specifically by image name

Added by Dominic Cleal 11 months ago. Updated 10 months ago.

Status:Closed
Priority:Normal
Assigned To:Dominic Cleal
Category:Search
Target version:-
Difficulty: Bugzilla link:
Found in release:nightly Pull request:https://github.com/theforeman/foreman/pull/4175
Story points-
Velocity based estimate-
Release1.14.1Release relationshipAuto

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
Added by Dominic Cleal 11 months ago

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

Revision 9877df11
Added by Dominic Cleal 10 months ago

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

(cherry picked from commit 917054f26d5fd7e0e3edaafdc6bbfed9a147ea3d)

History

#1 Updated by The Foreman Bot 11 months ago

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

#2 Updated by Dominic Cleal 10 months ago

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

#3 Updated by Dominic Cleal 10 months ago

  • Release set to 1.14.1

Also available in: Atom PDF