Move submission -> node relationship from 'entity_id' to 'nid' key.

Created on 20 August 2018, over 6 years ago
Updated 10 August 2023, over 1 year ago

A webform submission may be submitted to different entity types. Currently we only support adding a relationship from submission to the node where it was submitted to (no other entity types are support for such relationship).

This relationship resides within 'entity_id' key in the views data. Since 'entity_id' can represent literally any kind of entity type, that's a too general key for such relationship. It should be moved to its own dedicated 'nid' or 'node' key. We also need a hook update to update the relationship data in all the existing views.

Along the way, since messing with these relationships and granting a dedicated key for nodes, it might be worthwhile to exlore the option of adding relationship to any content based entity type.

πŸ› Bug report
Status

Postponed: needs info

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine bucefal91

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