#111653Resolve the field configuration of a record in one place for persistence
Description
DataHandler respects the columnsOverrides of a record type in checkValue(), copy, move, localize and delete (#101435), but other persistence code paths still read the base column configuration: undelete, discard, publishing of MM relations, remapping of copied relations, inline localize synchronization, versionizing, the value comparison before writing, the language alignment of inline children, DataMapProcessor, ReferenceIndex and the workspaces DataHandlerHook.
Each fix so far resolves the overrides at its own call site (#95311, #108495), which keeps the gap open everywhere else.
Introduce an internal RecordFieldResolver next to RecordTypeResolver (#111430, #111432) that returns the field definition that applies to a database row: the field of the sub schema of the row’s record type, or the base field if the row has no type or the type does not list the field. All DataHandler code paths use it; DataHandler::resolveFieldAndRespectColumnsOverrides(), resolveFieldConfigurationAndRespectColumnsOverrides() and getTypeSpecificFields() delegate to it.
DataMapProcessor, workspaces and ReferenceIndex follow in a separate step.
Reviews 1
History 01
-
Gerrit Code Review pushed patch set 1 for main to change 98173 status
NewUnder Review 11/28/26, 22:31