Page MenuHomePhabricator

Special:RecentChanges RSS feed ignores namespace
Closed, ResolvedPublic

Description

On Special:RecentChanges, the parameter "namespace" filters the results. However, when feed=rss is used, the namespace parameter is ignored.

Bug is present in 1.16alpha-wmf (r59133) on Wikipedia, as well as 1.15.1.

Case study:

Uses namespace:
http://en.wikipedia.org/wiki/Special:RecentChanges?namespace=2

Ignores namespace (bug):
http://en.wikipedia.org/wiki/Special:RecentChanges?namespace=2&feed=rss


Version: 1.16.x
Severity: normal

Details

Reference
bz21535

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:57 PM
bzimport set Reference to bz21535.
bzimport added a subscriber: Unknown Object (MLST).

In contrast, Special:NewPages respects the "namespace" parameter for RSS.

craig.box wrote:

Patch for adding namespace value to the cache key used for recent changes RSS.

The difference is that Special:NewPages always generates a feed; Special:RecentChanges uses the ChangesFeed class, which caches its results. If you alter the feedSetup() function to include the namespace parameter, the cache will then return you the results from whatever namespace you first hit, for the cache validity period, even when you have changed the namespace parameter. To work around _that_, we add the namespace value to the cache key.

Attached is a patch for this issue. I can't see any reason why using namespace as a cache parameter is a bad thing, so if anyone could weigh in here, please do.

Attached:

happy.melon.wiki wrote:

Looks good to me, but RSS and caching are not my strong suits.

happy.melon.wiki wrote:

Committed in r60163.

  • Bug 6132 has been marked as a duplicate of this bug. ***