Movatterモバイル変換


[0]ホーム

URL:


Trac Hacks
wiki:AutoQueryPlugin

Context Navigation


Contents

  1. Description
  2. Configuration Options
  3. Bugs/Feature Requests
  4. Download and Source
  5. Example
  6. Recent Changes
  7. Author/Contributors

Display links to queries in ticket summary

Notice: This plugin isdeprecated. The functionality of this plugin has been integrated to the Trac core intrac:#7562.

Description

In vanilla trac, the Reporter, Owner, Priority, etc. in the ticket summary are displayed as text. TheAutoQueryPlugin changes these to links to query strings. For instance, out of the box, clicking on the reporter name will result in a link like:

http://127.0.0.1:14828/testproject/query?reporter=k0s&order=priority

The end part of the query string (&order=priority) is configurable in the .ini file.

The intent of this plugin is to make finding like tickets easier and to take advantage of the fact that these text items aren't links to something interesting and could be.

This plugin overrides the ticket.html template to do this. Ideally, this wouldn't have to be done, but it was the easiest solution to the problem.

Configuration Options

TheAutoQueryPlugin supports two options in the[Autoquery] section of the trac.ini file (also configurable with theIniAdminPlugin). The relevant section with the option defaults would look like this:

[autoquery]query_args=&order=priorityexcluded_fields=estimatedhours, hours, totalhours

These options are as follows:

  • query_args: additional argument string to append to the query url (in the event the patch from#3226 is included in trac core, this string will be taken from thedefault_anonymous_query option in[query])
  • excluded_fields: fields not to mark as links using theAutoQueryPlugin; the defaults are to prevent conflicts with theTimingAndEstimationPlugin, which alters these fields with javascript

Bugs/Feature Requests

Existing bugs and feature requests forAutoQueryPlugin arehere.

If you have any issues, create anew ticket.

Download and Source

Download thezipped source, check outusing Subversion, orbrowse the source with Trac.

Example

After installing, usage should be straight forward. The text fields in the ticket badge will become links to queries. This can be seen in the openplans trac instance. For instance:

http://trac.openplans.org/openplans/ticket/1097

Recent Changes

7228 by k0s on 2009-12-07 16:23:49
fixes#5428
3836 by k0s on 2008-06-13 20:17:03
add excluded_fields to not be marked up by AutoQuery; fixes#3178
3816 by k0s on 2008-06-10 15:57:33
if urllib fails, just pass on the query as is. could have space issues that may also need fixing; fixes#3157
(more)

Author/Contributors

originally developed atThe Open Planning Project

Author:k0s
Maintainer:none
Contributors:

Last modified8 years agoLast modified on May 13, 2017, 3:36:26 PM

Attachments(1)

Download all attachments as:.zip

Download in other formats:


Trac Powered

Powered byTrac 1.2.6
ByEdgewall Software.


[8]ページ先頭

©2009-2025 Movatter.jp