Problem/Motivation

Half of what the forks call structure builders is one thing: render a referenced entity as a small card according to that bundle's own structure. Doing it as a shape is what removes the dozens of hand-written card builders and what makes a change to a bundle's teaser reach every place it is embedded.

Proposed resolution

  • A card shape that takes a structure ID in its settings and renders the referenced entity through the same engine that renders a top-level response.
  • Depth limit and cycle protection, driven by the cycles the scanner recorded — a self-referencing bundle must produce a bounded response, not a fatal.
  • Access checking per referenced entity, so an unpublished target does not leak through a card.
  • Cache metadata of every rendered target propagated to the response.
  • Kernel tests including a cycle, an unpublished target and a target of a bundle with no structure.

Remaining tasks

Everything.

Issue fork myrest-3620153

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sergeydruua created an issue. See original summary.

  • sergeydruua committed 2199f4a4 on 1.0.x
    Issue #3620153: Add the card shape, and the engine it renders through
    
sergeydruua’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

sergeydruua’s picture

Status: Fixed » Closed (fixed)