Edgewall Software
Modify

Opened 19 years ago

Closed 18 years ago

Last modified 18 years ago

#2253 closed defect (fixed)

RSS for Custom Query should include the constraints as a query string in the channel link

Reported by: fumanchu@… Owned by: Matthew Good
Priority: normal Milestone: 0.9.4
Component: ticket system Version: 0.9b1
Severity: minor Keywords: rss
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When I make a Custom Query and bookmark the RSS feed, that URI contains a querystring. For example: http://projects.amor.org/amor/query?status=new&group=&format=rss&order=priority. The bit after the "?" is what I mean by "querystring".

The resultant XML starts with:

<?xml version="1.0"?>
<rss version="2.0">
 <channel>
   <title>Amor Ministries: Ticket Query</title>
  <link>http://projects.amor.org/amor/query</link>

…but the href in the link element isn't very helpful, since it takes me back to the custom query page without any of the parameters I already specified. If the query_rss.cs included the constraints as a querystring, that would be much more helpful.

Attachments (0)

Change History (4)

comment:1 by fumanchu@…, 19 years ago

I'm using mod_python, by the way, so I just made a quick hack:

req.hdf['query.qs'] = req.req.args.replace("&format=rss", "").replace("&", "&amp;")

…and then referenced query.qs in the template. But a more robust solution would probably have to re-deconstruct the constraints dict in trac.ticket.query.QueryModule.process_request.

comment:2 by Christopher Lenz, 18 years ago

Milestone: 0.9.4

comment:3 by Matthew Good, 18 years ago

Owner: changed from Jonas Borgström to Matthew Good
Status: newassigned

comment:4 by Matthew Good, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [2762] and [2763]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good 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.