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

Change subject: (bug 54096) Apply high limit for bots to wbsearchentities.
......................................................................


(bug 54096) Apply high limit for bots to wbsearchentities.

Change-Id: I89a40eff1ef070a0b2bfc8f1e1a773c4e7dd9387
---
M repo/includes/api/SearchEntities.php
1 file changed, 4 insertions(+), 2 deletions(-)

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



diff --git a/repo/includes/api/SearchEntities.php 
b/repo/includes/api/SearchEntities.php
index bb31c74..f5f8764 100644
--- a/repo/includes/api/SearchEntities.php
+++ b/repo/includes/api/SearchEntities.php
@@ -244,16 +244,18 @@
                                ApiBase::PARAM_DFLT => 'item',
                        ),
                        'limit' => array(
-                               ApiBase::PARAM_TYPE => 'integer',
+                               ApiBase::PARAM_TYPE => 'limit',
                                ApiBase::PARAM_DFLT => 7,
                                ApiBase::PARAM_MAX => ApiBase::LIMIT_SML1,
+                               ApiBase::PARAM_MAX2 => ApiBase::LIMIT_SML2,
                                ApiBase::PARAM_MIN => 0,
                                ApiBase::PARAM_RANGE_ENFORCE => true,
                        ),
                        'continue' => array(
-                               ApiBase::PARAM_TYPE => 'integer',
+                               ApiBase::PARAM_TYPE => 'limit',
                                ApiBase::PARAM_DFLT => 0,
                                ApiBase::PARAM_MAX => ApiBase::LIMIT_SML1,
+                               ApiBase::PARAM_MAX2 => ApiBase::LIMIT_SML2,
                                ApiBase::PARAM_MIN => 0,
                                ApiBase::PARAM_RANGE_ENFORCE => true,
                        ),

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I89a40eff1ef070a0b2bfc8f1e1a773c4e7dd9387
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Lydia Pintscher <[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