Entity only tracked once per Node

Created on 16 June 2020, over 4 years ago
Updated 29 April 2024, 8 months ago

I've only tested this with Nodes

Problem/Motivation

The project page says - Plugins track one usage per entity per field.

From what I can see from testing this isn't working like that, it's only tracking one usage per node.

To reproduce:

  1. Attach an Image to the body of a node via the Media Library
  2. Visit the usage tab for the media Entity, it shows the body field correctly
  3. Attach an Image to a Media field of the same node as step 1.
  4. Visit the usage tab for the media Entity, it will now show the Field, but not the body anymore.

Proposed resolution

I think ideally we should make it so that the field list is an comma separated list rather than a single value. That way we still keep one row.

The other option is to reword the statement "Plugins track one usage per entity per field" to be more accurate.

Remaining tasks

  • Decide on an approach
  • Create the patch
  • Add tests
🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇳🇿New Zealand danielveza Brisbane, AU

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

Merge Requests

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