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

Change subject: Update ApiModules to conform to API conventions
......................................................................


Update ApiModules to conform to API conventions

Bug: 69739
Change-Id: Ic8e0e4b91a190134b2364a48f766e9661a856bfd
---
M repo/includes/api/ModifyEntity.php
M repo/includes/api/ParseValue.php
M repo/includes/api/SetReference.php
M repo/includes/api/SetSiteLink.php
4 files changed, 5 insertions(+), 6 deletions(-)

Approvals:
  Thiemo Mättig (WMDE): Looks good to me, approved
  jenkins-bot: Verified



diff --git a/repo/includes/api/ModifyEntity.php 
b/repo/includes/api/ModifyEntity.php
index 15f3bb8..22b7e2d 100644
--- a/repo/includes/api/ModifyEntity.php
+++ b/repo/includes/api/ModifyEntity.php
@@ -519,9 +519,6 @@
                                autocomment together with the summary is 260 
characters. Be aware that everything above that
                                limit will be cut off."
                        ),
-                       'type' => array( 'A specific type of entity.',
-                               "Will default to 'item' as this will be the 
most common type."
-                       ),
                        'token' => 'A "edittoken" token previously obtained 
through the token module (prop=info).',
                        'bot' => array( 'Mark this edit as bot',
                                'This URL flag will only be respected if the 
user belongs to the group "bot".'
diff --git a/repo/includes/api/ParseValue.php b/repo/includes/api/ParseValue.php
index 1efd1d8..191bf7d 100644
--- a/repo/includes/api/ParseValue.php
+++ b/repo/includes/api/ParseValue.php
@@ -209,7 +209,8 @@
         */
        protected function getExamples() {
                return array(
-                       // 'ex' => 'desc' // TODO
+                       
'api.php?action=wbparsevalue&parser=null&values=foo|bar' => 'No change to the 
format of the string.',
+                       
'api.php?action=wbparsevalue&parser=time&values=1994-02-08&options={"precision":9}'
 => 'Parse 1994-02-08 to a date format with a precision of 9 (the year).',
                );
        }
 
@@ -224,4 +225,4 @@
                return __CLASS__ . '-0.2';
        }
 
-}
+}
\ No newline at end of file
diff --git a/repo/includes/api/SetReference.php 
b/repo/includes/api/SetReference.php
index e439518..bca0bba 100644
--- a/repo/includes/api/SetReference.php
+++ b/repo/includes/api/SetReference.php
@@ -246,6 +246,7 @@
                        array(
                                'statement' => 'A GUID identifying the 
statement for which a reference is being set',
                                'snaks' => 'The snaks to set the reference to. 
JSON object with property ids pointing to arrays containing the snaks for that 
property',
+                               'snaks-order' => 'The order of the snaks. 
Comma-separated list of property ids',
                                'reference' => 'A hash of the reference that 
should be updated. Optional. When not provided, a new reference is created',
                                'index' => 'The index within the statement\'s 
list of references where to move the reference to. Optional. When not provided, 
an existing reference will stay in place while a new reference will be 
appended.',
                        )
diff --git a/repo/includes/api/SetSiteLink.php 
b/repo/includes/api/SetSiteLink.php
index 3f0821b..4974b2b 100644
--- a/repo/includes/api/SetSiteLink.php
+++ b/repo/includes/api/SetSiteLink.php
@@ -201,8 +201,8 @@
                        parent::getParamDescriptionForEntity(),
                        array(
                                'linksite' => 'The identifier of the site on 
which the article to link resides',
-                               'badges' => 'The IDs of items to be set as 
badges. They will replace the current ones. If this parameter is not set, the 
badges will not be changed',
                                'linktitle' => 'The title of the article to 
link. If this parameter is an empty string or both linktitle and badges are not 
set, the link will be removed.',
+                               'badges' => 'The IDs of items to be set as 
badges. They will replace the current ones. If this parameter is not set, the 
badges will not be changed',
                        )
                );
        }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic8e0e4b91a190134b2364a48f766e9661a856bfd
Gerrit-PatchSet: 19
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Lucie Kaffee <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: Tobias Gritschacher <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to