プロジェクト

全般

プロフィール

Vote #80236

完了

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

Admin Redmine さんが約4年前に追加. 約4年前に更新.

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

0%

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

説明

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.


journals

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

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Committed the patch. Thank you for improving Redmine.
--------------------------------------------------------------------------------
I added "starts with" and "ends with" filter operators to File filter, but didn't create an implementation.
I created a patch.

--------------------------------------------------------------------------------

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


related_issues

relates,New,3040,Extend filter on subject field

Admin Redmine さんが約4年前に更新

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

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

いいね!0
いいね!0