Add createdBy field on custom object creation (#6529)

In this PR, I'm:
- adding createdBy field (type ACTOR) on custom objects when created
- moving `name` and `position` default column to the set of columns
automatically creation on object creation
- fixing a bug on mutations (update / create), if the targetted object
has a 'data' custom field, it was conflicting with the payload ==> I
feel we need to refactor this part of the code but we can keep this for
a bit later as we plan to move out of pg_graphql

<img width="1198" alt="image"
src="https://github.com/user-attachments/assets/891c4a97-bab1-415c-8551-dabd5996a794">
This commit is contained in:
Charles Bochet
2024-08-04 13:12:24 +02:00
committed by GitHub
parent e2b42ee6c9
commit e787215e15
9 changed files with 66 additions and 46 deletions

View File

@ -90,6 +90,7 @@ export const generateEmptyFieldValue = (
case FieldMetadataType.Actor: {
return {
source: 'MANUAL',
workspaceMemberId: null,
name: '',
};
}