Sub-issue of #18201.
The user merge cannot discover this field from the schema, so it is declared by hand in USER_MERGE_SCALAR_COMPLEMENTS (src/modules/userMerge/userMerge-scalarRules.ts), under the id internal-file-metadata-creator-id.
Current declaration — src/modules/internal/document/document.ts:45
{ name: 'creator_id', label: 'Related creator', type: 'string', format: 'short', mandatoryType: 'internal', editDefault: false, multiple: false, upsert: true, isFilterable: true },
held under the metaData parent, src/modules/internal/document/document.ts:26
{ name: 'metaData', label: 'File metadata', type: 'object', format: 'standard', ... }
What is missing: two things, and both need checking. The child is declared with format: 'short' rather than as a user reference; and the parent is format: 'standard' rather than 'nested', so the discovery does not walk into it. Fixing the child alone may not be enough.
Expected: declare the child as a user reference, i.e. format: 'id' with entityTypes: [ENTITY_TYPE_USER], and make the discovery reach it.
Done when: the declaration is fixed, the matching entry is removed from USER_MERGE_SCALAR_COMPLEMENTS, and tests/01-unit/modules/userMerge/userMerge-schemaDiscovery-test.ts passes.
Sub-issue of #18201.
The user merge cannot discover this field from the schema, so it is declared by hand in
USER_MERGE_SCALAR_COMPLEMENTS(src/modules/userMerge/userMerge-scalarRules.ts), under the idinternal-file-metadata-creator-id.Current declaration —
src/modules/internal/document/document.ts:45held under the
metaDataparent,src/modules/internal/document/document.ts:26What is missing: two things, and both need checking. The child is declared with
format: 'short'rather than as a user reference; and the parent isformat: 'standard'rather than'nested', so the discovery does not walk into it. Fixing the child alone may not be enough.Expected: declare the child as a user reference, i.e.
format: 'id'withentityTypes: [ENTITY_TYPE_USER], and make the discovery reach it.Done when: the declaration is fixed, the matching entry is removed from
USER_MERGE_SCALAR_COMPLEMENTS, andtests/01-unit/modules/userMerge/userMerge-schemaDiscovery-test.tspasses.