ObjectMetadataServiceV2.deleteOne (#13871)
# Introduction - Implementing the delete one for the new object metadata service v2. - Handling relation fields and fields in the first place to finally remove the object - puting back updatedAt and createdAt in flat metadatas - duplicate criteria addition for flat object - removing datasource id from object metadata dto
This commit is contained in:
+242
-135
@@ -16,6 +16,7 @@ exports[`Workspace migration builder field actions test suite It should build an
|
||||
[
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "default flat field metadata description",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -39,6 +40,7 @@ exports[`Workspace migration builder field actions test suite It should build an
|
||||
"standardOverrides": null,
|
||||
"type": "TEXT",
|
||||
"uniqueIdentifier": "field-metadata-unique-identifier-1",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
@@ -50,9 +52,11 @@ exports[`Workspace migration builder field actions test suite It should build an
|
||||
[
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "default flat field metadata description",
|
||||
"flatRelationTargetFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "default flat field metadata description",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -76,10 +80,13 @@ exports[`Workspace migration builder field actions test suite It should build an
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "field-metadata-unique-identifier-2",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"flatRelationTargetObjectMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"description": "default flat object metadata description",
|
||||
"duplicateCriteria": null,
|
||||
"flatFieldMetadatas": [],
|
||||
"flatIndexMetadatas": [],
|
||||
"icon": "icon",
|
||||
@@ -102,6 +109,7 @@ exports[`Workspace migration builder field actions test suite It should build an
|
||||
"standardOverrides": null,
|
||||
"targetTableName": "",
|
||||
"uniqueIdentifier": "object-metadata-unique-identifier-2",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"icon": "icon",
|
||||
@@ -123,6 +131,7 @@ exports[`Workspace migration builder field actions test suite It should build an
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "field-metadata-unique-identifier-1",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
@@ -253,6 +262,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"createFieldActions": [
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": "uuid",
|
||||
"description": "Id",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -276,12 +286,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "UUID",
|
||||
"uniqueIdentifier": "20202020-eda0-4cee-9577-3eb357e3c22b",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": "'Untitled'",
|
||||
"description": "Name",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -305,12 +317,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "TEXT",
|
||||
"uniqueIdentifier": "20202020-ba07-4ffd-ba63-009491f5749c",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": "now",
|
||||
"description": "Creation date",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -334,12 +348,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "DATE_TIME",
|
||||
"uniqueIdentifier": "20202020-66ac-4502-9975-e4d959c50311",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": "now",
|
||||
"description": "Last time the record was changed",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -363,12 +379,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "DATE_TIME",
|
||||
"uniqueIdentifier": "20202020-d767-4622-bdcf-d8a084834d86",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "Deletion date",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -392,12 +410,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "DATE_TIME",
|
||||
"uniqueIdentifier": "20202020-b9a7-48d8-8387-b9a3090a50ec",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": {
|
||||
"name": "''",
|
||||
"source": "'MANUAL'",
|
||||
@@ -424,12 +444,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "ACTOR",
|
||||
"uniqueIdentifier": "20202020-be0e-4971-865b-32ca87cbb315",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": 0,
|
||||
"description": "Position",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -453,17 +475,22 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "POSITION",
|
||||
"uniqueIdentifier": "20202020-c2bd-4e16-bb9a-c8b0411bf49d",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "TimelineActivities tied to the Rocket",
|
||||
"flatRelationTargetFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "TimelineActivities Rocket",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
"icon": "IconBuildingSkyscraper",
|
||||
"id": Any<String>,
|
||||
"isActive": true,
|
||||
@@ -487,6 +514,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-0be6-444e-88f0-12e0c64ac27d",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
@@ -511,17 +539,22 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-f1ef-4ba4-8f33-1a4577afa477",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "Favorites tied to the Rocket",
|
||||
"flatRelationTargetFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "Favorites Rocket",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
"icon": "IconBuildingSkyscraper",
|
||||
"id": Any<String>,
|
||||
"isActive": true,
|
||||
@@ -545,6 +578,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-78f7-4d7d-86e9-7562ced0b381",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
@@ -569,17 +603,22 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-a4a7-4686-b296-1c6c3482ee21",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "Attachments tied to the Rocket",
|
||||
"flatRelationTargetFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "Attachments Rocket",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
"icon": "IconBuildingSkyscraper",
|
||||
"id": Any<String>,
|
||||
"isActive": true,
|
||||
@@ -603,6 +642,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-ca2d-47c0-8253-9d0b662fb01a",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
@@ -627,17 +667,22 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-8d59-46ca-b7b2-73d167712134",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "NoteTargets tied to the Rocket",
|
||||
"flatRelationTargetFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "NoteTargets Rocket",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
"icon": "IconBuildingSkyscraper",
|
||||
"id": Any<String>,
|
||||
"isActive": true,
|
||||
@@ -661,6 +706,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-52b6-4d5e-8f21-ed8b7c09c4a9",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
@@ -685,17 +731,22 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-01fd-4f37-99dc-9427a444018a",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "TaskTargets tied to the Rocket",
|
||||
"flatRelationTargetFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "TaskTargets Rocket",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
"icon": "IconBuildingSkyscraper",
|
||||
"id": Any<String>,
|
||||
"isActive": true,
|
||||
@@ -719,6 +770,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-b98f-473d-85fb-8cebc40b9a50",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
@@ -743,12 +795,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-0860-4566-b865-bff3c626c303",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "Field used for full-text search",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -772,13 +826,16 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "TS_VECTOR",
|
||||
"uniqueIdentifier": "70e56537-18ef-4811-b1c7-0a444006b815",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
],
|
||||
"flatObjectMetadataWithoutFields": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"description": "A rocket",
|
||||
"duplicateCriteria": null,
|
||||
"icon": "IconRocket",
|
||||
"id": Any<String>,
|
||||
"imageIdentifierFieldMetadataId": null,
|
||||
@@ -799,6 +856,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"targetTableName": "DEPRECATED",
|
||||
"uniqueIdentifier": "d78ec657-74a4-4652-a350-1f44ff62970a",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_object",
|
||||
@@ -812,6 +870,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"createFieldActions": [
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": "uuid",
|
||||
"description": "Id",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -835,12 +894,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "UUID",
|
||||
"uniqueIdentifier": "20202020-eda0-4cee-9577-3eb357e3c22b",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": "'Untitled'",
|
||||
"description": "Name",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -864,12 +925,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "TEXT",
|
||||
"uniqueIdentifier": "20202020-ba07-4ffd-ba63-009491f5749c",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": "now",
|
||||
"description": "Creation date",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -893,12 +956,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "DATE_TIME",
|
||||
"uniqueIdentifier": "20202020-66ac-4502-9975-e4d959c50311",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": "now",
|
||||
"description": "Last time the record was changed",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -922,12 +987,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "DATE_TIME",
|
||||
"uniqueIdentifier": "20202020-d767-4622-bdcf-d8a084834d86",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "Deletion date",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -951,12 +1018,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "DATE_TIME",
|
||||
"uniqueIdentifier": "20202020-b9a7-48d8-8387-b9a3090a50ec",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": {
|
||||
"name": "''",
|
||||
"source": "'MANUAL'",
|
||||
@@ -983,12 +1052,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "ACTOR",
|
||||
"uniqueIdentifier": "20202020-be0e-4971-865b-32ca87cbb315",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": 0,
|
||||
"description": "Position",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -1012,17 +1083,22 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "POSITION",
|
||||
"uniqueIdentifier": "20202020-c2bd-4e16-bb9a-c8b0411bf49d",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "TimelineActivities tied to the Rocket",
|
||||
"flatRelationTargetFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "TimelineActivities Rocket",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
"icon": "IconBuildingSkyscraper",
|
||||
"id": Any<String>,
|
||||
"isActive": true,
|
||||
@@ -1046,6 +1122,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-0be6-444e-88f0-12e0c64ac27d",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
@@ -1070,17 +1147,22 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-f1ef-4ba4-8f33-1a4577afa477",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "Favorites tied to the Rocket",
|
||||
"flatRelationTargetFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "Favorites Rocket",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
"icon": "IconBuildingSkyscraper",
|
||||
"id": Any<String>,
|
||||
"isActive": true,
|
||||
@@ -1104,6 +1186,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-78f7-4d7d-86e9-7562ced0b381",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
@@ -1128,17 +1211,22 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-a4a7-4686-b296-1c6c3482ee21",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "Attachments tied to the Rocket",
|
||||
"flatRelationTargetFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "Attachments Rocket",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
"icon": "IconBuildingSkyscraper",
|
||||
"id": Any<String>,
|
||||
"isActive": true,
|
||||
@@ -1162,6 +1250,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-ca2d-47c0-8253-9d0b662fb01a",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
@@ -1186,17 +1275,22 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-8d59-46ca-b7b2-73d167712134",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "NoteTargets tied to the Rocket",
|
||||
"flatRelationTargetFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "NoteTargets Rocket",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
"icon": "IconBuildingSkyscraper",
|
||||
"id": Any<String>,
|
||||
"isActive": true,
|
||||
@@ -1220,6 +1314,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-52b6-4d5e-8f21-ed8b7c09c4a9",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
@@ -1244,17 +1339,22 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-01fd-4f37-99dc-9427a444018a",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "TaskTargets tied to the Rocket",
|
||||
"flatRelationTargetFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "TaskTargets Rocket",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
"icon": "IconBuildingSkyscraper",
|
||||
"id": Any<String>,
|
||||
"isActive": true,
|
||||
@@ -1278,6 +1378,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-b98f-473d-85fb-8cebc40b9a50",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"flatRelationTargetObjectMetadata": null,
|
||||
@@ -1302,12 +1403,14 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"uniqueIdentifier": "20202020-0860-4566-b865-bff3c626c303",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
{
|
||||
"flatFieldMetadata": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"defaultValue": null,
|
||||
"description": "Field used for full-text search",
|
||||
"flatRelationTargetFieldMetadata": null,
|
||||
@@ -1331,13 +1434,16 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"type": "TS_VECTOR",
|
||||
"uniqueIdentifier": "70e56537-18ef-4811-b1c7-0a444006b815",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_field",
|
||||
},
|
||||
],
|
||||
"flatObjectMetadataWithoutFields": {
|
||||
"createdAt": Any<ClockDate>,
|
||||
"description": "A rocket",
|
||||
"duplicateCriteria": null,
|
||||
"icon": "IconRocket",
|
||||
"id": Any<String>,
|
||||
"imageIdentifierFieldMetadataId": null,
|
||||
@@ -1358,6 +1464,7 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
"standardOverrides": null,
|
||||
"targetTableName": "DEPRECATED",
|
||||
"uniqueIdentifier": "d78ec657-74a4-4652-a350-1f44ff62970a",
|
||||
"updatedAt": Any<ClockDate>,
|
||||
"workspaceId": Any<String>,
|
||||
},
|
||||
"type": "create_object",
|
||||
@@ -1384,145 +1491,145 @@ exports[`Workspace migration builder object actions test suite It should build a
|
||||
|
||||
exports[`Workspace migration builder object actions test suite It should build a delete_object action 1`] = `
|
||||
[
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_object",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
{
|
||||
"fieldMetadataId": Any<String>,
|
||||
"objectMetadataId": Any<String>,
|
||||
"type": "delete_field",
|
||||
},
|
||||
]
|
||||
`;
|
||||
|
||||
|
||||
+1
-1
@@ -93,8 +93,8 @@ export class WorkspaceMigrationBuilderV2Service {
|
||||
return {
|
||||
workspaceId,
|
||||
actions: [
|
||||
...objectWorkspaceMigrationActions,
|
||||
...deletedObjectWorkspaceMigrationDeleteFieldActions,
|
||||
...objectWorkspaceMigrationActions,
|
||||
...createdObjectMetadataCreateIndexActions,
|
||||
...fieldWorkspaceMigrationActions,
|
||||
...indexWorkspaceMigrationActions,
|
||||
|
||||
Reference in New Issue
Block a user