プロジェクト

全般

プロフィール

Vote #79289

完了

Change default operator for text format custom fields from "is" to "contains"

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
56
version_id:
99
issue_org_id:
28660
author_id:
332
assigned_to_id:
332
comments:
6
status_id:
5
tracker_id:
2
plus1:
2
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

When a user adds a filter for text format custom fields on "Issues" page, default operator for the filter is "is". But I think it should be "contains" because the default operator for other filters for text objects such as "Subject" and "description" is "contains". And in my experience, we often use partial match than exact matches for text fields.

From the viewpoint of consistency and convenience, I suggest changing the default operator for text format custom fields from "is" to "contains".

!{width: 783px;}.default-operator.png!


journals

+1

--------------------------------------------------------------------------------
The following patch changes the order of operators and makes "contains" default.

<pre><code class="diff">
Index: app/models/query.rb
===================================================================
--- app/models/query.rb (revision 17315)
+++ app/models/query.rb (working copy)
@@ -272,7 +272,7 @@
:list_subprojects => [ "*", "!*", "=", "!" ],
:date => [ "=", ">=", "<=", "><", "<t+", ">t+", "><t+", "t+", "t", "ld", "w", "lw", "l2w", "m", "lm", "y", ">t-", "<t-", "><t-", "t-", "!*", "*" ],
:date_past => [ "=", ">=", "<=", "><", ">t-", "<t-", "><t-", "t-", "t", "ld", "w", "lw", "l2w", "m", "lm", "y", "!*", "*" ],
- :string => [ "=", "~", "!", "!~", "!*", "*" ],
+ :string => [ "~", "=", "!~", "!", "!*", "*" ],
:text => [ "~", "!~", "!*", "*" ],
:integer => [ "=", ">=", "<=", "><", "!*", "*" ],
:float => [ "=", ">=", "<=", "><", "!*", "*" ],
</code></pre>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1
I think that few people search by exact match.
I am searching by always change the operator to "contains".
--------------------------------------------------------------------------------
I think this change should improve usability. Setting target version to 4.1.0.
--------------------------------------------------------------------------------
Committed.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリIssues filter_56 にセット
  • 対象バージョン4.0.0_99 にセット

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

いいね!0
いいね!0