Page MenuHomePhabricator

wbremovequalifiers - error in auto-generated MediaWiki API documentation
Closed, ResolvedPublic

Description

The example request query here seems to have an error:

https://www.wikidata.org/w/api.php?action=help&modules=wbremovequalifiers

In this example: https://www.wikidata.org/w/api.php?action=wbremovequalifiers&claim=Q4115189%24D8404CDA-25E4-4334-AF13-A3290BCD9C0F&references=1eb8793c002b1d9820c833d234a1b54c8e94187e&token=foobar&baserevid=7201010

Acceptance Criteria:

  • references should read qualifiers. As it is now, this will produce a missingparam error.

Event Timeline

Any ideas on steps to reproduce this bug? thank you.

Hello @Diesel_kapasule if you are interested in reproducing this bug locally, make sure you have:

  1. Installed the Wikibase extension in your local MediaWiki development environment (Guide - slightly outadated, but we are working on a new one)
  2. An item with at least one statement (Creating Items, Adding Statements - If you also need to create a property, go to Special:NewProperty and create it the same way as you would an Item)
  3. A qualifier on that statement (Adding Qualifiers)

Once these conditions are met, try to send an API request similar to the one in the ticket description, but to your local MediaWiki instance, to try and remove the qualifier you created.

Change 787516 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] Fix typo in wbremovequalifiers

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

Change 787516 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Fix typo in wbremovequalifiers

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