Project

General

Profile

Actions

Feature #28660

closed

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

Added by Go MAEDA over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Issues filter
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

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

default-operator.png (24.5 KB) default-operator.png Go MAEDA, 2018-04-29 11:07
Actions #1

Updated by Yuuki NARA over 6 years ago

+1

Actions #2

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 => [ "=", ">=", "<=", "><", "!*", "*" ],
Actions #3

Updated by Go MAEDA over 6 years ago

  • Target version set to Candidate for next major release
Actions #4

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".

Actions #5

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.

Actions #6

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.

Actions

Also available in: Atom PDF