https://bugzilla.wikimedia.org/show_bug.cgi?id=30555
Web browser: ---
Bug #: 30555
Summary: Implement a sane push interface for recent changes
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Resource Loader
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l