#4005 closed enhancement (duplicate)
[PATCH] - Enable user-definable Ticket Query Result Fieldsets
Reported by: | Owned by: | Matthew Good | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | report system | Version: | devel |
Severity: | normal | Keywords: | query |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
There are several methods to implement user-definable ticket query fields (fields which should shown in the query result table).
The basic one would be to define the default fields within the trac.ini
The location within the code should be this one:
source:trunk/trac/ticket/query.py#rev=3999#L106
Other options could be defined there, too (e.g. "verbose").
Several thoughts can be found here (not yet verified):
http://dev.lazaridis.com/base/wiki/PlanTicketQueryMacro#FieldSelection
Is there any document available, which shows the planned changes mentioned in [http://groups.google.com/group/trac-dev/msg/377b428936e0676a this message}?
Attachments (1)
Change History (11)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
reminder: see description in thread
Most of the code is already in trac 0.11dev.
What is missing is the part with the user defined query-result-fieldsets, which overrides the automated fieldset selection completely, thus a user can control the format of the resulting table.
diff against older version of trac (some code is already within trac 0.11dev)
see a related discussion subjecting naming and further functionality.
I can provide the final patch, but would need to know the preferred naming.
(Note: the code is actively tested on my and on the customers 0.11dev production environments since a few weeks)
comment:3 by , 18 years ago
Summary: | Provide Option to Define Default Ticket Query Fields → [PATCH] - Enable user-definable Ticket Query Result Fieldsets |
---|
comment:4 by , 18 years ago
An alternate implementation would be:
- ability to define fields via a query parameter "fields"
- fields=ID|title|modified|*dev
"*dev" would be defined within the trac.ini (naming as suggested by mgood: fieldalias)
comment:5 by , 18 years ago
Milestone: | → 0.12 |
---|
comment:6 by , 18 years ago
Component: | general → report system |
---|---|
Keywords: | query added |
Owner: | changed from | to
comment:7 by , 18 years ago
can this please be included with the 0.11 version?
This is the last part of the "ticket query" commercial task.
The functionality is ready implemented, and tested on 2 production systems, and enables a very flexible use of queries within the wiki.
I can provide the initial patches and modify them based on the further requests from the team.
follow-up: 9 comment:8 by , 18 years ago
Milestone: | 0.12 |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
This will be possible in 0.11 with a combination of #2409 and the possibility to add things like e.g. col=priority&col=user_field
and row=description
to the default query.
follow-up: 10 comment:9 by , 17 years ago
Replying to cboos:
This will be possible in 0.11 with a combination of #2409 and the possibility to add things like e.g.
col=priority&col=user_field
androw=description
to the default query.
That's not the same effect. For anyone interested:
http://dev.lazaridis.com/base/browser/infra/tracx/tracx/query.py@152
I have this addition ready, but must first apply the other patches prior to producing the final patch.