Victor Boctor's Blog

.NET, FxCop, PHP, Mantis Bugtracker, and more

Projects

Search Now:
Amazon Logo
Google
futureware.biz
mantisbt.org
Web

Categories

Archives

Syndicate this blog


Listed on BlogShares



Misc

26/04/05

Permalink 12:18:27 am, Categories: Mantis, 445 words   English (AU)

RSS Feeds in Mantis 1.0.0a2

In Mantis 0.18.2 (#3548), the support for RSS has been added. However, it was only added for syndicating news. Following are the rules for the news rss feed to work:

1. Use http://www.example.com/mantis/news_rss.php to get the news feed for news for "All Projects".
2. Use http://www.example.com/mantis/news_rss.php?project_id=1 to get the news feed for news for project with id = 1.
3. If a specific project is selected, then the project must not be a private project.
4. Anonymous login must be enabled.
5. Private news will not be published in the RSS.
6. The generated RSS is RSS v2.0.

In Mantis 0.19.1 (#4758), support for auto-discovery for the RSS feeds on Mantis pages was implemented. This allows news aggregators to know about the RSS feeds associated with a given web page.

In Mantis 1.0.0a2 (#5502), support was added to syndicate RSS v2.0 files for Mantis issues. These feeds will syndicate the latest updated (or reported) 25 issues for all projects or for a specific project. The reported issues can be private or can belong to private projects, given that the issues are visible to the anonymous user and that anonymous login is enabled. This is different from the rules that are used in the news syndication which doesn't syndicate any private news or news relating to private projects, even if such information is accessible to the anonymous user. The difference is not usually a problem, since it is not normal for anonymous users to have access to private projects/issues/news.

To access this new feed:
- For all projects: http://www.example.com/mantis/issues_rss.php.
- For a specific project: http://www.example.com/mantis/issues_rss.php?project_id=1.

So this is what has been implemented so far, with regards to what is planned for the future, following is a brief summary:

1. Add a feed for issue notes.
2. Support feeds that are based on a saved filter.
3. Change the news feed to follow the same rules as the issues feed with regards to showing what is accessible to anonymous user, independent of whether the news is private or not or whether they belong to private project or not.
4. Support feeds for views in the "My View" page.
5. Support feeds for a specific issue (if people found this to be a useful alternative to monitoring an issue).
6. Support feeds that require authentication (i.e. for information that is not available to anonymous user).

I would like to get as much feedback on this topic as possible. Do you find these feeds useful? Which ones you would like to have first? Ideas about supporting feeds that require authentication, and whatever else you find relevant.

Comments:

Comment from: KP [Visitor]
This is a great step forward, thanks!

1. I don't find feeds for notes all that helpful.

2. Feeds for a specific filter are extremely helpful as it gives you basically the ability to do a custom feed based on any criteria!

3. Not sure.

4. My page feeds... not all that useful for me but in general I think this could be quite useful for the individual developer.

5. I don't think specific issues need a feed really, monitoring does the job.

6. Authenticated feeds would be pretty useful as well. I would put this as very useful but below the other feed related requests

What would be most helpful to me is a feed for each category in a specific project. We are running software we would like to tie in to Mantis to show all open issues for each category.

For example, we have a page about "Widget A" in our system, and we'd like to be able to pull a feed of the issues related to "Widget A" from Mantis. Likewise, we have a page for "Widget B" and we'd like to pull the issues related to it from Mantis. We have several widgets and they are all part of the same project.

Is that clear? I'm not sure my need is something others would need too, we'll see. But if so and you need more feedback or detail, please let me know. The customized feeds based on saved filters seems like it would take care of this need, as well as several others.

Thanks for your continued development of Mantis. It's fantastic.
Permalink 26/04/05 @ 01:34
Comment from: Randy Saejs [Visitor]
"Anonymous login must be enabled."

Where is that set?
Permalink 26/04/05 @ 02:34
Comment from: Jake [Visitor]
Hi, This is the feature I am most excited about using in Mantis. However we do not allow anon login, so I would like to see authenticated RSS login access to issues lists as the top of my wish-list. Thanks again for creating such great OSS software.
Permalink 26/04/05 @ 04:46
Comment from: vboctor [Member]
Randy,

Use the following configuration options to enable anonymous login:

$g_allow_anonymous_login = ON;
$g_anonymous_account = 'anonymous';

You will need to have a valid and enabled Mantis user with name 'anonymous'. The access rights of the anonymous users will be the same as that of this account.
Permalink 26/04/05 @ 10:20
Comment from: David Ethell [Visitor]
Authenticated feeds based on a filter are the best option for us. We need to pull issue feeds into our portal system for the current portal user. In the past we just had to write a JDBC-based portlet that would query the mysql database directly. Now we'll be able to accomplish the entire thing with RSS!
Permalink 26/04/05 @ 21:43
Comment from: olly [Visitor]
These RSS feeds are fantastic. We've been waiting for this feature with some anticipation. For our uses, feeds based on a saved filter would be brilliant.
Permalink 27/04/05 @ 23:18
Comment from: liuhonghai2000 [Visitor]
thanks!
Permalink 09/05/05 @ 22:56
Comment from: vboctor [Member]
You can now support the development of filter based RSS feeds, notes RSS feeds, and authenticated RSS feeds.

Checkout the following post for more details.
Permalink 11/05/05 @ 03:31
Comment from: Duncan Hill [Visitor] · http://www.icritical.com
We use Mantis as our internal bug and support tracker, and it works great. The RSS feed, however, is definitely a problem with anonymous only access.

For authenticated access, have you considered generating a unique key per authenticated user - the RSS feed is then called as ?project_id=1/user=auth_token

The user can request a token regeneration at any point, in case they feel it was compromised. Paranoid admins can use SSL to protect this token even more.
Permalink 31/05/05 @ 20:50
Comment from: Nick Laine [Visitor]
Hi,
thx a lot for this great tool !
I am calling on you because my hoster reported that the index.php was taking 28% of our mutualized server, and it sounds enorneous to me... we have very few users connected to this coporate tool. Have you heard about a previous issue? what can i do to tune it?

Sanks for your help
Cheers'
NHL
Permalink 01/06/05 @ 00:35
Comment from: vboctor [Member]
NHL, I haven't got reports of this problem. I suggest you upgrade to Mantis 1.0.0a3 since it does lots of optomisations compared to 1.0.a2.
Permalink 01/06/05 @ 11:20
Comment from: Chris [Visitor]
Works fine, but considering modifying Mantis so it only links to issues_rss.php instead of news_rss.php. Or at least there could be an option (eg for the Live Bookmark icon in Firefox)
Permalink 24/02/06 @ 14:49

Comments are closed for this post.