Cdentinger has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/314326

Change subject: stop mirroring verified
......................................................................

stop mirroring verified

SourceFields expects messages to be an array so we'll have to change
them all to arrays, then change that

Change-Id: I65c8086f6e075a99abe03add7c3242c6694f82c2
---
M PaymentProviders/PayPal/Job.php
M SmashPig.yaml
2 files changed, 8 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/SmashPig 
refs/changes/26/314326/1

diff --git a/PaymentProviders/PayPal/Job.php b/PaymentProviders/PayPal/Job.php
index 8f5d6b6..79b7888 100644
--- a/PaymentProviders/PayPal/Job.php
+++ b/PaymentProviders/PayPal/Job.php
@@ -92,8 +92,13 @@
 
                $new_msg->gateway = 'paypal';
 
-               // Save to appropriate queue.
                SourceFields::addToMessage( $new_msg );
+
+               // FIXME once all messages can be arrays, just make this an 
array
+               // at the top
+               $new_msg = (array)$new_msg;
+
+               // Save to appropriate queue.
                $this->config->object( 'data-store/' . $msg_type )
                        ->push( $new_msg );
 
diff --git a/SmashPig.yaml b/SmashPig.yaml
index eb8622b..df866a3 100644
--- a/SmashPig.yaml
+++ b/SmashPig.yaml
@@ -104,10 +104,10 @@
                     queue: jobs-paypal
 
         verified:
-            class: SmashPig\Core\DataStores\MultiQueueWriter
+            class: PHPQueue\Backend\Predis
             constructor-parameters:
                 -
-                    - verified-stomp
+                    <<: *REDIS
 
         verified-stomp:
             class: SmashPig\Core\DataStores\StompDataStore

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I65c8086f6e075a99abe03add7c3242c6694f82c2
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/SmashPig
Gerrit-Branch: master
Gerrit-Owner: Cdentinger <cdentin...@wikimedia.org>

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

Reply via email to