プロジェクト

全般

プロフィール

Vote #69760

未完了

Allow plugins to register as a search provider without a project association

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Search engine_16
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
16
version_id:
0
issue_org_id:
8215
author_id:
6227
assigned_to_id:
0
comments:
5
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Plugins can be added to the global search by means of


Redmine::Search.available_search_types << 'your_model'
But only if the model you're trying to search @belongs_to :project@. Without this association, though the plugin is added to the search providers, it will always error out with the following:
ActiveRecord::ConfigurationError in SearchController#index

Association named 'project' was not found; perhaps you misspelled it?

and if you actually add the required association, you'll never get any results (unless the user is associated with some project on the system).

Since Redmine is project-centric, I understand why the association is necessary, but wonder if there's a way to accommodate plugins that don't require a project ...


journals

As a keen user of the knowledgebase plugin, which is not associated directly with a project, having the ability to search articles through the main Redmine search facility would be of great benefit.

I can imagine this would also be useful for a number of other non project-centic plugins.
--------------------------------------------------------------------------------
I too am interested in the progress if this feature request. We're using the knowledgebase plugin, and workarounds are necessary in order to make use of Redmine's robust search capabilities. It's frustrating for developers to maintain these workarounds (hacks) knowing that such can be avoided if Redmine did not require project dependency of plugins that make use of searching.
--------------------------------------------------------------------------------
Me too I'd like to have this feature for my plugins. +1
May you have a look, please, Toshi?
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
T Leung has support a hack, but I think maybe it should be modified in Redmine for next version.

http://www.redmine.org/boards/3/topics/23591?r=23740#message-23740
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリSearch engine_16 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0