Ottomata has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/332807 )

Change subject: Configure RCFeeds to use EventBus extension to send 
recentchange events
......................................................................

Configure RCFeeds to use EventBus extension to send recentchange events

Bug: T152030
Change-Id: If33bf0b215b62a2d803d77fd7f14a9a323cf5789
---
M wmf-config/CommonSettings.php
1 file changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/07/332807/1

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index fc7e0e0..e3588fa 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -3367,6 +3367,19 @@
 if ( $wmgUseEventBus ) {
        wfLoadExtension( 'EventBus' );
        $wgEventServiceUrl = "{$wmfLocalServices['eventbus']}/v1/events";
+
+       // Configure RecentChange to send recentchange events to EventBus 
service.
+       // Add a mapping from eventbus:// RCFeed URIs to the 
EventBusRCFeedEngine.
+       $wgRCEngines['eventbus'] = 'EventBusRCFeedEngine';
+       $wgRCFeeds['eventbus'] = [
+               'formatter' => 'EventBusRCFeedFormatter',
+               // Replace 'http://' in eventbus service endpoint with 
'eventbus://'.
+               // This is necessary so that the URI can properly map to an 
entry in
+               // $wgRCEngines.  This hack can be removed after
+               // https://gerrit.wikimedia.org/r/#/c/330833/ is merged.
+               'uri' => str_replace( 'http://', 'eventbus://', 
$wmfLocalServices['eventbus'] ) .
+                       '/v1/events'
+       ];
 }
 
 if ( $wmgUseCapiunto ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/332807
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If33bf0b215b62a2d803d77fd7f14a9a323cf5789
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Ottomata <ao...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to