Bug #4548
closed[foretello] cannot search organization by title
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
Updated by Ohad Levy almost 11 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.
Updated by Ohad Levy almost 11 years ago
- Related to Bug #4789: search auto completer on progress many times fail added
Updated by Amos Benari almost 11 years ago
- Status changed from New to Ready For Testing
Can you test if scoped_search 2.7.1 fixes the issue?
Updated by Thomas McKay over 10 years ago
- Status changed from Ready For Testing to Resolved
This is no longer an issue
Updated by Tomer Brisker almost 5 years ago
- Category changed from 47 to Plugin integration