Feature #31879

"starts with" and "ends with" filter operators for string values

Added by Go MAEDA 4 months ago. Updated 3 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Issues filter
Target version:4.1.0
Resolution:Fixed

Description

I propose adding "start with" and "end with" operators.

Currently, issues filter supports "contains", "doesn't contain", "none", and "any" operators for string values but does not support "start with" and "end with".

These two operators should increase the flexibility of issues filter. For example, you can extract issues which have some prefix or suffix in the subject.

31879_add_filter_operators.patch Magnifier (3.96 KB) Yuichi HARADA, 2019-09-19 04:03

31879_add_filter_operators-v2.patch Magnifier (4 KB) Go MAEDA, 2019-09-21 16:41

31879_add_filter_operators_attachment.patch Magnifier (1.77 KB) Yuichi HARADA, 2019-09-30 10:20


Related issues

Related to Redmine - Feature #3040: Extend filter on subject field New 2009-03-24

Associated revisions

Revision 18534
Added by Go MAEDA 3 months ago

"starts with" and "ends with" filter operators for string values (#31879).

Patch by Yuichi HARADA.

Revision 18535
Added by Go MAEDA 3 months ago

Update locales (#31879).

Revision 18570
Added by Go MAEDA 3 months ago

Add support for "start with" and "end with" operators to "Files" filter (#31879).

Patch by Yuichi HARADA.

History

#1 Updated by Go MAEDA 4 months ago

#2 Updated by Yuichi HARADA 3 months ago

I added "starts with" and "ends with" filter operators. These filter operator symbols mimics the CSS selectors.
https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors#Syntax
  • starts with : ^=
  • ends with : $=

I attached a patch.

#3 Updated by Go MAEDA 3 months ago

  • Target version set to Candidate for next major release

#4 Updated by Marius BALTEANU 3 months ago

Yuichi HARADA wrote:

I added "starts with" and "ends with" filter operators. These filter operator symbols mimics the CSS selectors.
https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors#Syntax
  • starts with : ^=
  • ends with : $=

I attached a patch.

Why not just ^/$ which are used in regex syntax or Lucene syntax? Using CSS selector syntax for text searching is not common.

#5 Updated by Go MAEDA 3 months ago

Marius BALTEANU wrote:

Why not just ^/$ which are used in regex syntax or Lucene syntax? Using CSS selector syntax for text searching is not common.

Nice idea. I have updated the patch.

#6 Updated by Go MAEDA 3 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version changed from Candidate for next major release to 4.1.0
  • Resolution set to Fixed

Committed the patch. Thank you for improving Redmine.

#7 Updated by Yuichi HARADA 3 months ago

I added "starts with" and "ends with" filter operators to File filter, but didn't create an implementation.
I created a patch.

#8 Updated by Go MAEDA 3 months ago

  • Status changed from Closed to Reopened

#9 Updated by Go MAEDA 3 months ago

  • Status changed from Reopened to Closed

Yuichi HARADA wrote:

I added "starts with" and "ends with" filter operators to File filter, but didn't create an implementation.

Committed the fix in r18570. Thank you.

Also available in: Atom PDF