Daniel Kinzler has uploaded a new change for review.

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


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(-)


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

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: newchange
Gerrit-Change-Id: I89a40eff1ef070a0b2bfc8f1e1a773c4e7dd9387
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Daniel Kinzler <[email protected]>

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

Reply via email to