Add applicationId to syncableEntity and fix syncApp deletion (#15170)

## Context
- All flatEntity should extend SyncableEntity
- SyncableEntity should now have applicationId and application relation
- Fix syncApp deletion, should now properly use migration v2 to delete
syncable entities
This commit is contained in:
Weiko
2025-10-17 19:23:00 +02:00
committed by GitHub
parent 84e7fabaab
commit cceeb6ed4d
79 changed files with 734 additions and 271 deletions
@@ -20,9 +20,10 @@ export const fromCreateViewInputToFlatViewToCreate = ({
);
const createdAt = new Date();
const viewId = createViewInput.id ?? v4();
return {
id: createViewInput.id ?? v4(),
id: viewId,
objectMetadataId,
workspaceId,
name: createViewInput.name,
@@ -42,9 +43,10 @@ export const fromCreateViewInputToFlatViewToCreate = ({
openRecordIn: createViewInput.openRecordIn ?? ViewOpenRecordIn.SIDE_PANEL,
position: createViewInput.position ?? 0,
type: createViewInput.type ?? ViewType.TABLE,
universalIdentifier: v4(),
universalIdentifier: createViewInput.universalIdentifier ?? viewId,
viewFieldIds: [],
viewFilterIds: [],
viewGroupIds: [],
applicationId: createViewInput.applicationId ?? null,
};
};