Page MenuHomePhabricator

Add API.js usage in mediawiki/extensions/examples to make it easier for users to upgrade
Closed, ResolvedPublic2 Estimated Story Points

Description

We miss out of examples on how to use the MediaWiki API in: https://gerrit.wikimedia.org/g/mediawiki/extensions/examples

If we add a couple of examples there we get:

  1. We can verify that when we release a new wdio-mediawiki release, it really works to upgrade.
  2. We get a change commit showing how to upgrade. That is good to have when we upgrade to 6.0 (removing mwbot).

AC:

  • Add test that uses mwbot directly
  • Add a test that uses the createAccount functionality

These two tests will help users to get ann example on how to upgrade.

This task should be done before we release 6.0 so we can dogfood our own release when upgrading examples.

Details

Related Changes in Gerrit:

Event Timeline

This comment was removed by Peter.

Updated the wrong task.

Peter set the point value for this task to 2.
Peter moved this task from Ready to Refine to dek kvin 15 on the Test Platform board.
Peter edited projects, added Test Platform (dek kvin 15); removed Test Platform.
Peter moved this task from Backlog to In Progress on the Test Platform (dek kvin 15) board.

Change #1196062 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[mediawiki/extensions/examples@master] selenium: Add API test

https://gerrit.wikimedia.org/r/1196062

@Peter can you push the code from the google document to gerrit? I could not find it there.

@Peter can you push the code from the google document to gerrit? I could not find it there.

Never mind, it's already merged.

Change #1196062 merged by jenkins-bot:

[mediawiki/extensions/examples@master] selenium: Add API test

https://gerrit.wikimedia.org/r/1196062