Add ability to auto include default includes of related entities

Created on 7 July 2023, almost 2 years ago
Updated 3 April 2024, about 1 year ago

Problem/Motivation

I need to auto-include the default includes of all related entity types when including a relationship field.

For example, I have a node with a relationship field "field_taxonomy_terms", that links to terms from different vocabularies, and each vocabulary has different relationship fields, listed in their own "Default include list".

So, to not manually aggregate (and resync on changes) all that lists for each vocabulary into the "Default include list" for the node type, I want that the module automatically gets the list from related entities.

Proposed resolution

Use a keyword "_default_include" as the indicator that this relationship field needs to expose its own "Default include list".

So, in my case, it should look like this:

field_taxonomy_terms
field_taxonomy_terms._default_include

And this should make available necessary relationships of relationships available in the main JsonAPI response.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Needs work

Version

3.0

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

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

Comments & Activities

Production build 0.71.5 2024