Edgewall Software
Modify

Opened 6 years ago

Last modified 3 years ago

#13089 new enhancement

Custom query: filter by "component starts with..."

Reported by: vincent.privat@… Owned by:
Priority: normal Milestone:
Component: query system Version:
Severity: normal Keywords: component
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The JOSM Trac instance defines about a dozen "Core xxx" and a hundred "Plugin xxx" components.

Currently Trac only allows to filter queries by "equals" or "not equals" criteria. Could we have two new choices to search for components starting (or not) with a string?

Attachments (0)

Change History (2)

comment:1 by anonymous, 6 years ago

The Milestones field has the same problem. I often use the wiki:TracQuery#QueryLanguage trick as a workaround:

^= the field content starts with one of the values
!^= the field content does not start with any of the values

Examples:

The Custom Query UI will claim the filter is Component [is |▾] [Core |▾] but it actually shows the desired results in the table below. The trick stops working when you use the interactive query builder to change any filter though.

The main problem to fixing this is probably that this "would require the value field to morph into a text field instead of a drop-down menu, so this isn't easy" as discussed in: #1901, #548, #5979

comment:2 by Jun Omae, 6 years ago

PoC can be found in jomae.git@t13089+1.2.

  • Unit tests should be added.
  • Query builder works well without javascript before the changes, but it doesn't after the changes.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.