Edgewall Software
Modify

Opened 19 years ago

Closed 17 years ago

#2409 closed enhancement (fixed)

Configurable default custom query

Reported by: cdleonard@… 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)

olpc_default_query.patch (2.9 KB ) - added by Noah Kantrowitz 18 years ago.
Patch for controlling the default query directly. (against r5255)
olpc_default_query2.diff (2.7 KB ) - added by Noah Kantrowitz 18 years ago.
Swap string.Template with .replace()

Download all attachments as: .zip

Change History (13)

comment:1 by dserodio@…, 19 years ago

Cc: dserodio@… added

comment:2 by anonymous, 18 years ago

Cc: mccutchen@… added

comment:3 by anonymous, 18 years ago

Cc: jashugan@… added

comment:4 by jashugan@…, 18 years ago

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:

[navadd]
add_items = opentickets,closedtickets
opentickets.title = Open Tickets
opentickets.url = /helpdesk/query?status=new&status=assigned&status=reopened&group=owner&order=priority
opentickets.perm = WIKI_VIEW
opentickets.target = mainnav
closedtickets.title = Closed Tickets
closedtickets.url = /helpdesk/query?status=closed&group=type&order=modified
closedtickets.perm = WIKI_VIEW
closedtickets.target = metanav

[components]
navadd.* = enabled

The only problem with this method is that the menu item doesn't get highlighted when active when added to the main navigation menu.

comment:5 by Christian Boos, 18 years ago

Resolution: duplicate
Status: newclosed

Would be possible by configuring a saved custom query (#1735) as being the default report.

Superseded by #1925.

comment:6 by anonymous, 18 years ago

Cc: sdyson@… added

comment:7 by Noah Kantrowitz, 18 years ago

Keywords: olpc added
Resolution: duplicate
Status: closedreopened
Version: 0.9devel

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 Noah Kantrowitz, 18 years ago

Attachment: olpc_default_query.patch added

Patch for controlling the default query directly. (against r5255)

comment:8 by Christian Boos, 18 years ago

Milestone: 0.11
Owner: changed from Jonas Borgström to Christian Boos
Status: reopenednew

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.

by Noah Kantrowitz, 18 years ago

Attachment: olpc_default_query2.diff added

Swap string.Template with .replace()

comment:9 by Noah Kantrowitz, 18 years ago

New version with that change.

comment:10 by Christian Boos, 18 years ago

Owner: changed from Christian Boos to Noah Kantrowitz

This supersedes #4554.

The patch looks good, please apply.

comment:11 by Noah Kantrowitz, 17 years ago

Resolution: fixed
Status: newclosed

Commited in [5578]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Noah Kantrowitz to the specified user.

Add Comment


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