jenkins-bot has submitted this change and it was merged.

Change subject: Initialize the UserTesting framework before creating a 
Connection
......................................................................


Initialize the UserTesting framework before creating a Connection

This is needed to test a feature on another cluster.

Change-Id: Ieb8ad3732a6b9493fef87b6b9b7473e788d1c8c8
(cherry picked from commit aaf351982d4f5a02ed324989f6191c3cba304ec1)
---
M includes/CirrusSearch.php
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Hashar: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/CirrusSearch.php b/includes/CirrusSearch.php
index b7d90c0..ddeb1fe 100644
--- a/includes/CirrusSearch.php
+++ b/includes/CirrusSearch.php
@@ -11,6 +11,7 @@
 use CirrusSearch\Search\FancyTitleResultsType;
 use CirrusSearch\Search\TitleResultsType;
 use CirrusSearch\Search\TextIndexField;
+use CirrusSearch\UserTesting;
 use MediaWiki\Logger\LoggerFactory;
 use MediaWiki\MediaWikiServices;
 
@@ -83,6 +84,9 @@
        private $request;
 
        public function __construct( $baseName = null ) {
+               // Initialize UserTesting before we create a Connection
+               // This is useful to do tests accross multiple clusters
+               UserTesting::getInstance();
                $this->config = MediaWikiServices::getInstance()
                                ->getConfigFactory()
                                ->makeConfig( 'CirrusSearch' );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ieb8ad3732a6b9493fef87b6b9b7473e788d1c8c8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: wmf/1.28.0-wmf.16
Gerrit-Owner: DCausse <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Gehel <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Manybubbles <[email protected]>
Gerrit-Reviewer: Smalyshev <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to