Mpaa created this task.
Mpaa added projects: Pywikibot, ProofreadPage.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **Steps to replicate the issue**:
  
    import pywikibot
    import pywikibot.proofreadpage as pp
    site = pywikibot.Site('en', 'wikisource')
    page = pp.IndexPage(site, 'Index:Confederate Military History - 1899 - 
Volume 4.djvu')
  
  Internally, IndexPage() calls  self._get_prp_index_pagelist(self), which 
calls:
  
    pi_gen = site._generator(ListGenerator, 'proofreadpagesinindex', **ppi_args)
  
  **What happens?**:
  
    WARNING: API warning (main): Unrecognized parameter: prppiilimit.
  
  **What should have happened instead?**:
  No warning.
  
  
https://en.wikisource.org/wiki/Special:ApiSandbox#action=paraminfo&format=json&modules=query%2Bproofreadpagesinindex
  only lists 3 parameters
  
    "parameters": [
        {
            "index": 1,
            "name": "prop",
            "type": [
                "ids",
                "title"
            ],
            "default": "ids|title",
            "multi": "",
            "lowlimit": 50,
            "highlimit": 500,
            "limit": 500
        },
        {
            "index": 2,
            "name": "title",
            "type": "string"
        },
        {
            "index": 3,
            "name": "pageid",
            "type": "integer"
        }
    ]
  
  while:
  
    In [15]: site._paraminfo['query+proofreadpagesinindex']['parameters']
    Out[15]: 
    [{'index': 1, 'name': 'continue', 'type': 'integer'},
     {'index': 2,
      'name': 'prop',
      'type': ['ids', 'title'],
      'default': 'ids|title',
      'multi': '',
      'lowlimit': 50,
      'highlimit': 500,
      'limit': 500},
     {'index': 3, 'name': 'title', 'type': 'string'},
     {'index': 4, 'name': 'pageid', 'type': 'integer'},
     {'index': 5,
      'name': 'limit',
      'type': 'limit',
      'default': 100,
      'min': 1,
      'max': 500,
      'highmax': 5000}]
  
  I am not sure it the misalignment happens in pywikibot or it is due to how 
proofreadpagesinindex is implemented/exposes its paramenters.

TASK DETAIL
  https://phabricator.wikimedia.org/T316976

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Mpaa
Cc: Aklapper, pywikibot-bugs-list, Mpaa, PotsdamLamb, Bebiezaza, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Soda, Zkhalido, Viztor, DannyS712, 
Wenyi, Inductiveload, Xover, Tbscho, MayS, Mdupont, JJMC89, Tshrinivasan, 
Dvorapa, Altostratus, Avicennasis, Info-farmer, mys_721tx, Xqt, Candalua, 
jayvdb, Masti, Tpt, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to