Page MenuHomePhabricator

labels are not shown for redirect
Closed, ResolvedPublic

Description

When a statement uses an item that is a redirect as a value the label is not shown in the item view. Instead only the Qid of the redirect is shown.

The code in EntityParserOutputGernerator calls resolveRedirect on EntityInfoBuilder so it should work...

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

Lydia_Pintscher raised the priority of this task from to High.
Lydia_Pintscher updated the task description. (Show Details)

I just tested this locally (on master) and it works flawlessly. Maybe the page in question just needed to be purged?

hoo claimed this task.

Change 372059 had a related patch set uploaded (by Ladsgroup; owner: Amir Sarabadani):
[mediawiki/extensions/Wikibase@master] Move $entityInfoBuilder->removeMissing() to after fetching terms

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

My patch fixes it, I tested it in localhost and works just fine.

Change 375355 had a related patch set uploaded (by WMDE-leszek; owner: WMDE-leszek):
[mediawiki/extensions/Wikibase@master] Add (failing) test for bug not showing labels of redirected entities

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

Change 375379 had a related patch set uploaded (by Thiemo Mättig (WMDE); owner: Thiemo Mättig (WMDE)):
[mediawiki/extensions/Wikibase@master] Remove a few unused snippets from EntityParserOutputGeneratorTest

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

Change 375355 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Add (failing) test for bug not showing labels of redirected entities

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

Change 372059 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Move $entityInfoBuilder->removeMissing() to after fetching terms

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

Change 375379 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Remove a few unused snippets from EntityParserOutputGeneratorTest

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