Project

General

Profile

Bug #16211

Audit auto-complete is failed when searching by host

Added by Amir Fefer over 4 years ago. Updated over 2 years ago.

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

Description

Reproduce:
In audit search-bar (e.g: user < email preferences < audit query builder) type `host = `
the auto-complete will failed with NoMethodError:

2016-08-21T15:21:54 5455fa1c [app] [F] 
 | NoMethodError (undefined method `scoped' for #<Class:0x0000000ced5b50>):
 |   app/models/host.rb:15:in `method_missing'
 |   app/controllers/concerns/foreman/controller/auto_complete_search.rb:13:in `auto_complete_search'
 |   app/controllers/concerns/application_shared.rb:14:in `set_timezone'
 |   app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 |   lib/middleware/catch_json_parse_errors.rb:9:in `call'
 |   lib/middleware/tagged_logging.rb:18:in `call'

Associated revisions

Revision 6ee0d886 (diff)
Added by Amir Fefer over 4 years ago

Fixes #16211 - show host autocomplete in audit search

Revision 2b702292 (diff)
Added by Amir Fefer about 4 years ago

Fixes #16211 - show host autocomplete in audit search

(cherry picked from commit 6ee0d88682dc290e1a6a3aa9671855af6ac2f82f)

History

#1 Updated by The Foreman Bot over 4 years ago

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

#2 Updated by Daniel Lobato Garcia over 4 years ago

  • Target version set to 1.6.2

#3 Updated by Amir Fefer over 4 years ago

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

#4 Updated by Dominic Cleal over 4 years ago

  • Category set to Search
  • Legacy Backlogs Release (now unused) set to 181

Also available in: Atom PDF