Modify ↓
Opened 6 years ago
Last modified 3 years ago
#13089 new enhancement
Custom query: filter by "component starts with..."
Reported by: | 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 , 6 years ago
comment:2 by , 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.
Note:
See TracTickets
for help on using tickets.
The Milestones field has the same problem. I often use the wiki:TracQuery#QueryLanguage trick as a workaround:
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