Vote #79289
完了Change default operator for text format custom fields from "is" to "contains"
0%
説明
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.
--------------------------------------------------------------------------------