Jdlrobson has uploaded a new change for review.

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

Change subject: Hygiene: Correct API module name inconsistency
......................................................................

Hygiene: Correct API module name inconsistency

* The module name does not reflect the RL module

Change-Id: I02cf3ea1bef11e62160f3bae50ecdde9a54d38ec
---
M includes/Gather.hooks.php
M resources/ext.gather.api/CollectionsApi.js
M resources/ext.gather.collection.delete/CollectionDeleteOverlay.js
M resources/ext.gather.collection.editor/CollectionEditOverlay.js
M resources/ext.gather.moderation/init.js
M resources/ext.gather.page.search/CollectionPageList.js
M resources/ext.gather.routes/routes.js
M resources/ext.gather.special/init.js
M resources/ext.gather.watchstar/CollectionsContentOverlay.js
9 files changed, 14 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather 
refs/changes/09/207009/1

diff --git a/includes/Gather.hooks.php b/includes/Gather.hooks.php
index 0248188..472a23c 100644
--- a/includes/Gather.hooks.php
+++ b/includes/Gather.hooks.php
@@ -209,6 +209,12 @@
                        'targets' => array( 'desktop', 'mobile' ),
                );
 
+               $modules['qunit']['ext.gather.api.tests'] = $boilerplate + 
array(
+                       'scripts' => array(
+                               'ext.gather.api/test_CollectionsApi.js',
+                       ),
+                       'dependencies' => array( 'ext.gather.api' ),
+               );
                $modules['qunit']['ext.gather.watchstar.tests'] = $boilerplate 
+ array(
                        'scripts' => array(
                                
'ext.gather.watchstar/test_CollectionsContentOverlay.js',
diff --git a/resources/ext.gather.api/CollectionsApi.js 
b/resources/ext.gather.api/CollectionsApi.js
index 8ff4146..56eea68 100644
--- a/resources/ext.gather.api/CollectionsApi.js
+++ b/resources/ext.gather.api/CollectionsApi.js
@@ -252,6 +252,6 @@
                }
        } );
 
-       M.define( 'ext.gather.watchstar/CollectionsApi', CollectionsApi );
+       M.define( 'ext.gather.api/CollectionsApi', CollectionsApi );
 
 }( mw.mobileFrontend, jQuery ) );
diff --git a/resources/ext.gather.collection.delete/CollectionDeleteOverlay.js 
b/resources/ext.gather.collection.delete/CollectionDeleteOverlay.js
index 28e8f2c..2561e60 100644
--- a/resources/ext.gather.collection.delete/CollectionDeleteOverlay.js
+++ b/resources/ext.gather.collection.delete/CollectionDeleteOverlay.js
@@ -5,7 +5,7 @@
                schema = new SchemaGather(),
                toast = M.require( 'toast' ),
                futureToasts = M.require( 'ext.gather.alerts/futureToasts' ),
-               CollectionsApi = M.require( 
'ext.gather.watchstar/CollectionsApi' ),
+               CollectionsApi = M.require( 'ext.gather.api/CollectionsApi' ),
                ConfirmationOverlay = M.require( 
'ext.gather.confirm/ConfirmationOverlay' );
 
        /**
diff --git a/resources/ext.gather.collection.editor/CollectionEditOverlay.js 
b/resources/ext.gather.collection.editor/CollectionEditOverlay.js
index a38a26a..23cc312 100644
--- a/resources/ext.gather.collection.editor/CollectionEditOverlay.js
+++ b/resources/ext.gather.collection.editor/CollectionEditOverlay.js
@@ -2,7 +2,7 @@
 
        var CollectionEditOverlay,
                toast = M.require( 'toast' ),
-               CollectionsApi = M.require( 
'ext.gather.watchstar/CollectionsApi' ),
+               CollectionsApi = M.require( 'ext.gather.api/CollectionsApi' ),
                CollectionSearchPanel = M.require( 
'ext.gather.page.search/CollectionSearchPanel' ),
                Overlay = M.require( 'Overlay' ),
                Icon = M.require( 'Icon' ),
diff --git a/resources/ext.gather.moderation/init.js 
b/resources/ext.gather.moderation/init.js
index 1744c05..ca9728f 100644
--- a/resources/ext.gather.moderation/init.js
+++ b/resources/ext.gather.moderation/init.js
@@ -1,5 +1,5 @@
 ( function ( M, $ ) {
-       var CollectionsApi = M.require( 'ext.gather.watchstar/CollectionsApi' ),
+       var CollectionsApi = M.require( 'ext.gather.api/CollectionsApi' ),
                toast = M.require( 'toast' ),
                Icon = M.require( 'Icon' ),
                api = new CollectionsApi();
diff --git a/resources/ext.gather.page.search/CollectionPageList.js 
b/resources/ext.gather.page.search/CollectionPageList.js
index f7f36a3..1b297d1 100644
--- a/resources/ext.gather.page.search/CollectionPageList.js
+++ b/resources/ext.gather.page.search/CollectionPageList.js
@@ -2,7 +2,7 @@
 
        var PageList = M.require( 'modules/PageList' ),
                Page = M.require( 'Page' ),
-               CollectionsApi = M.require( 
'ext.gather.watchstar/CollectionsApi' ),
+               CollectionsApi = M.require( 'ext.gather.api/CollectionsApi' ),
                View = M.require( 'View' ),
                Icon = M.require( 'Icon' ),
                CollectionPageList;
diff --git a/resources/ext.gather.routes/routes.js 
b/resources/ext.gather.routes/routes.js
index 24e1d9b..e02e7be 100644
--- a/resources/ext.gather.routes/routes.js
+++ b/resources/ext.gather.routes/routes.js
@@ -1,6 +1,6 @@
 ( function ( M, $ ) {
 
-       var CollectionsApi = M.require( 'ext.gather.watchstar/CollectionsApi' ),
+       var CollectionsApi = M.require( 'ext.gather.api/CollectionsApi' ),
                toast = M.require( 'toast' ),
                overlayManager = M.require( 'overlayManager' );
 
diff --git a/resources/ext.gather.special/init.js 
b/resources/ext.gather.special/init.js
index 2e2de29..908ae9f 100644
--- a/resources/ext.gather.special/init.js
+++ b/resources/ext.gather.special/init.js
@@ -1,6 +1,6 @@
 ( function ( M, $ ) {
 
-       var CollectionsApi = M.require( 'ext.gather.watchstar/CollectionsApi' ),
+       var CollectionsApi = M.require( 'ext.gather.api/CollectionsApi' ),
                CollectionFlagOverlay = M.require( 
'ext.gather.flag/CollectionFlagOverlay' ),
                Icon = M.require( 'Icon' ),
                api = new CollectionsApi();
diff --git a/resources/ext.gather.watchstar/CollectionsContentOverlay.js 
b/resources/ext.gather.watchstar/CollectionsContentOverlay.js
index 7f05eff..fbed853 100644
--- a/resources/ext.gather.watchstar/CollectionsContentOverlay.js
+++ b/resources/ext.gather.watchstar/CollectionsContentOverlay.js
@@ -6,7 +6,7 @@
                toast = M.require( 'toast' ),
                user = M.require( 'user' ),
                Icon = M.require( 'Icon' ),
-               CollectionsApi = M.require( 
'ext.gather.watchstar/CollectionsApi' ),
+               CollectionsApi = M.require( 'ext.gather.api/CollectionsApi' ),
                CollectionsContentOverlayBase = M.require( 
'ext.gather.collection.base/CollectionsContentOverlayBase' ),
                ButtonWithSpinner = M.require( 'ButtonWithSpinner' );
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I02cf3ea1bef11e62160f3bae50ecdde9a54d38ec
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

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

Reply via email to