Feature #28660
closedChange default operator for text format custom fields from "is" to "contains"
0%
Description
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".
Files
Updated by Go MAEDA over 6 years ago
The following patch changes the order of operators and makes "contains" default.
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 => [ "=", ">=", "<=", "><", "!*", "*" ],
Updated by Go MAEDA over 6 years ago
- Target version set to Candidate for next major release
Updated by Mizuki ISHIKAWA over 6 years ago
+1
I think that few people search by exact match.
I am searching by always change the operator to "contains".
Updated by Go MAEDA over 6 years ago
- Target version changed from Candidate for next major release to 4.1.0
I think this change should improve usability. Setting target version to 4.1.0.
Updated by Go MAEDA over 6 years ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
- Target version changed from 4.1.0 to 4.0.0
- Resolution set to Fixed
Committed.