jayvdb added a comment.
! In T74207#752763, @Ricordisamoa wrote:
Ideally, a persistent cache should be set up to remember the 'paraminfo' data.
For example, the "writerights" property would enable assertion, while "tokentype" would help guessing the required token type automatically.
E.g.: https://www.mediawiki.org/w/api.php?action=paraminfo&modules=thank
We now have a per-site persistent cache - the ParamInfo class, in site._paraminfo.
http://git.wikimedia.org/blob/pywikibot%2Fcore.git/b10b03cf76ca4a4aa35edf677...
As ParamInfo uses Request, a little dancing is needed soas to not cause cyclic recursion during bootstrap. One approach is for Request to hard-code that 'paraminfo' is not a write operation, so it doesnt ask ParamInfo if it is a write operation.
TASK DETAIL https://phabricator.wikimedia.org/T74207
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb Cc: pywikipedia-bugs, Ricordisamoa, jayvdb
pywikipedia-bugs@lists.wikimedia.org