Add manifest integration tests (#18203)
- add integration test on sync manifest endpoint - fix invalid standard uuid + migration command
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
export const STANDARD_AGENT = {
|
||||
helper: {
|
||||
universalIdentifier: '20202020-0002-0001-0001-000000000004',
|
||||
universalIdentifier: '20202020-c7ab-4065-b822-0ca1d5de60a9',
|
||||
},
|
||||
} as const satisfies Record<
|
||||
string,
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
export const STANDARD_ROLE = {
|
||||
admin: { universalIdentifier: '20202020-0001-0001-0001-000000000001' },
|
||||
admin: { universalIdentifier: '20202020-02c2-43f2-b94d-cab1f2b532eb' },
|
||||
} as const satisfies Record<string, { universalIdentifier: string }>;
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
import { type MessageDescriptor } from '@lingui/core';
|
||||
import { type AllMetadataName } from 'twenty-shared/metadata';
|
||||
|
||||
import { type MetadataFlatEntity } from 'src/engine/metadata-modules/flat-entity/types/metadata-flat-entity.type';
|
||||
import { type WorkspaceMigrationActionType } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/types/workspace-migration-action-common';
|
||||
import { type MetadataFlatEntity } from 'src/engine/metadata-modules/flat-entity/types/metadata-flat-entity.type';
|
||||
|
||||
export type FlatEntityValidationError<TCode extends string = string> = {
|
||||
code: TCode;
|
||||
@@ -13,9 +13,9 @@ export type FlatEntityValidationError<TCode extends string = string> = {
|
||||
|
||||
export type FailedFlatEntityValidation<
|
||||
TMetadataName extends AllMetadataName,
|
||||
TAcionType extends WorkspaceMigrationActionType,
|
||||
TActionType extends WorkspaceMigrationActionType,
|
||||
> = {
|
||||
type: TAcionType;
|
||||
type: TActionType;
|
||||
metadataName: TMetadataName;
|
||||
errors: FlatEntityValidationError[];
|
||||
flatEntityMinimalInformation: Partial<MetadataFlatEntity<TMetadataName>>;
|
||||
|
||||
Reference in New Issue
Block a user