Page MenuHomePhabricator

Sitelink data does not include badges even when available
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue(include links if applicable):

  • Use the Wikibase REST API to get all the sitelink data of an item

What happens?:

  • The badge list is returned as an empty list even when there are badges on the item

What should have happened instead?:

  • The correct list of badges is returned

Software version(skip for WMF-hosted wikis like Wikipedia):

  • Wikidata PROD, Test Wikidata and Wikidata beta

Other information(browser name/version, screenshots, etc.):

Task breakdown notes:

  • useEntityRevisionLookupItemDataRetrieverto get the sitelinks and make it implement SiteLink(s)Retriever

Event Timeline

Change 992901 had a related patch set uploaded (by Muhammad Jaziraly; author: Muhammad Jaziraly):

[mediawiki/extensions/Wikibase@master] REST: Fix the issue of getting empty badges with the sitelink

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

Change 992901mergedby jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Fix the issue of getting empty badges with the sitelink

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

Change 997311 had a related patch set uploaded (by Muhammad Jaziraly; author: Muhammad Jaziraly):

[mediawiki/extensions/Wikibase@master] REST: Check for sitelinks' badges in e2e tests

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

Change 997311mergedby jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Check for sitelinks' badges in e2e tests

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