Page MenuHomePhabricator

Set $wgOverrideSiteFeed to use Special:NewsFeed from GNSM extension instead of external feed, on English Wikinews
Closed, ResolvedPublic

Description

Author: george

Description:
The English Wikinews recently implemented the Google News Sitemap extension, which provides a number of additional features, including a much better RSS feed than the current feedburner one. Can this be changed, please?

It would require changing the following:
$wgSiteFeed['rss'] = "http://feeds.feedburner.com/WikinewsLatestNews" (set after bug 15080)

to:
$wgSiteFeed['rss'] = "http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=rss&categories=Published&notcategories=No%20publish|Archived|AutoArchived|disputed&namespace=0&count=30&hourcount=96&ordermethod=categoryadd&stablepages=only"


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=15080

Details

Reference
bz30621

Event Timeline

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

Please don't tag shell requests as 'easy'. 'easy' is for bugs that people new to the MediaWiki code base can easily fix, not for bugs that require shell access to the cluster.

Some comments:

RSS vs ATOM: Since we now only put atom feeds in <link>'s (since some time in 1.17) we should probably only have:

$wgSiteFeed['atom'] =
'http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=atom&notcategories=No%20publish|Archived|AutoArchived|disputed&count=30&hourcount=96';

(This is exactly the same as comment 0's feed, except for changing to atom, and removing some parameters that are the same as the implied defaults when unspecified)

For the google one brianmc suggested in comment 1, that's already what google has, except the proposed one is limited to 30 articles, where currently we have no limit (google wants less than 1000, so no limit sounds good to me). Thus I don't recommend changing the google one. (However for future reference I believe hexmode has the google webmaster tools account)

$wgGNSMsmaxage = 300

would be the most appropriate value for a news site; stuff should be pushed
quickly, not half-hourly.

Note to ops folks: This would (obviously) decrease the cache life of gnsm requests in the squids for non-logged in users. This is probably not a big deal (at least I don't think it would be) since wikinews is a) small, and b) GNSM also caches stuff in memcache which this setting does not affect.

before I forget, if mediawiki doesn't do this itself, the |'s in the url should be changed to %7C since some clients seem to have difficultly with that character (probably works fine for 99% of people, but better safe than sorry)

'wgOverrideSiteFeed' => array(

'testwiki' => array(
    'rss' => 'http://www.example.org/feedstuff.rss',
),
'enwikinews' => array(
    'rss' => 'http://feeds.feedburner.com/WikinewsLatestNews',
),

),

to

'wgOverrideSiteFeed' => array(

'testwiki' => array(
    'rss' => 'http://www.example.org/feedstuff.rss',
),
'enwikinews' => array(
    'rss' => 'http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=rss&categories=Published&notcategories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=30&hourcount=124&ordermethod=categoryadd&stablepages=only',
    'atom' => 'http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=atom&categories=Published&notcategories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=30&hourcount=124&ordermethod=categoryadd&stablepages=only',
),

),

?

And then setting $wgGNSMsmaxage = 300

Do we know who has the google webmaster tools account?

btw, community concensuss at: http://en.wikinews.org/wiki/Wikinews:Water_cooler/technical#bugzilla:30621

re: to comment 6

Do we know who has the google webmaster tools account?

hexmode used to, don't know if he still does. However it doesn't really matter as its not needed to fulfill this request.

'wgOverrideSiteFeed' => array(

'testwiki' => array(
    'rss' => 'http://www.example.org/feedstuff.rss',
),
'enwikinews' => array(
    'rss' => 'http://feeds.feedburner.com/WikinewsLatestNews',
),

),

to

'wgOverrideSiteFeed' => array(

'testwiki' => array(
    'rss' => 'http://www.example.org/feedstuff.rss',
),
'enwikinews' => array(
    'rss' =>

'http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=rss&categories=Published&notcategories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=30&hourcount=124&ordermethod=categoryadd&stablepages=only',

'atom' =>

'http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=atom&categories=Published&notcategories=No%20publish%7CArchived%7CAutoArchived%7Cdisputed&namespace=0&count=30&hourcount=124&ordermethod=categoryadd&stablepages=only',

),

),

?

And then setting $wgGNSMsmaxage = 300

Yep that would be fine. Personally I'd only set the atom one and not have any rss feed set in $wgOverrideSiteFeed (to be consistent with r61037) but I guess it doesn't really matter.