Page MenuHomePhabricator

Don't link deleted items in the UI
Closed, ResolvedPublic

Description

If an item that is referenced in a claim of another item gets deleted, it is still shown as a link in that item. Instead it should be not linked and shown with a hint "deleted item".
This functionality broke (possibly) during the introduction of backend formatters for items.


Version: unspecified
Severity: critical
Whiteboard: u=dev c=backend p=13

Details

Reference
bz61854

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:50 AM
bzimport set Reference to bz61854.
bzimport added a subscriber: Unknown Object (MLST).

This is a backend issue, since the frontend does not do any formatting on its own anymore.

The problem is doing this without asking the database about each link individually. We'll need to refactor EntityIdHtmlLinkFormatter and related classes so they can take information about the existance of an item (and also its link and description) from a service that encapsulates the required batch query logic.

Change 117424 had a related patch set uploaded by Thiemo Mättig (WMDE):
[WIP] Properly red-link deleted properties and items

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

Change 125874 had a related patch set uploaded by Thiemo Mättig (WMDE):
Render links to deleted items in red

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

Change 125874 merged by jenkins-bot:
Render links to deleted items in red

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