Page MenuHomePhabricator

Add UDP messages on comment/status change
Closed, ResolvedPublic

Description

Author: john

Description:
Patch for sending UDP on comments and change status

Right now the robot codurr in MediaWiki-General echos new comments on revisions. It does this with database queries which is slow and inefficient. This patch sends out an UDP packet like for Recent Changes as soon as the comment is posted or the status is changed. The variable for the UDP Address/Port/Prefix is separate than the one for RC.


Version: unspecified
Severity: enhancement

attachment UDP_on_comment_and_status_change.patch ignored as obsolete

Details

Reference
bz24107

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
ResolvedNone

Event Timeline

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

john wrote:

Improved patch with proper usage of wfMsg and truncated comments

attachment UDP_on_comment_and_status_change.patch ignored as obsolete

(In reply to comment #1)

Created an attachment (id=7506) [details]
Improved patch with proper usage of wfMsg and truncated comments

+$wgCRUDPAddress = false;
+$wgCRUDPPort = false;
+$wgCRUDPPrefix = '';

I'd spell the CodeReview in full. Maybe also encapsulate the RecentChange::sendToUDP(...); line to keep those globals in one place only.

john wrote:

(In reply to comment #2)
> I'd spell the CodeReview in full. Maybe also encapsulate the

RecentChange::sendToUDP(...); line to keep those globals in one place only.

Sorry but what do you mean by "encapsulate the

RecentChange::sendToUDP(...); line", move it to its own function?

john wrote:

Patch version 3

This patch should address your requests. Let me know if it's missing anything.

Attached:

keywords: s/need-review/reviewed/.