Update automatic entity label if token value which is not field of current entity is changed

Created on 21 November 2024, about 10 hours ago

Problem/Motivation

Example:

There is a node bundle named article.
Article has an author field, which is related to the user entity.
The user entity has a name field.

In the automatic entity labelling setting, we use the token [node:author:name], which works as intended.
Now let's assume that author has changed their name (on the user entity). The change will not be reflected in the article title until the first time the article is saved.

It would be nice, if user could have an option, that an entity with automatic entity label, where tokens relate on other entity, can be automatically updated if related token value is updated.
It is also important that this feature is optional, because this could potentially lead to performance issues if changing one entity can cause update of 1000+ nodes titles.

Steps to reproduce

Proposed resolution

I have not yet tested or thought of a technical approach to this, but token has cache tags based on related entities. If we could use this (or some other approach with the same effect), we could "invalidate" out-of-date tags and force automatic label to be automatically updated.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

3.3

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024