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). One declaration, three entries: the same version mapping is reachable under published_version, draft_version and all_versions.
Current declaration — src/modules/workflow/storage/workflow-definition-entity.ts:10
{ name: 'createdBy', label: 'Created by', type: 'string', format: 'short', mandatoryType: 'no', editDefault: false, multiple: false, upsert: true, isFilterable: false },
What is missing: declared with format: 'short' and, being a nested mapping child, without entityTypes.
Expected: declare it as a user reference, i.e. format: 'id' with entityTypes: [ENTITY_TYPE_USER].
Done when: the declaration is fixed, all three entries are 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). One declaration, three entries: the same version mapping is reachable underpublished_version,draft_versionandall_versions.Current declaration —
src/modules/workflow/storage/workflow-definition-entity.ts:10What is missing: declared with
format: 'short'and, being a nested mapping child, withoutentityTypes.Expected: declare it as a user reference, i.e.
format: 'id'withentityTypes: [ENTITY_TYPE_USER].Done when: the declaration is fixed, all three entries are removed from
USER_MERGE_SCALAR_COMPLEMENTS, andtests/01-unit/modules/userMerge/userMerge-schemaDiscovery-test.tspasses.