Provide an easier way for developers to identify entity/field definition mismatches

Created on 30 April 2020, over 4 years ago
Updated 13 September 2023, about 1 year ago

Problem/Motivation

Sometimes when entity/field definition mismatches crop up it's not very obvious what the mismatch actually is. The status report will show you which field is mismatched, but not exactly which properties are causing the mismatch.

This can easily lead to hours (from personal experience) of time debugging into EntityDefinitionUpdateManager trying to figure out exactly what is different from the installed vs the actual definitions.

Proposed resolution

Provide a command/UI that diffs the current and installed schema and shows you were the mismatch is.

For example this could leverage something similar to SqlContentEntityStorageSchema::requiresFieldStorageSchemaChanges but instead of a straight comparison, return the diff of each of the definitions and provide some nice output of the difference.

This would speed up resolving these types of issues, especially now that entity updates aren't done automatically :)

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
EntityΒ  β†’

Last updated about 7 hours ago

Created by

πŸ‡¦πŸ‡ΊAustralia acbramley

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