Project

General

Profile

Actions

Bug #4548

closed

[foretello] cannot search organization by title

Added by Thomas McKay about 10 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Plugin integration
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

This issue only appears in foretello mode but is related to core organization model.

Entering "title =" into the UI widget generates the following error.

Organization Load (0.3ms) SELECT DISTINCT "taxonomies".title FROM "taxonomies" WHERE "taxonomies"."type" IN ('Organization') ORDER BY title LIMIT 20
Completed 500 Internal Server Error in 19.4ms

ActiveModel::MissingAttributeError (missing attribute: default_info):
app/controllers/concerns/foreman/controller/auto_complete_search.rb:7:in `auto_complete_search'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

Search via API is same.

Commenting out the default_info in the organization extension leads to another error, but I am unsure if it is relevant.

Organization Load (0.4ms)  SELECT "taxonomies".* FROM "taxonomies" WHERE "taxonomies"."type" IN ('Organization') AND "taxonomies"."id" = 1 ORDER BY title LIMIT 1
Completed 500 Internal Server Error in 14.3ms

TypeError (can't convert Array into String):
app/controllers/application_controller.rb:342:in `set_taxonomy'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

This is a blocker issue for searching via API as it prevents getting org id.

Unsure what redmine category this falls into


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #4789: search auto completer on progress many times failDuplicate03/24/2014Actions
Actions #1

Updated by Dominic Cleal about 10 years ago

  • Category set to 47
Actions #2

Updated by Ohad Levy about 10 years ago

  • Assignee set to Amos Benari

Amos, do you have an idea how to solve this? this is generated by a scoped search query for the auto completer, where the ORDER and the SELECT query different fields.

Actions #3

Updated by Ohad Levy about 10 years ago

  • Related to Bug #4789: search auto completer on progress many times fail added
Actions #4

Updated by Amos Benari about 10 years ago

  • Status changed from New to Ready For Testing

Can you test if scoped_search 2.7.1 fixes the issue?

Actions #5

Updated by Thomas McKay almost 10 years ago

  • Status changed from Ready For Testing to Resolved

This is no longer an issue

Actions #6

Updated by Tomer Brisker about 4 years ago

  • Category changed from 47 to Plugin integration
Actions

Also available in: Atom PDF