Jsahleen has uploaded a new change for review.

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

Change subject: Categories: Increase API limit on categories retrieved and 
adapted
......................................................................

Categories: Increase API limit on categories retrieved and adapted

* Explicitly sets the API result limit for category retrieval
  and adaptation to 100 in order to handle more categories

  (the default if no limit is specified is 10)

Bug: 66666
Change-Id: I86b5797f813df7fd6cc6688223cb98b7efd851b9
---
M modules/tools/ext.cx.tools.categories.js
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/55/166755/1

diff --git a/modules/tools/ext.cx.tools.categories.js 
b/modules/tools/ext.cx.tools.categories.js
index 649940d..226a5cf 100644
--- a/modules/tools/ext.cx.tools.categories.js
+++ b/modules/tools/ext.cx.tools.categories.js
@@ -382,6 +382,7 @@
                        action: 'query',
                        prop: 'categories',
                        clshow: '!hidden',
+                       cllimit: 100,
                        indexpageids: true,
                        titles: title,
                        format: 'json'
@@ -447,6 +448,7 @@
                        titles: categoryTitles.join( '|' ),
                        prop: 'langlinks',
                        lllang: language,
+                       lllimit: 100,
                        redirects: true,
                        format: 'json'
                }, {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I86b5797f813df7fd6cc6688223cb98b7efd851b9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Jsahleen <[email protected]>

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

Reply via email to