プロジェクト

全般

プロフィール

Vote #81686

未完了

Fulltext search in timelog comments

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

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

0%

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

説明

The Redmine Fulltext search is a great feature. We use it all the time.

Unfortunately it does not search in the Comments of the Timelogs.

Is there any chynce to add this datasource to the fulltext search?


journals

I fixed it so that comments on spent time can be searched. I have attached a patch.

!{width:600px;border:1px solid grey;}add-spent-time-to-search.png!

<pre><code class="diff">
diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb
index 88e1796f34..5422e3f273 100644
--- a/app/models/time_entry.rb
+++ b/app/models/time_entry.rb
@@ -28,6 +28,8 @@ class TimeEntry < ActiveRecord::Base
belongs_to :activity, :class_name => 'TimeEntryActivity'

acts_as_customizable
+ acts_as_searchable :columns => ['comments'],
+ :preload => [:project, :issue]
acts_as_event(
:title =>
Proc.new do |o|
diff --git a/lib/redmine/preparation.rb b/lib/redmine/preparation.rb
index 4c6b3afe6e..08b6c33fd9 100644
--- a/lib/redmine/preparation.rb
+++ b/lib/redmine/preparation.rb
@@ -383,6 +383,7 @@ module Redmine

Search.map do |search|
search.register :issues
+ search.register :time_entries
search.register :news
search.register :documents
search.register :changesets
</code></pre>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

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

  • カテゴリSearch engine_16 にセット
  • 対象バージョンCandidate for next major release_32 にセット

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

いいね!0
いいね!0