Last modified: 2011-09-07 18:53:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32621, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30621 - Set $wgOverrideSiteFeed to use Special:NewsFeed from GNSM extension instead of external feed, on English Wikinews
Set $wgOverrideSiteFeed to use Special:NewsFeed from GNSM extension instead o...
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Normal normal with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-29 19:12 UTC by George Watson
Modified: 2011-09-07 18:53 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description George Watson 2011-08-29 19:12:04 UTC
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"
Comment 3 Roan Kattouw 2011-08-31 13:10:51 UTC
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.
Comment 4 Bawolff (Brian Wolff) 2011-08-31 15:35:11 UTC
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.
Comment 5 Bawolff (Brian Wolff) 2011-08-31 15:37:43 UTC
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)
Comment 7 Bawolff (Brian Wolff) 2011-09-07 18:41:57 UTC
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.
Comment 8 Sam Reed (reedy) 2011-09-07 18:53:14 UTC
Done

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links