Migrate all remaining workspace migration create action to universal (#17836)
# Introduction Completely finalize the universal migration at builder and runner levels. Which mean that from now on the builder only compares `universalFlatEntity` and produces universal workspace migration that the runner ingest ## What's done Migrated all create metadata remaining for - agent - skill - commandMenuItem - navigationMenuItem - fieldMetadata - objectMetadata - view - viewField - viewFilter - viewGroup - viewFilterGroup - index - logicFunction - role - roleTarget - pageLayout - pageLayoutTab - pageLayoutWidget - rowLevelPermissionPredicate - rowLevelPermissionPredicateGroup - frontComponent
This commit is contained in:
+52
-26
@@ -41,19 +41,33 @@ import { type FlatRowLevelPermissionPredicateGroupMaps } from 'src/engine/metada
|
||||
import { type FlatRowLevelPermissionPredicateGroup } from 'src/engine/metadata-modules/row-level-permission-predicate/types/flat-row-level-permission-predicate-group.type';
|
||||
import { type FlatRowLevelPermissionPredicateMaps } from 'src/engine/metadata-modules/row-level-permission-predicate/types/flat-row-level-permission-predicate-maps.type';
|
||||
import { type FlatRowLevelPermissionPredicate } from 'src/engine/metadata-modules/row-level-permission-predicate/types/flat-row-level-permission-predicate.type';
|
||||
import { type UniversalFlatAgent } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-agent.type';
|
||||
import { type UniversalFlatCommandMenuItem } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-command-menu-item.type';
|
||||
import { type UniversalFlatEntityFrom } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-entity-from.type';
|
||||
import { type UniversalFlatFrontComponent } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-front-component.type';
|
||||
import { type UniversalFlatIndexMetadata } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-index-metadata.type';
|
||||
import { type UniversalFlatLogicFunction } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-logic-function.type';
|
||||
import { type UniversalFlatNavigationMenuItem } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-navigation-menu-item.type';
|
||||
import { type UniversalFlatObjectMetadata } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-object-metadata.type';
|
||||
import { type UniversalFlatPageLayout } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-page-layout.type';
|
||||
import { type UniversalFlatPageLayoutTab } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-page-layout-tab.type';
|
||||
import { type UniversalFlatPageLayoutWidget } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-page-layout-widget.type';
|
||||
import { type UniversalFlatRole } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-role.type';
|
||||
import { type UniversalFlatRoleTarget } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-role-target.type';
|
||||
import { type UniversalFlatRowLevelPermissionPredicate } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-row-level-permission-predicate.type';
|
||||
import { type UniversalFlatRowLevelPermissionPredicateGroup } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-row-level-permission-predicate-group.type';
|
||||
import { type UniversalFlatSkill } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-skill.type';
|
||||
import { type UniversalFlatViewField } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-view-field.type';
|
||||
import { type UniversalFlatViewFilterGroup } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-view-filter-group.type';
|
||||
import { type UniversalFlatViewFilter } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-view-filter.type';
|
||||
import { type UniversalFlatViewGroup } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-view-group.type';
|
||||
import { type UniversalFlatView } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-view.type';
|
||||
import { type UniversalFlatWebhook } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-webhook.type';
|
||||
import {
|
||||
type FlatCreateAgentAction,
|
||||
type FlatDeleteAgentAction,
|
||||
type FlatUpdateAgentAction,
|
||||
type UniversalCreateAgentAction,
|
||||
type UniversalDeleteAgentAction,
|
||||
type UniversalUpdateAgentAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/agent/types/workspace-migration-agent-action-builder.service';
|
||||
@@ -61,6 +75,7 @@ import {
|
||||
type FlatCreateCommandMenuItemAction,
|
||||
type FlatDeleteCommandMenuItemAction,
|
||||
type FlatUpdateCommandMenuItemAction,
|
||||
type UniversalCreateCommandMenuItemAction,
|
||||
type UniversalDeleteCommandMenuItemAction,
|
||||
type UniversalUpdateCommandMenuItemAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/command-menu-item/types/workspace-migration-command-menu-item-action.type';
|
||||
@@ -76,6 +91,7 @@ import {
|
||||
type FlatCreateFrontComponentAction,
|
||||
type FlatDeleteFrontComponentAction,
|
||||
type FlatUpdateFrontComponentAction,
|
||||
type UniversalCreateFrontComponentAction,
|
||||
type UniversalDeleteFrontComponentAction,
|
||||
type UniversalUpdateFrontComponentAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/front-component/types/workspace-migration-front-component-action.type';
|
||||
@@ -91,6 +107,7 @@ import {
|
||||
type FlatCreateLogicFunctionAction,
|
||||
type FlatDeleteLogicFunctionAction,
|
||||
type FlatUpdateLogicFunctionAction,
|
||||
type UniversalCreateLogicFunctionAction,
|
||||
type UniversalDeleteLogicFunctionAction,
|
||||
type UniversalUpdateLogicFunctionAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/logic-function/types/workspace-migration-logic-function-action.type';
|
||||
@@ -98,6 +115,7 @@ import {
|
||||
type FlatCreateNavigationMenuItemAction,
|
||||
type FlatDeleteNavigationMenuItemAction,
|
||||
type FlatUpdateNavigationMenuItemAction,
|
||||
type UniversalCreateNavigationMenuItemAction,
|
||||
type UniversalDeleteNavigationMenuItemAction,
|
||||
type UniversalUpdateNavigationMenuItemAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/navigation-menu-item/types/workspace-migration-navigation-menu-item-action.type';
|
||||
@@ -113,6 +131,7 @@ import {
|
||||
type FlatCreatePageLayoutTabAction,
|
||||
type FlatDeletePageLayoutTabAction,
|
||||
type FlatUpdatePageLayoutTabAction,
|
||||
type UniversalCreatePageLayoutTabAction,
|
||||
type UniversalDeletePageLayoutTabAction,
|
||||
type UniversalUpdatePageLayoutTabAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/page-layout-tab/types/workspace-migration-page-layout-tab-action.type';
|
||||
@@ -120,6 +139,7 @@ import {
|
||||
type FlatCreatePageLayoutWidgetAction,
|
||||
type FlatDeletePageLayoutWidgetAction,
|
||||
type FlatUpdatePageLayoutWidgetAction,
|
||||
type UniversalCreatePageLayoutWidgetAction,
|
||||
type UniversalDeletePageLayoutWidgetAction,
|
||||
type UniversalUpdatePageLayoutWidgetAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/page-layout-widget/types/workspace-migration-page-layout-widget-action.type';
|
||||
@@ -127,6 +147,7 @@ import {
|
||||
type FlatCreatePageLayoutAction,
|
||||
type FlatDeletePageLayoutAction,
|
||||
type FlatUpdatePageLayoutAction,
|
||||
type UniversalCreatePageLayoutAction,
|
||||
type UniversalDeletePageLayoutAction,
|
||||
type UniversalUpdatePageLayoutAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/page-layout/types/workspace-migration-page-layout-action.type';
|
||||
@@ -134,6 +155,7 @@ import {
|
||||
type FlatCreateRoleTargetAction,
|
||||
type FlatDeleteRoleTargetAction,
|
||||
type FlatUpdateRoleTargetAction,
|
||||
type UniversalCreateRoleTargetAction,
|
||||
type UniversalDeleteRoleTargetAction,
|
||||
type UniversalUpdateRoleTargetAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/role-target/types/workspace-migration-role-target-action.type';
|
||||
@@ -141,6 +163,7 @@ import {
|
||||
type FlatCreateRoleAction,
|
||||
type FlatDeleteRoleAction,
|
||||
type FlatUpdateRoleAction,
|
||||
type UniversalCreateRoleAction,
|
||||
type UniversalDeleteRoleAction,
|
||||
type UniversalUpdateRoleAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/role/types/workspace-migration-role-action.type';
|
||||
@@ -148,6 +171,7 @@ import {
|
||||
type FlatCreateRowLevelPermissionPredicateGroupAction,
|
||||
type FlatDeleteRowLevelPermissionPredicateGroupAction,
|
||||
type FlatUpdateRowLevelPermissionPredicateGroupAction,
|
||||
type UniversalCreateRowLevelPermissionPredicateGroupAction,
|
||||
type UniversalDeleteRowLevelPermissionPredicateGroupAction,
|
||||
type UniversalUpdateRowLevelPermissionPredicateGroupAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/row-level-permission-predicate-group/types/workspace-migration-row-level-permission-predicate-group-action.type';
|
||||
@@ -155,6 +179,7 @@ import {
|
||||
type FlatCreateRowLevelPermissionPredicateAction,
|
||||
type FlatDeleteRowLevelPermissionPredicateAction,
|
||||
type FlatUpdateRowLevelPermissionPredicateAction,
|
||||
type UniversalCreateRowLevelPermissionPredicateAction,
|
||||
type UniversalDeleteRowLevelPermissionPredicateAction,
|
||||
type UniversalUpdateRowLevelPermissionPredicateAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/row-level-permission-predicate/types/workspace-migration-row-level-permission-predicate-action.type';
|
||||
@@ -210,6 +235,7 @@ import {
|
||||
type FlatCreateWebhookAction,
|
||||
type FlatDeleteWebhookAction,
|
||||
type FlatUpdateWebhookAction,
|
||||
type UniversalCreateWebhookAction,
|
||||
type UniversalDeleteWebhookAction,
|
||||
type UniversalUpdateWebhookAction,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/webhook/types/workspace-migration-webhook-action.type';
|
||||
@@ -301,7 +327,7 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
rowLevelPermissionPredicate: {
|
||||
flatEntityMaps: FlatRowLevelPermissionPredicateMaps;
|
||||
universalActions: {
|
||||
create: FlatCreateRowLevelPermissionPredicateAction;
|
||||
create: UniversalCreateRowLevelPermissionPredicateAction;
|
||||
update: UniversalUpdateRowLevelPermissionPredicateAction;
|
||||
delete: UniversalDeleteRowLevelPermissionPredicateAction;
|
||||
};
|
||||
@@ -311,13 +337,13 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeleteRowLevelPermissionPredicateAction;
|
||||
};
|
||||
flatEntity: FlatRowLevelPermissionPredicate;
|
||||
universalFlatEntity: FlatRowLevelPermissionPredicate;
|
||||
universalFlatEntity: UniversalFlatRowLevelPermissionPredicate;
|
||||
entity: MetadataEntity<'rowLevelPermissionPredicate'>;
|
||||
};
|
||||
rowLevelPermissionPredicateGroup: {
|
||||
flatEntityMaps: FlatRowLevelPermissionPredicateGroupMaps;
|
||||
universalActions: {
|
||||
create: FlatCreateRowLevelPermissionPredicateGroupAction;
|
||||
create: UniversalCreateRowLevelPermissionPredicateGroupAction;
|
||||
update: UniversalUpdateRowLevelPermissionPredicateGroupAction;
|
||||
delete: UniversalDeleteRowLevelPermissionPredicateGroupAction;
|
||||
};
|
||||
@@ -327,7 +353,7 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeleteRowLevelPermissionPredicateGroupAction;
|
||||
};
|
||||
flatEntity: FlatRowLevelPermissionPredicateGroup;
|
||||
universalFlatEntity: FlatRowLevelPermissionPredicateGroup;
|
||||
universalFlatEntity: UniversalFlatRowLevelPermissionPredicateGroup;
|
||||
entity: MetadataEntity<'rowLevelPermissionPredicateGroup'>;
|
||||
};
|
||||
viewFilterGroup: {
|
||||
@@ -365,7 +391,7 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
logicFunction: {
|
||||
flatEntityMaps: FlatEntityMaps<FlatLogicFunction>;
|
||||
universalActions: {
|
||||
create: FlatCreateLogicFunctionAction;
|
||||
create: UniversalCreateLogicFunctionAction;
|
||||
update: UniversalUpdateLogicFunctionAction;
|
||||
delete: UniversalDeleteLogicFunctionAction;
|
||||
};
|
||||
@@ -375,7 +401,7 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeleteLogicFunctionAction;
|
||||
};
|
||||
flatEntity: FlatLogicFunction;
|
||||
universalFlatEntity: FlatLogicFunction;
|
||||
universalFlatEntity: UniversalFlatLogicFunction;
|
||||
entity: MetadataEntity<'logicFunction'>;
|
||||
};
|
||||
viewFilter: {
|
||||
@@ -397,7 +423,7 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
role: {
|
||||
flatEntityMaps: FlatEntityMaps<FlatRole>;
|
||||
universalActions: {
|
||||
create: FlatCreateRoleAction;
|
||||
create: UniversalCreateRoleAction;
|
||||
update: UniversalUpdateRoleAction;
|
||||
delete: UniversalDeleteRoleAction;
|
||||
};
|
||||
@@ -407,13 +433,13 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeleteRoleAction;
|
||||
};
|
||||
flatEntity: FlatRole;
|
||||
universalFlatEntity: FlatRole;
|
||||
universalFlatEntity: UniversalFlatRole;
|
||||
entity: MetadataEntity<'role'>;
|
||||
};
|
||||
roleTarget: {
|
||||
flatEntityMaps: FlatRoleTargetMaps;
|
||||
universalActions: {
|
||||
create: FlatCreateRoleTargetAction;
|
||||
create: UniversalCreateRoleTargetAction;
|
||||
update: UniversalUpdateRoleTargetAction;
|
||||
delete: UniversalDeleteRoleTargetAction;
|
||||
};
|
||||
@@ -423,13 +449,13 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeleteRoleTargetAction;
|
||||
};
|
||||
flatEntity: FlatRoleTarget;
|
||||
universalFlatEntity: FlatRoleTarget;
|
||||
universalFlatEntity: UniversalFlatRoleTarget;
|
||||
entity: MetadataEntity<'roleTarget'>;
|
||||
};
|
||||
agent: {
|
||||
flatEntityMaps: FlatAgentMaps;
|
||||
universalActions: {
|
||||
create: FlatCreateAgentAction;
|
||||
create: UniversalCreateAgentAction;
|
||||
update: UniversalUpdateAgentAction;
|
||||
delete: UniversalDeleteAgentAction;
|
||||
};
|
||||
@@ -439,7 +465,7 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeleteAgentAction;
|
||||
};
|
||||
flatEntity: FlatAgent;
|
||||
universalFlatEntity: FlatAgent;
|
||||
universalFlatEntity: UniversalFlatAgent;
|
||||
entity: MetadataEntity<'agent'>;
|
||||
};
|
||||
skill: {
|
||||
@@ -461,7 +487,7 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
commandMenuItem: {
|
||||
flatEntityMaps: FlatCommandMenuItemMaps;
|
||||
universalActions: {
|
||||
create: FlatCreateCommandMenuItemAction;
|
||||
create: UniversalCreateCommandMenuItemAction;
|
||||
update: UniversalUpdateCommandMenuItemAction;
|
||||
delete: UniversalDeleteCommandMenuItemAction;
|
||||
};
|
||||
@@ -471,13 +497,13 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeleteCommandMenuItemAction;
|
||||
};
|
||||
flatEntity: FlatCommandMenuItem;
|
||||
universalFlatEntity: FlatCommandMenuItem;
|
||||
universalFlatEntity: UniversalFlatCommandMenuItem;
|
||||
entity: MetadataEntity<'commandMenuItem'>;
|
||||
};
|
||||
navigationMenuItem: {
|
||||
flatEntityMaps: FlatNavigationMenuItemMaps;
|
||||
universalActions: {
|
||||
create: FlatCreateNavigationMenuItemAction;
|
||||
create: UniversalCreateNavigationMenuItemAction;
|
||||
update: UniversalUpdateNavigationMenuItemAction;
|
||||
delete: UniversalDeleteNavigationMenuItemAction;
|
||||
};
|
||||
@@ -487,13 +513,13 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeleteNavigationMenuItemAction;
|
||||
};
|
||||
flatEntity: FlatNavigationMenuItem;
|
||||
universalFlatEntity: FlatNavigationMenuItem;
|
||||
universalFlatEntity: UniversalFlatNavigationMenuItem;
|
||||
entity: NavigationMenuItemEntity;
|
||||
};
|
||||
pageLayout: {
|
||||
flatEntityMaps: FlatPageLayoutMaps;
|
||||
universalActions: {
|
||||
create: FlatCreatePageLayoutAction;
|
||||
create: UniversalCreatePageLayoutAction;
|
||||
update: UniversalUpdatePageLayoutAction;
|
||||
delete: UniversalDeletePageLayoutAction;
|
||||
};
|
||||
@@ -503,13 +529,13 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeletePageLayoutAction;
|
||||
};
|
||||
flatEntity: FlatPageLayout;
|
||||
universalFlatEntity: FlatPageLayout;
|
||||
universalFlatEntity: UniversalFlatPageLayout;
|
||||
entity: MetadataEntity<'pageLayout'>;
|
||||
};
|
||||
pageLayoutWidget: {
|
||||
flatEntityMaps: FlatPageLayoutWidgetMaps;
|
||||
universalActions: {
|
||||
create: FlatCreatePageLayoutWidgetAction;
|
||||
create: UniversalCreatePageLayoutWidgetAction;
|
||||
update: UniversalUpdatePageLayoutWidgetAction;
|
||||
delete: UniversalDeletePageLayoutWidgetAction;
|
||||
};
|
||||
@@ -519,13 +545,13 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeletePageLayoutWidgetAction;
|
||||
};
|
||||
flatEntity: FlatPageLayoutWidget;
|
||||
universalFlatEntity: FlatPageLayoutWidget;
|
||||
universalFlatEntity: UniversalFlatPageLayoutWidget;
|
||||
entity: MetadataEntity<'pageLayoutWidget'>;
|
||||
};
|
||||
pageLayoutTab: {
|
||||
flatEntityMaps: FlatPageLayoutTabMaps;
|
||||
universalActions: {
|
||||
create: FlatCreatePageLayoutTabAction;
|
||||
create: UniversalCreatePageLayoutTabAction;
|
||||
update: UniversalUpdatePageLayoutTabAction;
|
||||
delete: UniversalDeletePageLayoutTabAction;
|
||||
};
|
||||
@@ -535,13 +561,13 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeletePageLayoutTabAction;
|
||||
};
|
||||
flatEntity: FlatPageLayoutTab;
|
||||
universalFlatEntity: FlatPageLayoutTab;
|
||||
universalFlatEntity: UniversalFlatPageLayoutTab;
|
||||
entity: MetadataEntity<'pageLayoutTab'>;
|
||||
};
|
||||
frontComponent: {
|
||||
flatEntityMaps: FlatFrontComponentMaps;
|
||||
universalActions: {
|
||||
create: FlatCreateFrontComponentAction;
|
||||
create: UniversalCreateFrontComponentAction;
|
||||
update: UniversalUpdateFrontComponentAction;
|
||||
delete: UniversalDeleteFrontComponentAction;
|
||||
};
|
||||
@@ -551,13 +577,13 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeleteFrontComponentAction;
|
||||
};
|
||||
flatEntity: FlatFrontComponent;
|
||||
universalFlatEntity: FlatFrontComponent;
|
||||
universalFlatEntity: UniversalFlatFrontComponent;
|
||||
entity: MetadataEntity<'frontComponent'>;
|
||||
};
|
||||
webhook: {
|
||||
flatEntityMaps: FlatWebhookMaps;
|
||||
universalActions: {
|
||||
create: FlatCreateWebhookAction;
|
||||
create: UniversalCreateWebhookAction;
|
||||
update: UniversalUpdateWebhookAction;
|
||||
delete: UniversalDeleteWebhookAction;
|
||||
};
|
||||
@@ -567,7 +593,7 @@ export type AllFlatEntityTypesByMetadataName = {
|
||||
delete: FlatDeleteWebhookAction;
|
||||
};
|
||||
flatEntity: FlatWebhook;
|
||||
universalFlatEntity: FlatWebhook;
|
||||
universalFlatEntity: UniversalFlatWebhook;
|
||||
entity: MetadataEntity<'webhook'>;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user