Status of block entities should come from parent, just like the entity link does

Created on 22 May 2025, 15 days ago

Problem/Motivation

On the usage report page, block entities and paragraph entities are already treated as special in that their entity labels and links are derived from their parents.

The same should be true for the status column. It doesn't make sense to show the status of a block entity (except maybe if it's a reusable block?), especially when we already change the entity label to the parent. It makes it seem like we're seeing the status for the parent entity, but we're not.

It looks like the Status column does show the parent's status for Paragraphs, but the same wasn't done for blocks.

Steps to reproduce

  1. Ensure Media and Block Content are enabled for target entity types. Then ensure Content (nodes) are enabled for source entity types.
  2. Create block type with a media reference field on it.
  3. Enable layout builder (w/ overrides) on a content type.
  4. Create an unpublished node of that content type and add the image block to it, referencing a media item from the library.
  5. Visit the usage report for the media item and observe that while the Entity column correctly shows the label and link for the node, the status column shows "Published", even though the node is not published. It does this because it's showing the status of the block.

Proposed resolution

When generating the status column text, get parent entity's status if available. This is already done for paragraphs.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bkosborne New Jersey, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024