Ejegg has uploaded a new change for review. https://gerrit.wikimedia.org/r/305677
Change subject: Mirror queue messages from wmf_audit ...................................................................... Mirror queue messages from wmf_audit Takes effect when smashpig config adds verified-new, refund-new, and recurring-new datastore configuration. Trying to minimize changes to existing code, so not using MultiQueueWriter (see I25ef9c81932) Bug: T141484 Change-Id: I9998895598df02c45c8b181275f013b81b767ad5 --- M sites/all/modules/wmf_audit/wmf_audit.module 1 file changed, 15 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm refs/changes/77/305677/1 diff --git a/sites/all/modules/wmf_audit/wmf_audit.module b/sites/all/modules/wmf_audit/wmf_audit.module index 2aab73e..5c6cc3c 100644 --- a/sites/all/modules/wmf_audit/wmf_audit.module +++ b/sites/all/modules/wmf_audit/wmf_audit.module @@ -1,6 +1,7 @@ <?php use SmashPig\Core\Configuration; +use SmashPig\Core\ConfigurationKeyException; use SmashPig\Core\Context; define('WMF_AUDIT_PAYMENTS_LOGS_DIR', '/usr/local/src/logs/'); @@ -433,6 +434,20 @@ } wmf_common_set_message_source($headers, 'audit', wmf_audit_runtime_options('submod_prefix') . ' Recon Auditor'); + wmf_common_set_message_source($body, 'audit', wmf_audit_runtime_options('submod_prefix') . ' Recon Auditor'); + $configKeys = array( + 'main' => 'data-store/verified-new', + 'negative' => 'data-store/refund-new', + 'recurring' => 'data-store/recurring-new', + ); + try{ + $newQueue = Configuration::getDefaultConfig()->object( + $configKeys[$type] + ); + $newQueue->push( $body ); + } catch ( ConfigurationKeyException $ex ) { + // do nothing + } return $q->enqueue(json_encode($body), $headers, $types[$type]); } -- To view, visit https://gerrit.wikimedia.org/r/305677 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9998895598df02c45c8b181275f013b81b767ad5 Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/fundraising/crm Gerrit-Branch: master Gerrit-Owner: Ejegg <eeggles...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits