Opened 16 years ago
Last modified 9 years ago
#8219 new enhancement
[PATCH] Forward additional parameters from /report to /query
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | next-major-releases |
Component: | report system | Version: | 0.11-stable |
Severity: | normal | Keywords: | patch saved queries bitesized |
Cc: | jaya.kirtani@…, Ryan J Ollos | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Calling an URL like this
http://myserver.example/trac/report/10
redirects to
http://myserver.example/trac/query?col=x&status=new&...&report=10
Now, it would be nice, if additional parameters could be passed to the (short) report URL and not be forgotten while redirecting to the query, e.g.
http://myserver.example/trac/report/10?format=csv&col=description
would redirect to
http://myserver.example/trac/query?col=x&status=new&...&col=description&report=10&format=csv
Ideally, these parameters would be given precedence over those from the report definition (where applicable - i.e. col
parameters would simply be added, like in the example).
Attachments (2)
Change History (11)
comment:1 by , 16 years ago
Keywords: | saved queries added |
---|---|
Milestone: | → 0.13 |
comment:2 by , 14 years ago
Keywords: | bitesized added |
---|
by , 12 years ago
Attachment: | patch_8219.diff added |
---|
comment:3 by , 12 years ago
Cc: | added |
---|---|
Summary: | Forward additional parameters from /report to /query → [PATCH] Forward additional parameters from /report to /query |
Above attached patch updates the code to forward the additional parameters from /report to /query. The patch adds unit test case to test the same. Also verified that the change passes the existing unit and functional test cases.
comment:4 by , 12 years ago
Thanks for the patch! But a rapid look shows you didn't read the patch guidelines (e.g. PatchWelcome and the links there)…
comment:5 by , 12 years ago
I did look at the patch guidelines. After again looking at the patch I could find a couple of places where spaces are missing.Can you please mention if there is anything specific?
by , 12 years ago
Attachment: | updated_patch_8219.diff added |
---|
Updated patch to fix coding style issues
comment:6 by , 12 years ago
Made following changes :
- Added missing spaces (for assignment operator etc)
- Replaced "" with for string constants.
Please let me know if I missed anything else.
comment:7 by , 10 years ago
Cc: | added |
---|
comment:8 by , 10 years ago
This could help with the request in th:#8030 as well. Rather than allowing batch modify on the report page, the user could easily navigate to the query page to batch modify the tickets.
comment:9 by , 9 years ago
Keywords: | patch added |
---|
Good idea (and a patch do wonders to get a closer milestone…)