XZise created this task. XZise added subscribers: XZise, jayvdb. XZise added a project: pywikibot-core. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION There are the actions [[https://en.wikipedia.org/w/api.php?action=help&modules=query+tokens%7C%6...]] and [[https://en.wikipedia.org/w/api.php?action=help&modules=tokens%7C%60token...]] but it is impossible to differ between them using the `ParamInfo` class as it automatically chooses the query module (if there exist one).
This makes it hard to implement T85725 using this class as sometimes the query module and sometimes the action module is needed.
```
'tokens' in pywikibot.Site('en', 'wikipedia')._paraminfo._query_modules
True
'tokens' in pywikibot.Site('en', 'wikipedia')._paraminfo._action_modules
True
pywikibot.Site('en', 'wikipedia')._paraminfo._query_modules & pywikibot.Site('en', 'wikipedia')._paraminfo._action_modules
frozenset({'tokens'}) ```
I think we should do it similar to how the API does it and `the_site._paraminfo['query+tokens']` should be given explicitly, although for backwards compatibility we probably need `the_site._paraminfo['action+tokens']` because we currently return the query module.
TASK DETAIL https://phabricator.wikimedia.org/T92626
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: jayvdb, Aklapper, XZise, pywikipedia-bugs
XZise claimed this task.
TASK DETAIL https://phabricator.wikimedia.org/T92626
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: jayvdb, Aklapper, XZise, pywikipedia-bugs
gerritbot added a subscriber: gerritbot. gerritbot added a comment.
Change 196642 had a related patch set uploaded (by XZise): [FIX] ParamInfo: Support differing between modules
https://gerrit.wikimedia.org/r/196642
TASK DETAIL https://phabricator.wikimedia.org/T92626
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise, gerritbot Cc: gerritbot, jayvdb, Aklapper, XZise, pywikipedia-bugs
gerritbot added a project: Patch-For-Review.
TASK DETAIL https://phabricator.wikimedia.org/T92626
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise, gerritbot Cc: gerritbot, jayvdb, Aklapper, XZise, pywikipedia-bugs
gerritbot added a comment.
Change 196642 merged by jenkins-bot: ParamInfo sub-module support
https://gerrit.wikimedia.org/r/196642
TASK DETAIL https://phabricator.wikimedia.org/T92626
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise, gerritbot Cc: gerritbot, jayvdb, Aklapper, XZise, pywikipedia-bugs
jayvdb closed this task as "Resolved". jayvdb added a comment.
There is still further improvements necessary, but this specific problem has been resolved.
TASK DETAIL https://phabricator.wikimedia.org/T92626
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise, jayvdb Cc: gerritbot, jayvdb, Aklapper, XZise, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org