Project

General

Profile

Bug #15773

Dashboard search breaks with foreman_discovery installed

Added by Brandon Weeks over 3 years ago. Updated over 1 year ago.

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

Description

Both the `hosts` table in foreman and the `discovery_rules` table in foreman_discovery contain a column named `enabled`. This causes searching for arbitrary strings on the dashboard to fail and has been the case since at least the Rails 4 migration in 1.11. Traceback and offended query are attached.

query.sql query.sql 3.09 KB Brandon Weeks, 07/21/2016 02:11 PM
traceback.txt traceback.txt 16.4 KB Brandon Weeks, 07/21/2016 02:11 PM

Associated revisions

Revision d9cc252b (diff)
Added by Brandon Weeks over 3 years ago

Fixes #15773 - disambiguate table name

Revision 986b8de7 (diff)
Added by Brandon Weeks over 3 years ago

Fixes #15773 - disambiguate table name

(cherry picked from commit d9cc252b6845e38bf721ea68503aa2a677c44575)

History

#1 Updated by The Foreman Bot over 3 years ago

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

#2 Updated by Brandon Weeks over 3 years ago

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

#3 Updated by Dominic Cleal over 3 years ago

  • Legacy Backlogs Release (now unused) set to 161

Also available in: Atom PDF