Improve label handling on usage page

Created on 7 May 2018, almost 7 years ago
Updated 19 February 2025, 3 days ago

Problem/Motivation

In the usage page we show labels of entities that reference other entities.
For this we are special-casing paragraphs because they normally indicate their parent's labels. In some circumstances, paragraphs can return empty labels, and when we encounter that, we are just skipping the row altogether, instead of showing a row with an empty label. ( #2954039: Fix ::label() logic and add a ParagraphInterface::getOrphanStatus() helper β†’ will likely solve the "empty" label in paragraphs, at some point)

We could see how to better generalize this situation. Maybe other entities referencing target entities could also return an empty label, and would also need some sort of fallback.

Proposed resolution

Investigate how we could have a better fallback for source entities that don't have a label, when showing usages on the list usage page.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain marcoscano Barcelona, Spain

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024