Addshore has uploaded a new change for review.

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


Change subject: Change the order of params displayed in api.php
......................................................................

Change the order of params displayed in api.php

This means that the bot token and baserevid etc
will be displayed at the bottom of the list of
params

this then allows the params that actually differ
from module to module to appear at the top

Change-Id: I2590be822af07f01826fd4c67481cb005f80c526
---
M repo/includes/api/CreateClaim.php
M repo/includes/api/RemoveClaims.php
M repo/includes/api/RemoveQualifiers.php
M repo/includes/api/RemoveReferences.php
M repo/includes/api/SetClaimValue.php
M repo/includes/api/SetQualifier.php
M repo/includes/api/SetReference.php
M repo/includes/api/SetStatementRank.php
8 files changed, 16 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/35/86835/1

diff --git a/repo/includes/api/CreateClaim.php 
b/repo/includes/api/CreateClaim.php
index 482bfcf..ee9ecfa 100644
--- a/repo/includes/api/CreateClaim.php
+++ b/repo/includes/api/CreateClaim.php
@@ -109,7 +109,6 @@
         */
        public function getAllowedParams() {
                return array_merge(
-                       parent::getAllowedParams(),
                        array(
                                'entity' => array(
                                        ApiBase::PARAM_TYPE => 'string',
@@ -127,7 +126,8 @@
                                        ApiBase::PARAM_TYPE => 'string',
                                        ApiBase::PARAM_REQUIRED => false,
                                ),
-                       )
+                       ),
+                       parent::getAllowedParams()
                );
        }
 
diff --git a/repo/includes/api/RemoveClaims.php 
b/repo/includes/api/RemoveClaims.php
index 8886cfe..28d6973 100644
--- a/repo/includes/api/RemoveClaims.php
+++ b/repo/includes/api/RemoveClaims.php
@@ -174,14 +174,14 @@
         */
        public function getAllowedParams() {
                return array_merge(
-                       parent::getAllowedParams(),
                        array(
                                'claim' => array(
                                        ApiBase::PARAM_TYPE => 'string',
                                        ApiBase::PARAM_ISMULTI => true,
                                        ApiBase::PARAM_REQUIRED => true,
                                ),
-                       )
+                       ),
+                       parent::getAllowedParams()
                );
        }
 
diff --git a/repo/includes/api/RemoveQualifiers.php 
b/repo/includes/api/RemoveQualifiers.php
index 758a532..7c5604b 100644
--- a/repo/includes/api/RemoveQualifiers.php
+++ b/repo/includes/api/RemoveQualifiers.php
@@ -136,7 +136,6 @@
         */
        public function getAllowedParams() {
                return array_merge(
-                       parent::getAllowedParams(),
                        array(
                                'claim' => array(
                                        ApiBase::PARAM_TYPE => 'string',
@@ -147,7 +146,8 @@
                                        ApiBase::PARAM_REQUIRED => true,
                                        ApiBase::PARAM_ISMULTI => true,
                                ),
-                       )
+                       ),
+                       parent::getAllowedParams()
                );
        }
 
diff --git a/repo/includes/api/RemoveReferences.php 
b/repo/includes/api/RemoveReferences.php
index 24daf2a..3410f66 100644
--- a/repo/includes/api/RemoveReferences.php
+++ b/repo/includes/api/RemoveReferences.php
@@ -140,7 +140,6 @@
         */
        public function getAllowedParams() {
                return array_merge(
-                       parent::getAllowedParams(),
                        array(
                                'statement' => array(
                                        ApiBase::PARAM_TYPE => 'string',
@@ -151,7 +150,8 @@
                                        ApiBase::PARAM_REQUIRED => true,
                                        ApiBase::PARAM_ISMULTI => true,
                                ),
-                       )
+                       ),
+                       parent::getAllowedParams()
                );
        }
 
diff --git a/repo/includes/api/SetClaimValue.php 
b/repo/includes/api/SetClaimValue.php
index 748a9a6..3cf64be 100644
--- a/repo/includes/api/SetClaimValue.php
+++ b/repo/includes/api/SetClaimValue.php
@@ -85,7 +85,6 @@
         */
        public function getAllowedParams() {
                return array_merge(
-                       parent::getAllowedParams(),
                        array(
                                'claim' => array(
                                        ApiBase::PARAM_TYPE => 'string',
@@ -99,7 +98,8 @@
                                        ApiBase::PARAM_TYPE => array( 'value', 
'novalue', 'somevalue' ),
                                        ApiBase::PARAM_REQUIRED => true,
                                ),
-                       )
+                       ),
+                       parent::getAllowedParams()
                );
        }
 
diff --git a/repo/includes/api/SetQualifier.php 
b/repo/includes/api/SetQualifier.php
index 1614dfd..bf0b8e1 100644
--- a/repo/includes/api/SetQualifier.php
+++ b/repo/includes/api/SetQualifier.php
@@ -132,7 +132,6 @@
         */
        public function getAllowedParams() {
                return array_merge(
-                       parent::getAllowedParams(),
                        array(
                                'claim' => array(
                                        ApiBase::PARAM_TYPE => 'string',
@@ -154,7 +153,8 @@
                                        ApiBase::PARAM_TYPE => 'string',
                                        ApiBase::PARAM_REQUIRED => false,
                                ),
-                       )
+                       ),
+                       parent::getAllowedParams()
                );
        }
 
diff --git a/repo/includes/api/SetReference.php 
b/repo/includes/api/SetReference.php
index 72750b8..0d59104 100644
--- a/repo/includes/api/SetReference.php
+++ b/repo/includes/api/SetReference.php
@@ -225,7 +225,6 @@
         */
        public function getAllowedParams() {
                return array_merge(
-                       parent::getAllowedParams(),
                        array(
                                'statement' => array(
                                        ApiBase::PARAM_TYPE => 'string',
@@ -241,7 +240,8 @@
                                'reference' => array(
                                        ApiBase::PARAM_TYPE => 'string',
                                ),
-                       )
+                       ),
+                       parent::getAllowedParams()
                );
        }
 
diff --git a/repo/includes/api/SetStatementRank.php 
b/repo/includes/api/SetStatementRank.php
index 731daa4..b5d5d21 100644
--- a/repo/includes/api/SetStatementRank.php
+++ b/repo/includes/api/SetStatementRank.php
@@ -115,7 +115,6 @@
         */
        public function getAllowedParams() {
                return array_merge(
-                       parent::getAllowedParams(),
                        array(
                                'statement' => array(
                                        ApiBase::PARAM_TYPE => 'string',
@@ -125,7 +124,8 @@
                                        ApiBase::PARAM_TYPE => 
ClaimSerializer::getRanks(),
                                        ApiBase::PARAM_REQUIRED => true,
                                ),
-                       )
+                       ),
+                       parent::getAllowedParams()
                );
        }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2590be822af07f01826fd4c67481cb005f80c526
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Addshore <addshorew...@gmail.com>

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

Reply via email to