| zhuyifei1999 edited the task description. (Show Details) |
EDIT DETAILS
Bunch of changes announced by @Anomie . We should check if pywikibot needs any updates for this. If that's the case, new tasks should be made linked to this one.
> With the merge of Gerrit change 321406,[1] come some breaking changes to the formatting of errors and warnings from some modules. These changes should be on Beta Labs shortly, and should be deployed to WMF wikis with 1.29.0-wmf.6.
Error codes returned by some modules have changed. Notably, codes from query submodules will no longer include the module prefix, e.g.[[https://gerrit.wikimedia.org/r/#/c/321406/|321406]], if you supply a bad continuation parameter for prop=revisions it will reportcome some breaking changes to the formatting of error code 'badcontinue' instead of 'rvbadcontinue's and warnings from some modules. Other codes may have changed as wellThese changes should be on Beta Labs shortly, e.g. for list=allpages the error for attempting to use redirects=1 in generator mode is now 'invalidparammix' instead of 'params'and should be deployed to WMF wikis with 1.29.0-wmf.6.
If you're attempting to parse the human-readable 'info' text of errors,>
> * Error codes returned by some modules have changed. Notably, codes from query submodules will no longer include the module prefix, e.g. that text may have changedif you supply a bad continuation parameter for prop=revisions it will report error code 'badcontinue' instead of 'rvbadcontinue'. Use cases should be submitted in Phabricator[2] as feature requests to include the needed data in a machine-readable format alongside the error message.
action="" may return a "Warnings" status,Other codes may have changed as well, e.g. and now returns 'warnings' and 'errors' subelements (as applicable)for list=allpages the error for attempting to use redirects=1 in generator mode is now 'invalidparammix' instead of 'message'params'.
action="" returns an 'errors' subelement rather than 'errormessage'> * If you're attempting to parse the human-readable 'info' text of errors, that text may have changed. Use cases should be submitted in [[https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?tag=MediaWiki-API|Phabricator]] as feature requests to include the needed data in a machine-readable format alongside the error message.
action="" now reports errors when moving the talk page as an array under key 'talkmove-errors', rather than using 'talkmove-error-code' and 'talkmove-error-info'.> * action="" may return a "Warnings" status, The format for subpage move and now returns 'warnings' and 'errors has also changeds' subelements (as applicable) instead of 'message'.
action="" no longer returns a "messageHtml" property on errors. Use errorformat=html if you're wanting HTML formatting of messages> * action="" returns an 'errors' subelement rather than 'errormessage'.
> * action="" style="padding: 0 2px; color: #333333; background: #f8cbcb;">uploadmove now reports optional stash failureserrors when moving the talk page as an array under key 'stasherrors' rather than a 'stashfailed' text stringtalkmove-errors', rather than using 'talkmove-error-code' and 'talkmove-error-info'. The format for subpage move errors has also changed.
action="" reports 'errors' and 'warnings' instead of a single 'error'
This same change brings the ability to request errors and warnings in languages other than English and formats other than plain text. See the new 'errorformat',> * action="" no longer returns a "messageHtml" property on errors. 'errorlang', and 'errorsuselocal' parameters to the 'main' module.
[1]: https://gerrit.wikimedia.org/r/#/c/321406/Use errorformat=html if you're wanting HTML formatting of messages.
> * action="" now reports optional stash failures as an array under key 'stasherrors' rather than a 'stashfailed' text string.
> * action="" reports 'errors' and 'warnings' instead of a single 'error'
>
> This same change brings the ability to request errors and warnings in languages other than English and formats other than plain text. [2]: https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?tag=MediaWiki-APISee the new 'errorformat', 'errorlang', and 'errorsuselocal' parameters to the 'main' module.
(from https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2016-December/000121.html )
> With the merge of Gerrit change 321406,[1] come some breaking changes to the formatting of errors and warnings from some modules. These changes should be on Beta Labs shortly, and should be deployed to WMF wikis with 1.29.0-wmf.6.
Error codes returned by some modules have changed. Notably, codes from query submodules will no longer include the module prefix, e.g.[[https://gerrit.wikimedia.org/r/#/c/321406/|321406]], if you supply a bad continuation parameter for prop=revisions it will reportcome some breaking changes to the formatting of error code 'badcontinue' instead of 'rvbadcontinue's and warnings from some modules. Other codes may have changed as wellThese changes should be on Beta Labs shortly, e.g. for list=allpages the error for attempting to use redirects=1 in generator mode is now 'invalidparammix' instead of 'params'and should be deployed to WMF wikis with 1.29.0-wmf.6.
If you're attempting to parse the human-readable 'info' text of errors,>
> * Error codes returned by some modules have changed. Notably, codes from query submodules will no longer include the module prefix, e.g. that text may have changedif you supply a bad continuation parameter for prop=revisions it will report error code 'badcontinue' instead of 'rvbadcontinue'. Use cases should be submitted in Phabricator[2] as feature requests to include the needed data in a machine-readable format alongside the error message.
action="" may return a "Warnings" status,Other codes may have changed as well, e.g. and now returns 'warnings' and 'errors' subelements (as applicable)for list=allpages the error for attempting to use redirects=1 in generator mode is now 'invalidparammix' instead of 'message'params'.
action="" returns an 'errors' subelement rather than 'errormessage'> * If you're attempting to parse the human-readable 'info' text of errors, that text may have changed. Use cases should be submitted in [[https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?tag=MediaWiki-API|Phabricator]] as feature requests to include the needed data in a machine-readable format alongside the error message.
action="" now reports errors when moving the talk page as an array under key 'talkmove-errors', rather than using 'talkmove-error-code' and 'talkmove-error-info'.> * action="" may return a "Warnings" status, The format for subpage move and now returns 'warnings' and 'errors has also changeds' subelements (as applicable) instead of 'message'.
action="" no longer returns a "messageHtml" property on errors. Use errorformat=html if you're wanting HTML formatting of messages> * action="" returns an 'errors' subelement rather than 'errormessage'.
> * action="" style="padding: 0 2px; color: #333333; background: #f8cbcb;">uploadmove now reports optional stash failureserrors when moving the talk page as an array under key 'stasherrors' rather than a 'stashfailed' text stringtalkmove-errors', rather than using 'talkmove-error-code' and 'talkmove-error-info'. The format for subpage move errors has also changed.
action="" reports 'errors' and 'warnings' instead of a single 'error'
This same change brings the ability to request errors and warnings in languages other than English and formats other than plain text. See the new 'errorformat',> * action="" no longer returns a "messageHtml" property on errors. 'errorlang', and 'errorsuselocal' parameters to the 'main' module.
[1]: https://gerrit.wikimedia.org/r/#/c/321406/Use errorformat=html if you're wanting HTML formatting of messages.
> * action="" now reports optional stash failures as an array under key 'stasherrors' rather than a 'stashfailed' text string.
> * action="" reports 'errors' and 'warnings' instead of a single 'error'
>
> This same change brings the ability to request errors and warnings in languages other than English and formats other than plain text. [2]: https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?tag=MediaWiki-APISee the new 'errorformat', 'errorlang', and 'errorsuselocal' parameters to the 'main' module.
(from https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2016-December/000121.html )
TASK DETAIL
EMAIL PREFERENCES
To: zhuyifei1999
Cc: Magul, Lokal_Profil, jayvdb, Xqt, Aklapper, Multichill, Anomie, pywikibot-bugs-list, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Dalba, Masti, Alchimista, Rxy
Cc: Magul, Lokal_Profil, jayvdb, Xqt, Aklapper, Multichill, Anomie, pywikibot-bugs-list, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
