During updates, the ignore trash context should be applied by default

Created on 2 November 2023, about 1 year ago
Updated 10 November 2023, about 1 year ago

Problem/Motivation

🐛 Prevent trashed entities from being returned by entity_load Fixed during updates can be problematic. E.g. if I need to alter N entities in a hook_update_N/post_udpdate (or a contrib module does), the trashed entities won't be affected.

This is a case-per-case decision, but I think the safer bet is including trashed entities by default.

Proposed resolution

Per amateescu, we can hook into the update kernel and switch to the 'ignore' trash context during updates by default.

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺

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

Comments & Activities

Production build 0.71.5 2024