Edgewall Software

Ticket #2253 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

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

Reported by: fumanchu@… Owned by: mgood
Priority: normal Milestone: 0.9.4
Component: ticket system Version: 0.9b1
Severity: minor Keywords: rss
Cc:

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

Change History

Changed 3 years ago by fumanchu@…

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.

Changed 3 years ago by cmlenz

  • milestone set to 0.9.4

Changed 3 years ago by mgood

  • owner changed from jonas to mgood
  • status changed from new to assigned

Changed 3 years ago by mgood

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [2762] and [2763]

Add/Change #2253 (RSS for Custom Query should include the constraints as a query string in the channel link)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from mgood. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.