[BREAKING_CHANGE/GRAPHQL/OBJECT_METADATA_CREATE_ONE] Remove object/fields/view-fields v1 implementation (#15823)
# Introduction Remove the v2 feature flag for view-field field-metadata and object-metadata metadata entities ## Some details - Disabled nestjs-query for object metadata creation and explicitly calling it - removed all v1 integration tests files ## Remarks Not remove v2 referencing in both filenaming right now will handle that globally later ## Breaking change Due to object metadata resolver createOne standardization had to rename the input from `CreateObjectInput` to `CreateOneObjectInput`
This commit is contained in:
+6
-6
@@ -219,7 +219,7 @@ export class ApplicationSyncService {
|
||||
);
|
||||
|
||||
for (const fieldToDelete of fieldsToDelete) {
|
||||
await this.fieldMetadataServiceV2.updateOne({
|
||||
await this.fieldMetadataServiceV2.updateOneField({
|
||||
updateFieldInput: {
|
||||
id: fieldToDelete.id,
|
||||
isActive: false,
|
||||
@@ -256,7 +256,7 @@ export class ApplicationSyncService {
|
||||
isNullable: fieldToSync.isNullable ?? true,
|
||||
};
|
||||
|
||||
await this.fieldMetadataServiceV2.updateOne({
|
||||
await this.fieldMetadataServiceV2.updateOneField({
|
||||
updateFieldInput,
|
||||
workspaceId,
|
||||
});
|
||||
@@ -281,7 +281,7 @@ export class ApplicationSyncService {
|
||||
workspaceId,
|
||||
};
|
||||
|
||||
await this.fieldMetadataServiceV2.createOne({
|
||||
await this.fieldMetadataServiceV2.createOneField({
|
||||
createFieldInput,
|
||||
workspaceId,
|
||||
});
|
||||
@@ -341,7 +341,7 @@ export class ApplicationSyncService {
|
||||
);
|
||||
|
||||
for (const objectToDelete of objectsToDelete) {
|
||||
await this.objectMetadataServiceV2.deleteOne({
|
||||
await this.objectMetadataServiceV2.deleteOneObject({
|
||||
deleteObjectInput: { id: objectToDelete.id },
|
||||
workspaceId,
|
||||
isSystemBuild: true,
|
||||
@@ -372,7 +372,7 @@ export class ApplicationSyncService {
|
||||
},
|
||||
};
|
||||
|
||||
await this.objectMetadataServiceV2.updateOne({
|
||||
await this.objectMetadataServiceV2.updateOneObject({
|
||||
updateObjectInput,
|
||||
workspaceId,
|
||||
});
|
||||
@@ -404,7 +404,7 @@ export class ApplicationSyncService {
|
||||
applicationId,
|
||||
};
|
||||
|
||||
const createdObject = await this.objectMetadataServiceV2.createOne({
|
||||
const createdObject = await this.objectMetadataServiceV2.createOneObject({
|
||||
createObjectInput,
|
||||
workspaceId,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user