1541 extensibility twenty cli use workspace migration v2 to synchronize application objects fields views (#14706)

- synchronize objects


https://github.com/user-attachments/assets/257317bc-2881-4b98-a3d4-6ae52bd72aa0
This commit is contained in:
martmull
2025-09-25 11:22:11 +02:00
committed by GitHub
parent 71216b4db8
commit edb331d68b
34 changed files with 596 additions and 683 deletions
@@ -56,6 +56,12 @@ export class CreateObjectInput {
@HideField()
workspaceId: string;
@HideField()
applicationId?: string;
@HideField()
standardId?: string;
@IsBoolean()
@IsOptional()
@Field({ nullable: true })
@@ -171,9 +171,11 @@ export class ObjectMetadataServiceV2 {
async deleteOne({
deleteObjectInput,
workspaceId,
isSystemBuild = false,
}: {
deleteObjectInput: DeleteOneObjectInput;
workspaceId: string;
isSystemBuild?: boolean;
}): Promise<ObjectMetadataDTO> {
const {
flatObjectMetadataMaps: existingFlatObjectMetadataMaps,
@@ -253,7 +255,7 @@ export class ObjectMetadataServiceV2 {
},
buildOptions: {
inferDeletionFromMissingEntities: true,
isSystemBuild: false,
isSystemBuild,
},
workspaceId,
},
@@ -34,6 +34,9 @@ export class ObjectMetadataEntity implements Required<ObjectMetadataEntity> {
@Column({ nullable: true, type: 'uuid' })
standardId: string | null;
@Column({ nullable: true, type: 'uuid' })
applicationId: string | null;
@Column({ nullable: false, type: 'uuid' })
dataSourceId: string;
@@ -115,6 +115,6 @@ import { WorkspaceMigrationV2Module } from 'src/engine/workspace-manager/workspa
ObjectMetadataResolver,
BeforeUpdateOneObject,
],
exports: [ObjectMetadataService],
exports: [ObjectMetadataService, ObjectMetadataServiceV2],
})
export class ObjectMetadataModule {}