Implement more granular exception handling in update entity definitions processing

Created on 9 July 2015, about 10 years ago
Updated 17 September 2025, 19 days ago

Problem/Motivation

The automatic entity schema update system is quite powerful. Simple changes to schemas of entities and fields are handled automatically when database updates are run. This allows new indexes to be added, or old ones to be changed or deleted, etc, all without custom update hooks for each change.

The problem however is that as soon as a single update cannot be processed (any detected schema change to storage for a field with data, for instance), no further automatic updates are processed.

This is problematic in that all of the awesomeness of the system is lost as soon as one change throws an exception.

Proposed resolution

Iterate through each change and catch exceptions, then throw the exception at the end. This will allow non-problematic updates to run, and isolate the failing ones.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

entity system

Created by

πŸ‡ΊπŸ‡ΈUnited States jhedstrom Portland, OR

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

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.

No activities found.

Production build 0.71.5 2024