Page MenuHomePhabricator

Implement a sane push interface for recent changes
Closed, DuplicatePublic

Description

Right now MediaWiki comes with a string-based recent changes push system which sends UDP packets on-change (just like DB-rows are inserted into the recentchanges-table).

The problem with this is that it's just a string that isn't very machine readable. And the actual text is localized which makes it even harder.

For example, right now if a bot wants to get push notifications for certain log actions (ie. block or delete), the bot has to download the MediaWiki-namespace messages, convert them to regexes and then whenever a "change" to Special:Log/.... is made, the text is matched against each of the regexes and eventually we can find our out if the action was 'protect' or 'unprotect' or 'modifyprotect' etc.

A better solution would be to send JSON or XML, which is much easier to parse. This opens an incredible amount of possibilities for developers. For example, one could create a "real-time wiki monitor" with dropdown menu's for filters. Eg. Users: Anonymous / Logged-in / Both. Right now this would require parsing the username from the rc-feed and checking if it matches MW's IPv4 or IPv6 regex. In the future there could could simply be a boolean anon="" segment (like the API already has). Another major problem in the current system is user group member. (currently requires making an API request to get a list of admins/bots/<othergroup> and keeping them in memory and doing a look-up on every single change.

This bug requests such a push system to be implemented in core (just like we have for string-packets to UDP). Another MW-extension, LocalSettings config or independent server-side service would then listen to that and potentially provide stuff like PubSubHubHub, WebSockets, Jabber etc.)

Dependencies on this bug are issues and feature requests that would be solved or become an option with this new system.


Version: unspecified
Severity: enhancement

Details

Reference
bz30555

Event Timeline

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

There's Extension:XMLRC. Daniel, how complete is that?

  • This bug has been marked as a duplicate of bug 14045 ***