In T403748 I investigated what needed to be done to replace mwbot in core. Mwbot is an unmainteaned npm library we use to talk to the MediaWiki API. It hasn't been updated in a long while and the error handling do not log what actually goes wrong so it's been hard to understand the root cause when something goes wrong.
In core we use the mwbot functionality:
- mwbot.read
- mwbot.edit
- mwbot.request
- mwbot.delete
- mwbot.loginGetEditToken
- mwbot.getCreateaccountToken
The idea is to replace mwbot, make core pass and then release it. We should release it as a new major release because extension and skins need to take caution when they do the update .
AC:
- Aim to keep the API so that extensions that updates will automatically use the new functionality
- Make sure the current tests in core works
- Make sure the changelog is updated to extension/skin users know how to update it. Maybe we need some extra documentation