Ticket #35 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

RSS Support

Reported by: pragma Assigned to: pragma
Priority: major Milestone: Version 1.0
Component: component1 Version:
Keywords: Cc:

Description (Last modified by pragma)

RSS support needs to be available for applicable views within the forum system.

Implementation:

  • additional controller branches to locate the /rss view type. [102]
  • The page footer will also require a Trac-style RSS link. [102]
  • The scope of the feed data should be similar to the Recent Activity behavior, by returning a user-specific feed filtered by the user's activity and "recentness" criteria.
  • /forums/main/recent?format=rss [103]
  • /forums/forum/<forumname>?format=rss
  • /forums/topic/<topicnumber>?format=rss
  • news - link to follow macro output - maps to one of the above

Change History

04/01/08 08:09:23 changed by pragma

  • owner changed from somebody to pragma.
  • status changed from new to assigned.

Made some progress last night. Should be easy to do in the general case (public notification of forum activity), but for login cases - I'm at a loss.

(follow-up: ↓ 3 ) 04/01/08 08:29:54 changed by larsivi

If I understand your issue correctly - that is, rss feeds for stuff that isn't public (important for hidden forums) - cannot these be provided by a link that is login protected? At least this works in my reader if the whole site providing the rss requires login (http auth).

(in reply to: ↑ 2 ) 04/06/08 22:34:28 changed by pragma

Replying to larsivi:

If I understand your issue correctly - that is, rss feeds for stuff that isn't public (important for hidden forums) - cannot these be provided by a link that is login protected? At least this works in my reader if the whole site providing the rss requires login (http auth).

Lars, thanks for chming in. If that's the case, then I'll just throw it up there and see if it works correctly. If I may ask: what client are you using for RSS?

04/07/08 01:38:05 changed by larsivi

I use akregator (a KDE client), that use Konqueror (or KHTML) as the rendering component.

04/07/08 12:02:56 changed by pragma

  • description changed.

Ah, thanks for that Lars - I'll have to try that out on my laptop. I did a little more research, and found that some readers understand HTTP Auth. That was the part I couldn't get my head around: how the client logs into a password protected feed.

I've found that RSS support in Trac is at a lower level than I'd like. The page controller has to report back to the Trac framework what content types it supports, and then has to be aware of a "?format=rss" argument when prompted to generate the feed. All that, and you get a shiny little button in the page footer.

04/09/08 12:48:53 changed by pragma

  • description changed.

Refactored page handling to allow for multiple templates/mimetypes to be driven from a given controller page. Next stop: RSS templates.

04/10/08 01:20:02 changed by pragma

Progress: [103] Has a draft implementation for RSS on the recent activity view. As of yet, the view is not filtered, so it will return everything.

04/10/08 14:49:50 changed by pragma

  • description changed.

04/25/08 22:11:28 changed by pragma

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

Completed in [107] This is about as done as it's going to get for a while.

Recentness has been determined via a config value = X seconds before present. This was a compromise between something reliable and needing to load the current user profile for every page hit.

The link to RSS for the news feed was dropped at the last minute as it is largely redundant with the RSS link found on the related forum. This may be re-opened later if that turns out to be a deal-breaker.