Opened 19 years ago
Closed 17 years ago
#2409 closed enhancement (fixed)
Configurable default custom query
Reported by: | Owned by: | Noah Kantrowitz | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | ticket system | Version: | devel |
Severity: | minor | Keywords: | olpc |
Cc: | dserodio@…, mccutchen@…, jashugan@…, sdyson@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It would be really usefull to be able to configure the default query (the one you get from ViewTickets with the report module disabled]. This probably needs #1467 first.
Attachments (2)
Change History (13)
comment:1 by , 19 years ago
Cc: | added |
---|
comment:2 by , 18 years ago
Cc: | added |
---|
comment:3 by , 18 years ago
Cc: | added |
---|
comment:4 by , 18 years ago
comment:5 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:6 by , 18 years ago
Cc: | added |
---|
comment:7 by , 18 years ago
Keywords: | olpc added |
---|---|
Resolution: | duplicate |
Status: | closed → reopened |
Version: | 0.9 → devel |
I am reopening this as real support for adjusting the default query settings would be nice. Attached is a patch that should maintain the previous behavior by default.
by , 18 years ago
Attachment: | olpc_default_query.patch added |
---|
Patch for controlling the default query directly. (against r5255)
comment:8 by , 18 years ago
Milestone: | → 0.11 |
---|---|
Owner: | changed from | to
Status: | reopened → new |
Ok for the feature, but I'm not sure it's worth using string.Template
here: there's only one substitution to make, the escape rule doesn't seem useful to me (who would have a real user named $USER?) and it's a Python 2.4 thing. So I think it's better to use a simple replace('$USER', user)
call.
comment:10 by , 17 years ago
Owner: | changed from | to
---|
This supersedes #4554.
The patch looks good, please apply.
I think I may have found a possible work-around. Instead of disabling the report module, remove all permissions to the report module for everyone. This will prevent "View Tickets" from appearing in the main navigation menu. Then download and install the NavAddPlugin from here: http://trac-hacks.org/wiki/NavAddPlugin . You can then add the following to the trac configuration file of any project:
The only problem with this method is that the menu item doesn't get highlighted when active when added to the main navigation menu.