Skip to content

The open alternative to Salesforce, designed for AI.

Simplify default Task and Note record pages and add workspace migration (#25177)

Félix Malfaitd3aaf000ab3d
diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutRecordIdentifierBar.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutRecordIdentifierBar.tsx
index f2e07f7ab61..ad6e3201100 100644
--- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutRecordIdentifierBar.tsx
+++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutRecordIdentifierBar.tsx
@@ -18,7 +18,10 @@ const SIDE_TRACK = `min(${PAGE_LAYOUT_LEFT_PANEL_CONTAINER_WIDTH}px, calc(100% /
// Equal side tracks center the tabs independently of the record name. Their
// width stays independent of visible tabs so overflow can recover on resize.
-const StyledBar = styled.div<{ hasPinnedTab: boolean }>`
+const StyledBar = styled.div<{
+ hasPinnedTab: boolean;
+ hasTabList: boolean;
+}>`
align-items: stretch;
background: ${themeCssVariables.background.secondary};
// The bottom line sits inside the box so the tab strip can fill the whole row
@@ -26,10 +29,12 @@ const StyledBar = styled.div<{ hasPinnedTab: boolean }>`
box-shadow: inset 0 -1px 0 ${themeCssVariables.border.color.light};
box-sizing: border-box;
display: grid;
- grid-template-columns: ${({ hasPinnedTab }) =>
+ grid-template-columns: ${({ hasPinnedTab, hasTabList }) =>
hasPinnedTab
? `${PAGE_LAYOUT_LEFT_PANEL_CONTAINER_WIDTH}px minmax(0, 1fr)`
- : `${SIDE_TRACK} minmax(0, 1fr) ${SIDE_TRACK}`};
+ : hasTabList
+ ? `${SIDE_TRACK} minmax(0, 1fr) ${SIDE_TRACK}`
+ : 'minmax(0, 1fr) auto'};
height: ${PAGE_LAYOUT_RECORD_IDENTIFIER_BAR_HEIGHT}px;
width: 100%;
`;
@@ -92,20 +97,19 @@ export const PageLayoutRecordIdentifierBar = ({
const { t } = useLingui();
const { openTabSettings } = useOpenPageLayoutTabSettings();
const hasPinnedTab = isDefined(pinnedTab);
+ const hasTabList = Boolean(tabList);
const createdAt = (
<RecordIdentifierBarCreatedAt objectRecordId={targetRecordIdentifier.id} />
);
return (
- <StyledBar hasPinnedTab={hasPinnedTab}>
+ <StyledBar hasPinnedTab={hasPinnedTab} hasTabList={hasTabList}>
<StyledIdentifierCell hasPinnedTab={hasPinnedTab}>
<RecordIdentifierBarTitle
objectNameSingular={targetRecordIdentifier.targetObjectNameSingular}
objectRecordId={targetRecordIdentifier.id}
/>
- {hasPinnedTab && createdAt}
-
{isPinnedTabEditable && isDefined(pinnedTab) && (
<StyledPinnedTab>
<IconButtonWithTooltip
@@ -121,7 +125,9 @@ export const PageLayoutRecordIdentifierBar = ({
)}
</StyledIdentifierCell>
- <StyledTabsCell>{tabList}</StyledTabsCell>
+ {(hasPinnedTab || hasTabList) && (
+ <StyledTabsCell>{tabList}</StyledTabsCell>
+ )}
{!hasPinnedTab && <StyledCreatedAtCell>{createdAt}</StyledCreatedAtCell>}
</StyledBar>
diff --git a/packages/twenty-front/src/modules/page-layout/components/__tests__/PageLayoutRecordIdentifierBar.test.tsx b/packages/twenty-front/src/modules/page-layout/components/__tests__/PageLayoutRecordIdentifierBar.test.tsx
index 04aa1404ba3..2502fcc996b 100644
--- a/packages/twenty-front/src/modules/page-layout/components/__tests__/PageLayoutRecordIdentifierBar.test.tsx
+++ b/packages/twenty-front/src/modules/page-layout/components/__tests__/PageLayoutRecordIdentifierBar.test.tsx
@@ -28,6 +28,20 @@ jest.mock('@/page-layout/hooks/useOpenPageLayoutTabSettings', () => ({
}),
}));
+jest.mock('twenty-ui/input', () => ({
+ IconButtonWithTooltip: ({
+ ariaLabel,
+ onClick,
+ }: {
+ ariaLabel: string;
+ onClick: () => void;
+ }) => (
+ <button aria-label={ariaLabel} onClick={onClick}>
+ {ariaLabel}
+ </button>
+ ),
+}));
+
jest.mock(
'@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue',
() => ({
@@ -51,7 +65,7 @@ describe('PageLayoutRecordIdentifierBar', () => {
jest.useRealTimers();
});
- it('moves the creation date after the tabs only when no tab is pinned', () => {
+ it('shows the creation date after the tabs only when no tab is pinned', () => {
const { rerender } = render(
<PageLayoutRecordIdentifierBar
targetRecordIdentifier={TARGET_RECORD_IDENTIFIER}
@@ -61,9 +75,7 @@ describe('PageLayoutRecordIdentifierBar', () => {
{ wrapper: Wrapper },
);
- expect(screen.getByText('Google').parentElement).toContainElement(
- screen.getByText('Created 2 days ago'),
- );
+ expect(screen.queryByText('Created 2 days ago')).not.toBeInTheDocument();
expect(screen.getByText('Home')).toBeVisible();
rerender(
@@ -83,7 +95,7 @@ describe('PageLayoutRecordIdentifierBar', () => {
);
});
- it('keeps the pinned tab settings accessible beside the creation date', async () => {
+ it('keeps the pinned tab settings accessible without a creation date', async () => {
const user = userEvent.setup({ advanceTimers: jest.advanceTimersByTime });
const { rerender } = render(
@@ -95,9 +107,7 @@ describe('PageLayoutRecordIdentifierBar', () => {
{ wrapper: Wrapper },
);
- expect(screen.getByText('Google').parentElement).toContainElement(
- screen.getByText('Created 2 days ago'),
- );
+ expect(screen.queryByText('Created 2 days ago')).not.toBeInTheDocument();
expect(screen.queryByText('Tasks')).not.toBeInTheDocument();
@@ -119,9 +129,7 @@ describe('PageLayoutRecordIdentifierBar', () => {
expect(
screen.queryByRole('button', { name: 'Edit pinned tab: Tasks' }),
).not.toBeInTheDocument();
- expect(screen.getByText('Google').parentElement).toContainElement(
- screen.getByText('Created 2 days ago'),
- );
+ expect(screen.queryByText('Created 2 days ago')).not.toBeInTheDocument();
});
it('does not show pinned tab settings outside edit mode', () => {
@@ -165,6 +173,22 @@ describe('PageLayoutRecordIdentifierBar', () => {
expect(screen.getByText('Created 2 days ago')).toBeVisible();
});
+ it('does not render an empty tab cell when the tab list is false', () => {
+ render(
+ <PageLayoutRecordIdentifierBar
+ targetRecordIdentifier={TARGET_RECORD_IDENTIFIER}
+ tabList={false}
+ />,
+ { wrapper: Wrapper },
+ );
+
+ const identifierCell = screen.getByText('Google').parentElement;
+ const bar = identifierCell?.parentElement;
+
+ expect(bar).toHaveTextContent('GoogleCreated 2 days ago');
+ expect(bar?.children).toHaveLength(2);
+ });
+
it('renders the record header without a creation date', () => {
mockRecordCreatedAt = null;
diff --git a/packages/twenty-front/src/modules/side-panel/pages/search/components/SidePanelSearchRecordPreviewCard.tsx b/packages/twenty-front/src/modules/side-panel/pages/search/components/SidePanelSearchRecordPreviewCard.tsx
index 259cdfe8143..ba690c2c3fe 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/search/components/SidePanelSearchRecordPreviewCard.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/search/components/SidePanelSearchRecordPreviewCard.tsx
@@ -1,11 +1,11 @@
import { allowRequestsToTwentyIconsState } from '@/client-config/states/allowRequestsToTwentyIcons';
+import { SKELETON_LOADER_HEIGHT_SIZES } from '@/activities/components/SkeletonLoader';
import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem';
import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
import { formatFieldMetadataItemAsColumnDefinition } from '@/object-metadata/utils/formatFieldMetadataItemAsColumnDefinition';
import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext';
import { FieldDisplay } from '@/object-record/record-field/ui/components/FieldDisplay';
import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext';
-import { recordStoreFamilySelector } from '@/object-record/record-store/states/selectors/recordStoreFamilySelector';
import { recordStoreIdentifierFamilySelector } from '@/object-record/record-store/states/selectors/recordStoreIdentifierFamilySelector';
import { getRecordFieldInputInstanceId } from '@/object-record/utils/getRecordFieldInputId';
import { FieldWidgetShowMoreButton } from '@/page-layout/widgets/field/components/FieldWidgetShowMoreButton';
@@ -16,19 +16,14 @@ import { useSidePanelSearchRecordPreviewFields } from '@/side-panel/pages/search
import { useSidePanelSearchRecordPreviewRecord } from '@/side-panel/pages/search/hooks/useSidePanelSearchRecordPreviewRecord';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { SKELETON_LOADER_HEIGHT_SIZES } from '@/activities/components/SkeletonLoader';
import { styled } from '@linaria/react';
-import { Trans } from '@lingui/react/macro';
-import { isNonEmptyString } from '@sniptt/guards';
import { useContext, useState } from 'react';
import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';
import { useIcons } from 'twenty-ui/icon';
import { ThemeContext, themeCssVariables } from 'twenty-ui/theme-constants';
+import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';
const SKELETON_HEIGHT = SKELETON_LOADER_HEIGHT_SIZES.standard.s;
-import { dateLocaleState } from '~/localization/states/dateLocaleState';
-import { beautifyPastDateRelativeToNow } from '~/utils/date-utils';
-import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';
// Pinned width so the card keeps its shape across records of different objects
const StyledCard = styled.div`
@@ -143,17 +138,6 @@ export const SidePanelSearchRecordPreviewCard = ({
{ recordId, allowRequestsToTwentyIcons },
);
- const recordCreatedAt = useAtomFamilySelectorValue(
- recordStoreFamilySelector,
- { recordId, fieldName: 'createdAt' },
- ) as string | null;
-
- const { localeCatalog } = useAtomStateValue(dateLocaleState);
-
- const beautifiedCreatedAt = isNonEmptyString(recordCreatedAt)
- ? beautifyPastDateRelativeToNow(recordCreatedAt, localeCatalog)
- : '';
-
// Collapsed shows at most a handful of the view's visible columns; everything
// past that, plus the view's hidden columns, sits behind the expander
const collapsedFields = visibleFields.slice(
@@ -242,15 +226,6 @@ export const SidePanelSearchRecordPreviewCard = ({
{recordIdentifier?.name ?? label}
</StyledTitleText>
}
- label={
- isRecordLoaded ? (
- beautifiedCreatedAt ? (
- <Trans>Created {beautifiedCreatedAt}</Trans>
- ) : undefined
- ) : (
- <Skeleton width={92} height={SKELETON_HEIGHT} />
- )
- }
/>
</StyledHeader>
diff --git a/packages/twenty-front/src/pages/object-record/RecordShowPageHeader.tsx b/packages/twenty-front/src/pages/object-record/RecordShowPageHeader.tsx
index 6eaa9e1664b..470e9f074bb 100644
--- a/packages/twenty-front/src/pages/object-record/RecordShowPageHeader.tsx
+++ b/packages/twenty-front/src/pages/object-record/RecordShowPageHeader.tsx
@@ -1,19 +1,9 @@
import { getObjectMetadataIdentifierFields } from '@/object-metadata/utils/getObjectMetadataIdentifierFields';
import { ObjectRecordShowPageBreadcrumb } from '@/object-record/record-show/components/ObjectRecordShowPageBreadcrumb';
-import { RecordIdentifierBarCreatedAt } from '@/object-record/record-show/components/RecordIdentifierBarCreatedAt';
import { RecordIdentifierBarTitle } from '@/object-record/record-show/components/RecordIdentifierBarTitle';
import { useRecordShowPagePagination } from '@/object-record/record-show/hooks/useRecordShowPagePagination';
import { useWorkspaceSurface } from '@/ui/layout/hooks/useWorkspaceSurface';
import { PageCardHeader } from '@/ui/layout/page/components/PageCardHeader';
-import { styled } from '@linaria/react';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-const StyledPanelRecordInfo = styled.div`
- align-items: center;
- display: flex;
- gap: ${themeCssVariables.spacing[2]};
- min-width: 0;
-`;
type RecordShowPageHeaderProps = {
objectNameSingular: string;
@@ -61,15 +51,12 @@ const RecordShowPagePanelHeader = ({
}: RecordShowPagePanelHeaderProps) => (
<PageCardHeader
title={
- <StyledPanelRecordInfo>
- <RecordIdentifierBarTitle
- objectNameSingular={objectNameSingular}
- objectRecordId={objectRecordId}
- variant="side-panel"
- recordLinkSurface="main"
- />
- <RecordIdentifierBarCreatedAt objectRecordId={objectRecordId} />
- </StyledPanelRecordInfo>
+ <RecordIdentifierBarTitle
+ objectNameSingular={objectNameSingular}
+ objectRecordId={objectRecordId}
+ variant="side-panel"
+ recordLinkSurface="main"
+ />
}
/>
);
diff --git a/packages/twenty-front/src/pages/object-record/__tests__/RecordShowPageHeader.surface.test.tsx b/packages/twenty-front/src/pages/object-record/__tests__/RecordShowPageHeader.surface.test.tsx
index 6a3f27e45f1..f8929b0103c 100644
--- a/packages/twenty-front/src/pages/object-record/__tests__/RecordShowPageHeader.surface.test.tsx
+++ b/packages/twenty-front/src/pages/object-record/__tests__/RecordShowPageHeader.surface.test.tsx
@@ -101,7 +101,9 @@ describe('RecordShowPageHeader workspace surface composition', () => {
'data-record-link-surface',
'main',
);
- expect(screen.getByTestId('panel-record-created-at')).toBeInTheDocument();
+ expect(
+ screen.queryByTestId('panel-record-created-at'),
+ ).not.toBeInTheDocument();
expect(
screen.queryByTestId('main-record-breadcrumb'),
).not.toBeInTheDocument();
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/2-38-upgrade-version-command.module.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/2-38-upgrade-version-command.module.ts
index dd90bfcc626..e9caef1e179 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/2-38-upgrade-version-command.module.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/2-38-upgrade-version-command.module.ts
@@ -14,6 +14,7 @@ import { DropMessageDeliveryStatusCommand } from 'src/database/commands/upgrade-
import { ReownObjectNavigationCommandMenuItemsCommand } from 'src/database/commands/upgrade-version-command/2-38/2-38-workspace-command-1788166853000-reown-object-navigation-command-menu-items.command';
import { ProvisionMissingObjectNavigationCommandMenuItemsCommand } from 'src/database/commands/upgrade-version-command/2-38/2-38-workspace-command-1788181550000-provision-missing-object-navigation-command-menu-items.command';
import { EnableStandardActivityTargetFieldsCommand } from 'src/database/commands/upgrade-version-command/2-38/2-38-workspace-command-1788197000000-enable-standard-activity-target-fields.command';
+import { SimplifyStandardTaskNoteLayoutsCommand } from 'src/database/commands/upgrade-version-command/2-38/2-38-workspace-command-1788299312343-simplify-standard-task-note-layouts.command';
import { ProvisionMissingObjectSystemRelationsCommand } from 'src/database/commands/upgrade-version-command/2-38/2-38-workspace-command-1788266912940-provision-missing-object-system-relations.command';
import { HideAskAiInSidePanelCommand } from 'src/database/commands/upgrade-version-command/2-38/2-38-workspace-command-1788266562942-hide-ask-ai-in-side-panel.command';
import { ApplicationModule } from 'src/engine/core-modules/application/application.module';
@@ -46,6 +47,7 @@ import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspace
ReownObjectNavigationCommandMenuItemsCommand,
ProvisionMissingObjectNavigationCommandMenuItemsCommand,
EnableStandardActivityTargetFieldsCommand,
+ SimplifyStandardTaskNoteLayoutsCommand,
ProvisionMissingObjectSystemRelationsCommand,
HideAskAiInSidePanelCommand,
],
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/2-38-workspace-command-1788299312343-simplify-standard-task-note-layouts.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/2-38-workspace-command-1788299312343-simplify-standard-task-note-layouts.command.ts
new file mode 100644
index 00000000000..5461b222bab
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/2-38-workspace-command-1788299312343-simplify-standard-task-note-layouts.command.ts
@@ -0,0 +1,122 @@
+import { Command } from 'nest-commander';
+
+import { ProvisionedWorkspaceCommandRunner } from 'src/database/commands/command-runners/provisioned-workspace.command-runner';
+import { WorkspaceIteratorService } from 'src/database/commands/command-runners/workspace-iterator.service';
+import { type RunOnWorkspaceArgs } from 'src/database/commands/command-runners/workspace.command-runner';
+import { computeStandardTaskNoteLayoutMigrationOperations } from 'src/database/commands/upgrade-version-command/2-38/utils/compute-standard-task-note-layout-migration-operations.util';
+import { ApplicationService } from 'src/engine/core-modules/application/application.service';
+import { RegisteredWorkspaceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-workspace-command.decorator';
+import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+import { WorkspaceMigrationBuilderException } from 'src/engine/workspace-manager/workspace-migration/exceptions/workspace-migration-builder-exception';
+import { WorkspaceMigrationValidateBuildAndRunService } from 'src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service';
+
+@RegisteredWorkspaceCommand('2.38.0', 1788299312343)
+@Command({
+ name: 'upgrade:2-38:simplify-standard-task-note-layouts',
+ description: 'Simplify uncustomized standard task and note record pages',
+})
+export class SimplifyStandardTaskNoteLayoutsCommand extends ProvisionedWorkspaceCommandRunner {
+ constructor(
+ protected readonly workspaceIteratorService: WorkspaceIteratorService,
+ private readonly applicationService: ApplicationService,
+ private readonly workspaceCacheService: WorkspaceCacheService,
+ private readonly workspaceMigrationValidateBuildAndRunService: WorkspaceMigrationValidateBuildAndRunService,
+ ) {
+ super(workspaceIteratorService);
+ }
+
+ override async runOnWorkspace({
+ workspaceId,
+ options,
+ }: RunOnWorkspaceArgs): Promise<void> {
+ const isDryRun = options.dryRun ?? false;
+
+ const { twentyStandardFlatApplication } =
+ await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(
+ { workspaceId },
+ );
+
+ const flatMaps = await this.workspaceCacheService.getOrRecompute(
+ workspaceId,
+ [
+ 'flatPageLayoutMaps',
+ 'flatPageLayoutTabMaps',
+ 'flatPageLayoutWidgetMaps',
+ 'flatViewMaps',
+ 'flatViewFieldMaps',
+ 'flatViewFieldGroupMaps',
+ ],
+ );
+ const {
+ pageLayoutTabsToDelete,
+ viewFieldsToDelete,
+ viewFieldGroupsToDelete,
+ skippedLayouts,
+ } = computeStandardTaskNoteLayoutMigrationOperations({
+ flatMaps,
+ standardApplicationId: twentyStandardFlatApplication.id,
+ });
+
+ for (const skippedLayout of skippedLayouts) {
+ this.logger.log(
+ `${skippedLayout.label} record page metadata is ${skippedLayout.reason} for workspace ${workspaceId}, skipping`,
+ );
+ }
+
+ const totalOperationCount =
+ pageLayoutTabsToDelete.length +
+ viewFieldsToDelete.length +
+ viewFieldGroupsToDelete.length;
+
+ if (totalOperationCount === 0) {
+ this.logger.log(
+ `Standard task and note record pages already up to date or customized for workspace ${workspaceId}, skipping`,
+ );
+
+ return;
+ }
+
+ this.logger.log(
+ `${isDryRun ? '[DRY RUN] ' : ''}Applying ${totalOperationCount} standard task and note record page operation(s) for workspace ${workspaceId}`,
+ );
+
+ if (isDryRun) {
+ return;
+ }
+
+ const validateAndBuildResult =
+ await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunLegacyWorkspaceMigration(
+ {
+ isSystemBuild: true,
+ applicationUniversalIdentifier:
+ twentyStandardFlatApplication.universalIdentifier,
+ workspaceId,
+ allFlatEntityOperationByMetadataName: {
+ pageLayoutTab: {
+ flatEntityToCreate: [],
+ flatEntityToDelete: pageLayoutTabsToDelete,
+ flatEntityToUpdate: [],
+ },
+ viewField: {
+ flatEntityToCreate: [],
+ flatEntityToDelete: viewFieldsToDelete,
+ flatEntityToUpdate: [],
+ },
+ viewFieldGroup: {
+ flatEntityToCreate: [],
+ flatEntityToDelete: viewFieldGroupsToDelete,
+ flatEntityToUpdate: [],
+ },
+ },
+ },
+ );
+
+ if (validateAndBuildResult.status === 'fail') {
+ throw new WorkspaceMigrationBuilderException(validateAndBuildResult);
+ }
+
+ this.logger.log(
+ `Simplified the standard task and note record pages for workspace ${workspaceId}`,
+ );
+ }
+}
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/__tests__/2-38-workspace-command-1788299312343-simplify-standard-task-note-layouts.command.spec.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/__tests__/2-38-workspace-command-1788299312343-simplify-standard-task-note-layouts.command.spec.ts
new file mode 100644
index 00000000000..ce8304ff7c4
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/__tests__/2-38-workspace-command-1788299312343-simplify-standard-task-note-layouts.command.spec.ts
@@ -0,0 +1,111 @@
+import { type WorkspaceIteratorService } from 'src/database/commands/command-runners/workspace-iterator.service';
+import { SimplifyStandardTaskNoteLayoutsCommand } from 'src/database/commands/upgrade-version-command/2-38/2-38-workspace-command-1788299312343-simplify-standard-task-note-layouts.command';
+import {
+ computeStandardTaskNoteLayoutMigrationOperations,
+ type StandardTaskNoteLayoutMigrationOperations,
+} from 'src/database/commands/upgrade-version-command/2-38/utils/compute-standard-task-note-layout-migration-operations.util';
+import { type ApplicationService } from 'src/engine/core-modules/application/application.service';
+import { type WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+import { WorkspaceMigrationBuilderException } from 'src/engine/workspace-manager/workspace-migration/exceptions/workspace-migration-builder-exception';
+import { type WorkspaceMigrationValidateBuildAndRunService } from 'src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service';
+
+jest.mock(
+ 'src/database/commands/upgrade-version-command/2-38/utils/compute-standard-task-note-layout-migration-operations.util',
+);
+
+const computeOperationsMock =
+ computeStandardTaskNoteLayoutMigrationOperations as jest.Mock;
+
+const WORKSPACE_ID = '20202020-0000-0000-0000-000000000001';
+const STANDARD_APPLICATION = {
+ id: '20202020-0000-0000-0000-0000000000aa',
+ universalIdentifier: '20202020-0000-0000-0000-0000000000bb',
+};
+const MIGRATION_OPERATIONS = {
+ pageLayoutTabsToDelete: [{ universalIdentifier: 'tab' }],
+ skippedLayouts: [],
+ viewFieldGroupsToDelete: [{ universalIdentifier: 'group' }],
+ viewFieldsToDelete: [{ universalIdentifier: 'field' }],
+} as unknown as StandardTaskNoteLayoutMigrationOperations;
+
+describe('SimplifyStandardTaskNoteLayoutsCommand', () => {
+ let command: SimplifyStandardTaskNoteLayoutsCommand;
+ let validateBuildAndRunWorkspaceMigrationMock: jest.Mock;
+
+ beforeEach(() => {
+ jest.clearAllMocks();
+
+ computeOperationsMock.mockReturnValue(MIGRATION_OPERATIONS);
+ validateBuildAndRunWorkspaceMigrationMock = jest
+ .fn()
+ .mockResolvedValue({ status: 'success' });
+
+ command = new SimplifyStandardTaskNoteLayoutsCommand(
+ {} as WorkspaceIteratorService,
+ {
+ findWorkspaceTwentyStandardAndCustomApplicationOrThrow: jest
+ .fn()
+ .mockResolvedValue({
+ twentyStandardFlatApplication: STANDARD_APPLICATION,
+ }),
+ } as unknown as ApplicationService,
+ {
+ getOrRecompute: jest.fn().mockResolvedValue({}),
+ } as unknown as WorkspaceCacheService,
+ {
+ validateBuildAndRunLegacyWorkspaceMigration:
+ validateBuildAndRunWorkspaceMigrationMock,
+ } as unknown as WorkspaceMigrationValidateBuildAndRunService,
+ );
+ });
+
+ const runOnWorkspace = (dryRun = false) =>
+ command.runOnWorkspace({
+ workspaceId: WORKSPACE_ID,
+ options: { dryRun },
+ index: 0,
+ total: 1,
+ });
+
+ it('runs the computed operations through the workspace migration service', async () => {
+ await runOnWorkspace();
+
+ expect(validateBuildAndRunWorkspaceMigrationMock).toHaveBeenCalledWith(
+ expect.objectContaining({
+ allFlatEntityOperationByMetadataName: {
+ pageLayoutTab: {
+ flatEntityToCreate: [],
+ flatEntityToDelete: MIGRATION_OPERATIONS.pageLayoutTabsToDelete,
+ flatEntityToUpdate: [],
+ },
+ viewField: {
+ flatEntityToCreate: [],
+ flatEntityToDelete: MIGRATION_OPERATIONS.viewFieldsToDelete,
+ flatEntityToUpdate: [],
+ },
+ viewFieldGroup: {
+ flatEntityToCreate: [],
+ flatEntityToDelete: MIGRATION_OPERATIONS.viewFieldGroupsToDelete,
+ flatEntityToUpdate: [],
+ },
+ },
+ }),
+ );
+ });
+
+ it('does not write metadata in dry-run mode', async () => {
+ await runOnWorkspace(true);
+
+ expect(validateBuildAndRunWorkspaceMigrationMock).not.toHaveBeenCalled();
+ });
+
+ it('throws a workspace migration builder exception when the migration fails', async () => {
+ validateBuildAndRunWorkspaceMigrationMock.mockResolvedValue({
+ status: 'fail',
+ });
+
+ await expect(runOnWorkspace()).rejects.toBeInstanceOf(
+ WorkspaceMigrationBuilderException,
+ );
+ });
+});
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/constants/standard-task-note-layout-migration-targets.constant.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/constants/standard-task-note-layout-migration-targets.constant.ts
new file mode 100644
index 00000000000..20a505988be
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/constants/standard-task-note-layout-migration-targets.constant.ts
@@ -0,0 +1,185 @@
+import {
+ getSystemViewFieldGroupUniversalIdentifier,
+ getSystemViewFieldUniversalIdentifier,
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+} from 'twenty-shared/application';
+import {
+ STANDARD_OBJECTS,
+ STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS,
+} from 'twenty-shared/metadata';
+
+type StandardPageLayoutIdentifiers = {
+ universalIdentifier: string;
+ tabs: Record<
+ string,
+ {
+ universalIdentifier: string;
+ widgets: Record<string, { universalIdentifier: string }>;
+ }
+ >;
+};
+
+type StandardFieldsViewIdentifiers = {
+ universalIdentifier: string;
+ viewFields: Record<string, { universalIdentifier: string }>;
+ viewFieldGroups: Record<string, { universalIdentifier: string }>;
+};
+
+export type StandardTaskNoteLayoutMigrationTarget = {
+ label: 'Task' | 'Note';
+ pageLayoutUniversalIdentifier: string;
+ fieldsViewUniversalIdentifier: string;
+ preMigrationTabUniversalIdentifiers: readonly string[];
+ postMigrationTabUniversalIdentifiers: readonly string[];
+ preMigrationWidgetUniversalIdentifiers: readonly string[];
+ postMigrationWidgetUniversalIdentifiers: readonly string[];
+ preMigrationViewFieldUniversalIdentifiers: readonly string[];
+ postMigrationViewFieldUniversalIdentifiers: readonly string[];
+ preMigrationViewFieldGroupUniversalIdentifiers: readonly string[];
+ postMigrationViewFieldGroupUniversalIdentifiers: readonly string[];
+ removedTabUniversalIdentifiers: readonly string[];
+ removedViewFieldUniversalIdentifiers: readonly string[];
+ removedViewFieldGroupUniversalIdentifiers: readonly string[];
+};
+
+const getWidgetUniversalIdentifiers = (
+ pageLayoutIdentifiers: StandardPageLayoutIdentifiers,
+ tabUniversalIdentifiers: readonly string[],
+) =>
+ Object.values(pageLayoutIdentifiers.tabs)
+ .filter(({ universalIdentifier }) =>
+ tabUniversalIdentifiers.includes(universalIdentifier),
+ )
+ .flatMap(({ widgets }) =>
+ Object.values(widgets).map(
+ ({ universalIdentifier }) => universalIdentifier,
+ ),
+ );
+
+const getLegacyViewFieldUniversalIdentifiers = ({
+ fieldsViewUniversalIdentifier,
+ removedFieldUniversalIdentifiers,
+}: {
+ fieldsViewUniversalIdentifier: string;
+ removedFieldUniversalIdentifiers: readonly string[];
+}) =>
+ removedFieldUniversalIdentifiers.map((fieldMetadataUniversalIdentifier) =>
+ getSystemViewFieldUniversalIdentifier({
+ fieldMetadataApplicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ fieldMetadataUniversalIdentifier,
+ viewUniversalIdentifier: fieldsViewUniversalIdentifier,
+ }),
+ );
+
+const buildTargetLayout = ({
+ label,
+ pageLayoutIdentifiers,
+ fieldsViewIdentifiers,
+ removedTabUniversalIdentifiers,
+ removedFieldUniversalIdentifiers,
+}: {
+ label: StandardTaskNoteLayoutMigrationTarget['label'];
+ pageLayoutIdentifiers: StandardPageLayoutIdentifiers;
+ fieldsViewIdentifiers: StandardFieldsViewIdentifiers;
+ removedTabUniversalIdentifiers: readonly string[];
+ removedFieldUniversalIdentifiers: readonly string[];
+}): StandardTaskNoteLayoutMigrationTarget => {
+ const preMigrationTabUniversalIdentifiers = Object.values(
+ pageLayoutIdentifiers.tabs,
+ ).map(({ universalIdentifier }) => universalIdentifier);
+ const postMigrationTabUniversalIdentifiers =
+ preMigrationTabUniversalIdentifiers.filter(
+ (universalIdentifier) =>
+ !removedTabUniversalIdentifiers.includes(universalIdentifier),
+ );
+ const postMigrationViewFieldUniversalIdentifiers = Object.values(
+ fieldsViewIdentifiers.viewFields,
+ ).map(({ universalIdentifier }) => universalIdentifier);
+ const removedViewFieldUniversalIdentifiers =
+ getLegacyViewFieldUniversalIdentifiers({
+ fieldsViewUniversalIdentifier: fieldsViewIdentifiers.universalIdentifier,
+ removedFieldUniversalIdentifiers,
+ });
+ const postMigrationViewFieldGroupUniversalIdentifiers = Object.values(
+ fieldsViewIdentifiers.viewFieldGroups,
+ ).map(({ universalIdentifier }) => universalIdentifier);
+ const removedViewFieldGroupUniversalIdentifiers = [
+ getSystemViewFieldGroupUniversalIdentifier({
+ name: 'System',
+ objectMetadataApplicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ viewUniversalIdentifier: fieldsViewIdentifiers.universalIdentifier,
+ }),
+ ];
+
+ return {
+ label,
+ pageLayoutUniversalIdentifier: pageLayoutIdentifiers.universalIdentifier,
+ fieldsViewUniversalIdentifier: fieldsViewIdentifiers.universalIdentifier,
+ preMigrationTabUniversalIdentifiers,
+ postMigrationTabUniversalIdentifiers,
+ preMigrationWidgetUniversalIdentifiers: getWidgetUniversalIdentifiers(
+ pageLayoutIdentifiers,
+ preMigrationTabUniversalIdentifiers,
+ ),
+ postMigrationWidgetUniversalIdentifiers: getWidgetUniversalIdentifiers(
+ pageLayoutIdentifiers,
+ postMigrationTabUniversalIdentifiers,
+ ),
+ preMigrationViewFieldUniversalIdentifiers: [
+ ...postMigrationViewFieldUniversalIdentifiers,
+ ...removedViewFieldUniversalIdentifiers,
+ ],
+ postMigrationViewFieldUniversalIdentifiers,
+ preMigrationViewFieldGroupUniversalIdentifiers: [
+ ...postMigrationViewFieldGroupUniversalIdentifiers,
+ ...removedViewFieldGroupUniversalIdentifiers,
+ ],
+ postMigrationViewFieldGroupUniversalIdentifiers,
+ removedTabUniversalIdentifiers,
+ removedViewFieldUniversalIdentifiers,
+ removedViewFieldGroupUniversalIdentifiers,
+ };
+};
+
+const TASK_LAYOUT_IDENTIFIERS =
+ STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.taskRecordPage;
+const NOTE_LAYOUT_IDENTIFIERS =
+ STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.noteRecordPage;
+
+export const STANDARD_TASK_NOTE_LAYOUT_MIGRATION_TARGETS: readonly StandardTaskNoteLayoutMigrationTarget[] =
+ [
+ buildTargetLayout({
+ label: 'Task',
+ pageLayoutIdentifiers: TASK_LAYOUT_IDENTIFIERS,
+ fieldsViewIdentifiers: STANDARD_OBJECTS.task.views.taskRecordPageFields,
+ removedTabUniversalIdentifiers: [
+ TASK_LAYOUT_IDENTIFIERS.tabs.timeline.universalIdentifier,
+ TASK_LAYOUT_IDENTIFIERS.tabs.files.universalIdentifier,
+ ],
+ removedFieldUniversalIdentifiers: [
+ STANDARD_OBJECTS.task.fields.bodyV2.universalIdentifier,
+ STANDARD_OBJECTS.task.fields.createdAt.universalIdentifier,
+ STANDARD_OBJECTS.task.fields.createdBy.universalIdentifier,
+ STANDARD_OBJECTS.task.fields.updatedAt.universalIdentifier,
+ STANDARD_OBJECTS.task.fields.updatedBy.universalIdentifier,
+ ],
+ }),
+ buildTargetLayout({
+ label: 'Note',
+ pageLayoutIdentifiers: NOTE_LAYOUT_IDENTIFIERS,
+ fieldsViewIdentifiers: STANDARD_OBJECTS.note.views.noteRecordPageFields,
+ removedTabUniversalIdentifiers: [
+ NOTE_LAYOUT_IDENTIFIERS.tabs.timeline.universalIdentifier,
+ NOTE_LAYOUT_IDENTIFIERS.tabs.files.universalIdentifier,
+ ],
+ removedFieldUniversalIdentifiers: [
+ STANDARD_OBJECTS.note.fields.bodyV2.universalIdentifier,
+ STANDARD_OBJECTS.note.fields.createdAt.universalIdentifier,
+ STANDARD_OBJECTS.note.fields.createdBy.universalIdentifier,
+ STANDARD_OBJECTS.note.fields.updatedAt.universalIdentifier,
+ STANDARD_OBJECTS.note.fields.updatedBy.universalIdentifier,
+ ],
+ }),
+ ];
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/utils/__tests__/compute-standard-task-note-layout-migration-operations.util.spec.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/utils/__tests__/compute-standard-task-note-layout-migration-operations.util.spec.ts
new file mode 100644
index 00000000000..eed397c7f6e
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/utils/__tests__/compute-standard-task-note-layout-migration-operations.util.spec.ts
@@ -0,0 +1,255 @@
+import { STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS } from 'twenty-shared/metadata';
+
+import { STANDARD_TASK_NOTE_LAYOUT_MIGRATION_TARGETS } from 'src/database/commands/upgrade-version-command/2-38/constants/standard-task-note-layout-migration-targets.constant';
+import {
+ computeStandardTaskNoteLayoutMigrationOperations,
+ type TaskNoteLayoutMigrationFlatMaps,
+} from 'src/database/commands/upgrade-version-command/2-38/utils/compute-standard-task-note-layout-migration-operations.util';
+
+const STANDARD_APPLICATION_ID = '20202020-0000-0000-0000-0000000000aa';
+const CUSTOM_APPLICATION_ID = '20202020-0000-0000-0000-0000000000bb';
+const CUSTOM_TASK_TAB_UNIVERSAL_IDENTIFIER =
+ '20202020-0000-0000-0000-0000000000cc';
+
+const PAGE_LAYOUT_IDENTIFIERS_BY_LABEL = {
+ Task: STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.taskRecordPage,
+ Note: STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.noteRecordPage,
+};
+
+const buildByUniversalIdentifierMap = <
+ T extends { universalIdentifier: string },
+>(
+ flatEntities: T[],
+) => ({
+ byUniversalIdentifier: Object.fromEntries(
+ flatEntities.map((flatEntity) => [
+ flatEntity.universalIdentifier,
+ flatEntity,
+ ]),
+ ),
+});
+
+const buildStandardFlatEntity = (universalIdentifier: string) => ({
+ applicationId: STANDARD_APPLICATION_ID,
+ isActive: true,
+ overrides: null,
+ universalIdentifier,
+});
+
+const buildFlatMaps = ({
+ state = 'preMigration',
+ hasCustomTaskTab = false,
+ taskFieldsViewOverrides = null,
+ missingTaskChild,
+}: {
+ state?: 'preMigration' | 'postMigration';
+ hasCustomTaskTab?: boolean;
+ taskFieldsViewOverrides?: object | null;
+ missingTaskChild?: 'tab' | 'viewField';
+} = {}): TaskNoteLayoutMigrationFlatMaps => {
+ const pageLayouts: Array<
+ Record<string, unknown> & { universalIdentifier: string }
+ > = [];
+ const pageLayoutTabs: Array<
+ Record<string, unknown> & { universalIdentifier: string }
+ > = [];
+ const pageLayoutWidgets: Array<
+ Record<string, unknown> & { universalIdentifier: string }
+ > = [];
+ const views: Array<
+ Record<string, unknown> & { universalIdentifier: string }
+ > = [];
+ const viewFields: Array<
+ Record<string, unknown> & { universalIdentifier: string }
+ > = [];
+ const viewFieldGroups: Array<
+ Record<string, unknown> & { universalIdentifier: string }
+ > = [];
+
+ for (const targetLayout of STANDARD_TASK_NOTE_LAYOUT_MIGRATION_TARGETS) {
+ const pageLayoutIdentifiers =
+ PAGE_LAYOUT_IDENTIFIERS_BY_LABEL[targetLayout.label];
+ const tabUniversalIdentifiers = [
+ ...targetLayout[`${state}TabUniversalIdentifiers`],
+ ];
+ const viewFieldUniversalIdentifiers = [
+ ...targetLayout[`${state}ViewFieldUniversalIdentifiers`],
+ ];
+ const viewFieldGroupUniversalIdentifiers = [
+ ...targetLayout[`${state}ViewFieldGroupUniversalIdentifiers`],
+ ];
+
+ if (targetLayout.label === 'Task' && missingTaskChild === 'tab') {
+ tabUniversalIdentifiers.pop();
+ }
+
+ if (targetLayout.label === 'Task' && missingTaskChild === 'viewField') {
+ viewFieldUniversalIdentifiers.pop();
+ }
+
+ for (const { universalIdentifier, widgets } of Object.values(
+ pageLayoutIdentifiers.tabs,
+ )) {
+ if (!tabUniversalIdentifiers.includes(universalIdentifier)) {
+ continue;
+ }
+
+ const widgetUniversalIdentifiers = Object.values(widgets).map(
+ ({ universalIdentifier: widgetUniversalIdentifier }) => {
+ pageLayoutWidgets.push(
+ buildStandardFlatEntity(widgetUniversalIdentifier),
+ );
+
+ return widgetUniversalIdentifier;
+ },
+ );
+
+ pageLayoutTabs.push({
+ ...buildStandardFlatEntity(universalIdentifier),
+ widgetUniversalIdentifiers,
+ });
+ }
+
+ if (targetLayout.label === 'Task' && hasCustomTaskTab) {
+ tabUniversalIdentifiers.push(CUSTOM_TASK_TAB_UNIVERSAL_IDENTIFIER);
+ pageLayoutTabs.push({
+ ...buildStandardFlatEntity(CUSTOM_TASK_TAB_UNIVERSAL_IDENTIFIER),
+ applicationId: CUSTOM_APPLICATION_ID,
+ widgetUniversalIdentifiers: [],
+ });
+ }
+
+ pageLayouts.push({
+ applicationId: STANDARD_APPLICATION_ID,
+ tabUniversalIdentifiers,
+ universalIdentifier: targetLayout.pageLayoutUniversalIdentifier,
+ });
+
+ for (const universalIdentifier of viewFieldUniversalIdentifiers) {
+ viewFields.push(buildStandardFlatEntity(universalIdentifier));
+ }
+
+ for (const universalIdentifier of viewFieldGroupUniversalIdentifiers) {
+ viewFieldGroups.push(buildStandardFlatEntity(universalIdentifier));
+ }
+
+ views.push({
+ ...buildStandardFlatEntity(targetLayout.fieldsViewUniversalIdentifier),
+ overrides: targetLayout.label === 'Task' ? taskFieldsViewOverrides : null,
+ viewFieldGroupUniversalIdentifiers,
+ viewFieldUniversalIdentifiers,
+ viewFilterGroupUniversalIdentifiers: [],
+ viewFilterUniversalIdentifiers: [],
+ viewGroupUniversalIdentifiers: [],
+ viewSortUniversalIdentifiers: [],
+ });
+ }
+
+ return {
+ flatPageLayoutMaps: buildByUniversalIdentifierMap(pageLayouts),
+ flatPageLayoutTabMaps: buildByUniversalIdentifierMap(pageLayoutTabs),
+ flatPageLayoutWidgetMaps: buildByUniversalIdentifierMap(pageLayoutWidgets),
+ flatViewMaps: buildByUniversalIdentifierMap(views),
+ flatViewFieldMaps: buildByUniversalIdentifierMap(viewFields),
+ flatViewFieldGroupMaps: buildByUniversalIdentifierMap(viewFieldGroups),
+ } as unknown as TaskNoteLayoutMigrationFlatMaps;
+};
+
+describe('computeStandardTaskNoteLayoutMigrationOperations', () => {
+ const computeOperations = (flatMaps: TaskNoteLayoutMigrationFlatMaps) =>
+ computeStandardTaskNoteLayoutMigrationOperations({
+ flatMaps,
+ standardApplicationId: STANDARD_APPLICATION_ID,
+ });
+
+ it('preserves the legacy view entity identifiers targeted by the upgrade', () => {
+ expect(STANDARD_TASK_NOTE_LAYOUT_MIGRATION_TARGETS).toEqual([
+ expect.objectContaining({
+ label: 'Task',
+ removedViewFieldGroupUniversalIdentifiers: [
+ 'e48c1875-31be-511f-b229-d85cecc319b3',
+ ],
+ removedViewFieldUniversalIdentifiers: [
+ '1481e9a9-d79c-5d97-9ea3-0babff9d6535',
+ 'fc5d2a89-8d8d-56f2-96bd-fcde0a04e1cb',
+ '6e98e5c0-e188-56f8-a5a8-1f6569e7b2e8',
+ '466bec84-2ac8-5a73-9c44-43e905c29a6b',
+ '2a224a0a-0fd7-5e0e-9872-53eaec638ebf',
+ ],
+ }),
+ expect.objectContaining({
+ label: 'Note',
+ removedViewFieldGroupUniversalIdentifiers: [
+ 'f8b067db-b793-5b4e-b6c6-5b7884d436e0',
+ ],
+ removedViewFieldUniversalIdentifiers: [
+ 'de624e40-0c8e-58dc-ab30-4dc6239dd758',
+ 'e45009c4-c19a-5907-a18d-da1df196c788',
+ 'c367e175-8ded-5ef6-987f-7dafc91252da',
+ '556a3d3e-cc58-5863-a36e-3f742f019676',
+ 'c4c7e2f7-3827-53e4-aae0-ef14dbd15ca2',
+ ],
+ }),
+ ]);
+ });
+
+ it('returns obsolete standard tabs, fields, and groups for deletion', () => {
+ const operations = computeOperations(buildFlatMaps());
+
+ expect(operations.pageLayoutTabsToDelete).toHaveLength(4);
+ expect(operations.viewFieldsToDelete).toHaveLength(10);
+ expect(operations.viewFieldGroupsToDelete).toHaveLength(2);
+ expect(operations.skippedLayouts).toEqual([]);
+ });
+
+ it('is idempotent for layouts already in the post-migration state', () => {
+ const operations = computeOperations(
+ buildFlatMaps({ state: 'postMigration' }),
+ );
+
+ expect(operations).toEqual({
+ pageLayoutTabsToDelete: [],
+ skippedLayouts: [],
+ viewFieldGroupsToDelete: [],
+ viewFieldsToDelete: [],
+ });
+ });
+
+ it('skips a layout containing custom-application metadata', () => {
+ const operations = computeOperations(
+ buildFlatMaps({ hasCustomTaskTab: true }),
+ );
+
+ expect(operations.pageLayoutTabsToDelete).toHaveLength(2);
+ expect(operations.skippedLayouts).toContainEqual({
+ label: 'Task',
+ reason: 'customized',
+ });
+ });
+
+ it('skips a layout whose fields view has overrides', () => {
+ const operations = computeOperations(
+ buildFlatMaps({ taskFieldsViewOverrides: { name: 'Custom' } }),
+ );
+
+ expect(operations.viewFieldsToDelete).toHaveLength(5);
+ expect(operations.skippedLayouts).toContainEqual({
+ label: 'Task',
+ reason: 'customized',
+ });
+ });
+
+ it.each(['tab', 'viewField'] as const)(
+ 'skips a layout with a removed standard %s',
+ (missingTaskChild) => {
+ const operations = computeOperations(buildFlatMaps({ missingTaskChild }));
+
+ expect(operations.pageLayoutTabsToDelete).toHaveLength(2);
+ expect(operations.viewFieldsToDelete).toHaveLength(5);
+ expect(operations.skippedLayouts).toContainEqual({
+ label: 'Task',
+ reason: 'customized',
+ });
+ },
+ );
+});
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/utils/compute-standard-task-note-layout-migration-operations.util.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/utils/compute-standard-task-note-layout-migration-operations.util.ts
new file mode 100644
index 00000000000..2af3e653e39
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-38/utils/compute-standard-task-note-layout-migration-operations.util.ts
@@ -0,0 +1,241 @@
+import { isDefined } from 'twenty-shared/utils';
+
+import {
+ STANDARD_TASK_NOTE_LAYOUT_MIGRATION_TARGETS,
+ type StandardTaskNoteLayoutMigrationTarget,
+} from 'src/database/commands/upgrade-version-command/2-38/constants/standard-task-note-layout-migration-targets.constant';
+import { type AllFlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/types/all-flat-entity-maps.type';
+import { type FlatPageLayoutTab } from 'src/engine/metadata-modules/flat-page-layout-tab/types/flat-page-layout-tab.type';
+import { type FlatViewFieldGroup } from 'src/engine/metadata-modules/flat-view-field-group/types/flat-view-field-group.type';
+import { type FlatViewField } from 'src/engine/metadata-modules/flat-view-field/types/flat-view-field.type';
+
+export type TaskNoteLayoutMigrationFlatMaps = Pick<
+ AllFlatEntityMaps,
+ | 'flatPageLayoutMaps'
+ | 'flatPageLayoutTabMaps'
+ | 'flatPageLayoutWidgetMaps'
+ | 'flatViewMaps'
+ | 'flatViewFieldMaps'
+ | 'flatViewFieldGroupMaps'
+>;
+
+type OverridableFlatEntity = {
+ applicationId: string;
+ isActive: boolean;
+ overrides: unknown;
+};
+
+type SkippedLayout = {
+ label: StandardTaskNoteLayoutMigrationTarget['label'];
+ reason: 'customized' | 'incomplete';
+};
+
+export type StandardTaskNoteLayoutMigrationOperations = {
+ pageLayoutTabsToDelete: FlatPageLayoutTab[];
+ viewFieldsToDelete: FlatViewField[];
+ viewFieldGroupsToDelete: FlatViewFieldGroup[];
+ skippedLayouts: SkippedLayout[];
+};
+
+const hasWorkspaceCustomization = (
+ flatEntity: OverridableFlatEntity,
+ standardApplicationId: string,
+) =>
+ flatEntity.applicationId !== standardApplicationId ||
+ isDefined(flatEntity.overrides) ||
+ !flatEntity.isActive;
+
+const hasSameUniversalIdentifiers = (
+ actualUniversalIdentifiers: readonly string[],
+ expectedUniversalIdentifiers: readonly string[],
+) =>
+ actualUniversalIdentifiers.length === expectedUniversalIdentifiers.length &&
+ actualUniversalIdentifiers.every((universalIdentifier) =>
+ expectedUniversalIdentifiers.includes(universalIdentifier),
+ );
+
+const matchesExpectedMigrationState = ({
+ targetLayout,
+ tabUniversalIdentifiers,
+ widgetUniversalIdentifiers,
+ viewFieldUniversalIdentifiers,
+ viewFieldGroupUniversalIdentifiers,
+}: {
+ targetLayout: StandardTaskNoteLayoutMigrationTarget;
+ tabUniversalIdentifiers: readonly string[];
+ widgetUniversalIdentifiers: readonly string[];
+ viewFieldUniversalIdentifiers: readonly string[];
+ viewFieldGroupUniversalIdentifiers: readonly string[];
+}) => {
+ const matchesState = (state: 'preMigration' | 'postMigration') =>
+ hasSameUniversalIdentifiers(
+ tabUniversalIdentifiers,
+ targetLayout[`${state}TabUniversalIdentifiers`],
+ ) &&
+ hasSameUniversalIdentifiers(
+ widgetUniversalIdentifiers,
+ targetLayout[`${state}WidgetUniversalIdentifiers`],
+ ) &&
+ hasSameUniversalIdentifiers(
+ viewFieldUniversalIdentifiers,
+ targetLayout[`${state}ViewFieldUniversalIdentifiers`],
+ ) &&
+ hasSameUniversalIdentifiers(
+ viewFieldGroupUniversalIdentifiers,
+ targetLayout[`${state}ViewFieldGroupUniversalIdentifiers`],
+ );
+
+ return matchesState('preMigration') || matchesState('postMigration');
+};
+
+export const computeStandardTaskNoteLayoutMigrationOperations = ({
+ flatMaps: {
+ flatPageLayoutMaps,
+ flatPageLayoutTabMaps,
+ flatPageLayoutWidgetMaps,
+ flatViewMaps,
+ flatViewFieldMaps,
+ flatViewFieldGroupMaps,
+ },
+ standardApplicationId,
+}: {
+ flatMaps: TaskNoteLayoutMigrationFlatMaps;
+ standardApplicationId: string;
+}): StandardTaskNoteLayoutMigrationOperations => {
+ const pageLayoutTabsToDelete: FlatPageLayoutTab[] = [];
+ const viewFieldsToDelete: FlatViewField[] = [];
+ const viewFieldGroupsToDelete: FlatViewFieldGroup[] = [];
+ const skippedLayouts: SkippedLayout[] = [];
+
+ for (const targetLayout of STANDARD_TASK_NOTE_LAYOUT_MIGRATION_TARGETS) {
+ const existingPageLayout =
+ flatPageLayoutMaps.byUniversalIdentifier[
+ targetLayout.pageLayoutUniversalIdentifier
+ ];
+ const existingFieldsView =
+ flatViewMaps.byUniversalIdentifier[
+ targetLayout.fieldsViewUniversalIdentifier
+ ];
+
+ if (!isDefined(existingPageLayout) || !isDefined(existingFieldsView)) {
+ skippedLayouts.push({ label: targetLayout.label, reason: 'incomplete' });
+
+ continue;
+ }
+
+ const existingTabs = existingPageLayout.tabUniversalIdentifiers.map(
+ (universalIdentifier) =>
+ flatPageLayoutTabMaps.byUniversalIdentifier[universalIdentifier],
+ );
+ const existingWidgets = existingTabs.flatMap((tab) =>
+ isDefined(tab)
+ ? tab.widgetUniversalIdentifiers.map(
+ (universalIdentifier) =>
+ flatPageLayoutWidgetMaps.byUniversalIdentifier[
+ universalIdentifier
+ ],
+ )
+ : [],
+ );
+ const existingViewFields =
+ existingFieldsView.viewFieldUniversalIdentifiers.map(
+ (universalIdentifier) =>
+ flatViewFieldMaps.byUniversalIdentifier[universalIdentifier],
+ );
+ const existingViewFieldGroups =
+ existingFieldsView.viewFieldGroupUniversalIdentifiers.map(
+ (universalIdentifier) =>
+ flatViewFieldGroupMaps.byUniversalIdentifier[universalIdentifier],
+ );
+ const allExistingChildren = [
+ ...existingTabs,
+ ...existingWidgets,
+ ...existingViewFields,
+ ...existingViewFieldGroups,
+ ];
+
+ if (allExistingChildren.some((flatEntity) => !isDefined(flatEntity))) {
+ skippedLayouts.push({ label: targetLayout.label, reason: 'incomplete' });
+
+ continue;
+ }
+
+ const definedExistingTabs = existingTabs.filter(isDefined);
+ const definedExistingWidgets = existingWidgets.filter(isDefined);
+ const definedExistingViewFields = existingViewFields.filter(isDefined);
+ const definedExistingViewFieldGroups =
+ existingViewFieldGroups.filter(isDefined);
+ const hasExpectedChildSets = matchesExpectedMigrationState({
+ targetLayout,
+ tabUniversalIdentifiers: existingPageLayout.tabUniversalIdentifiers,
+ widgetUniversalIdentifiers: definedExistingWidgets.map(
+ (widget) => widget.universalIdentifier,
+ ),
+ viewFieldUniversalIdentifiers:
+ existingFieldsView.viewFieldUniversalIdentifiers,
+ viewFieldGroupUniversalIdentifiers:
+ existingFieldsView.viewFieldGroupUniversalIdentifiers,
+ });
+ const hasCustomizedMetadata = [
+ ...definedExistingTabs,
+ ...definedExistingWidgets,
+ existingFieldsView,
+ ...definedExistingViewFields,
+ ...definedExistingViewFieldGroups,
+ ].some((flatEntity) =>
+ hasWorkspaceCustomization(flatEntity, standardApplicationId),
+ );
+ const hasFieldsViewConfiguration =
+ existingFieldsView.viewFilterUniversalIdentifiers.length > 0 ||
+ existingFieldsView.viewFilterGroupUniversalIdentifiers.length > 0 ||
+ existingFieldsView.viewGroupUniversalIdentifiers.length > 0 ||
+ existingFieldsView.viewSortUniversalIdentifiers.length > 0;
+
+ if (
+ existingPageLayout.applicationId !== standardApplicationId ||
+ !hasExpectedChildSets ||
+ hasCustomizedMetadata ||
+ hasFieldsViewConfiguration
+ ) {
+ skippedLayouts.push({ label: targetLayout.label, reason: 'customized' });
+
+ continue;
+ }
+
+ pageLayoutTabsToDelete.push(
+ ...targetLayout.removedTabUniversalIdentifiers
+ .map(
+ (universalIdentifier) =>
+ flatPageLayoutTabMaps.byUniversalIdentifier[universalIdentifier],
+ )
+ .filter((tab): tab is FlatPageLayoutTab => isDefined(tab)),
+ );
+ viewFieldsToDelete.push(
+ ...targetLayout.removedViewFieldUniversalIdentifiers
+ .map(
+ (universalIdentifier) =>
+ flatViewFieldMaps.byUniversalIdentifier[universalIdentifier],
+ )
+ .filter((viewField): viewField is FlatViewField =>
+ isDefined(viewField),
+ ),
+ );
+ viewFieldGroupsToDelete.push(
+ ...targetLayout.removedViewFieldGroupUniversalIdentifiers
+ .map(
+ (universalIdentifier) =>
+ flatViewFieldGroupMaps.byUniversalIdentifier[universalIdentifier],
+ )
+ .filter((viewFieldGroup): viewFieldGroup is FlatViewFieldGroup =>
+ isDefined(viewFieldGroup),
+ ),
+ );
+ }
+
+ return {
+ pageLayoutTabsToDelete,
+ viewFieldsToDelete,
+ viewFieldGroupsToDelete,
+ skippedLayouts,
+ };
+};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap
index 64e3cc55a3e..67dec07e137 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap
@@ -1768,7 +1768,7 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000000521",
},
},
- "id": "00000000-0000-0000-0000-000000000546",
+ "id": "00000000-0000-0000-0000-000000000540",
"views": {
"allNotes": {
"id": "00000000-0000-0000-0000-000000000534",
@@ -1793,39 +1793,21 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"viewGroups": {},
},
"noteRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000545",
+ "id": "00000000-0000-0000-0000-000000000539",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000543",
- },
- "system": {
- "id": "00000000-0000-0000-0000-000000000544",
+ "id": "00000000-0000-0000-0000-000000000538",
},
},
"viewFields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000541",
- },
- "bodyV2": {
- "id": "00000000-0000-0000-0000-000000000538",
- },
- "createdAt": {
- "id": "00000000-0000-0000-0000-000000000535",
- },
- "createdBy": {
"id": "00000000-0000-0000-0000-000000000536",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000537",
+ "id": "00000000-0000-0000-0000-000000000535",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000542",
- },
- "updatedAt": {
- "id": "00000000-0000-0000-0000-000000000539",
- },
- "updatedBy": {
- "id": "00000000-0000-0000-0000-000000000540",
+ "id": "00000000-0000-0000-0000-000000000537",
},
},
"viewGroups": {},
@@ -1835,62 +1817,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"noteTarget": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000548",
+ "id": "00000000-0000-0000-0000-000000000542",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000551",
+ "id": "00000000-0000-0000-0000-000000000545",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000550",
+ "id": "00000000-0000-0000-0000-000000000544",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000547",
+ "id": "00000000-0000-0000-0000-000000000541",
},
"note": {
- "id": "00000000-0000-0000-0000-000000000555",
+ "id": "00000000-0000-0000-0000-000000000549",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000553",
+ "id": "00000000-0000-0000-0000-000000000547",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000554",
+ "id": "00000000-0000-0000-0000-000000000548",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000557",
+ "id": "00000000-0000-0000-0000-000000000551",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000558",
+ "id": "00000000-0000-0000-0000-000000000552",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000556",
+ "id": "00000000-0000-0000-0000-000000000550",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000549",
+ "id": "00000000-0000-0000-0000-000000000543",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000552",
+ "id": "00000000-0000-0000-0000-000000000546",
},
},
- "id": "00000000-0000-0000-0000-000000000565",
+ "id": "00000000-0000-0000-0000-000000000559",
"views": {
"allNoteTargets": {
- "id": "00000000-0000-0000-0000-000000000564",
+ "id": "00000000-0000-0000-0000-000000000558",
"viewFieldGroups": {},
"viewFields": {
"id": {
- "id": "00000000-0000-0000-0000-000000000559",
+ "id": "00000000-0000-0000-0000-000000000553",
},
"note": {
- "id": "00000000-0000-0000-0000-000000000560",
+ "id": "00000000-0000-0000-0000-000000000554",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000562",
+ "id": "00000000-0000-0000-0000-000000000556",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000563",
+ "id": "00000000-0000-0000-0000-000000000557",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000561",
+ "id": "00000000-0000-0000-0000-000000000555",
},
},
"viewGroups": {},
@@ -1900,192 +1882,192 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"opportunity": {
"fields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000575",
+ "id": "00000000-0000-0000-0000-000000000569",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000585",
+ "id": "00000000-0000-0000-0000-000000000579",
},
"calendarEventTargets": {
- "id": "00000000-0000-0000-0000-000000000583",
+ "id": "00000000-0000-0000-0000-000000000577",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000576",
+ "id": "00000000-0000-0000-0000-000000000570",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000579",
+ "id": "00000000-0000-0000-0000-000000000573",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000567",
+ "id": "00000000-0000-0000-0000-000000000561",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000570",
+ "id": "00000000-0000-0000-0000-000000000564",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000569",
+ "id": "00000000-0000-0000-0000-000000000563",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000566",
+ "id": "00000000-0000-0000-0000-000000000560",
},
"messageThreadTargets": {
- "id": "00000000-0000-0000-0000-000000000584",
+ "id": "00000000-0000-0000-0000-000000000578",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000574",
+ "id": "00000000-0000-0000-0000-000000000568",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000582",
+ "id": "00000000-0000-0000-0000-000000000576",
},
"owner": {
- "id": "00000000-0000-0000-0000-000000000580",
+ "id": "00000000-0000-0000-0000-000000000574",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000578",
+ "id": "00000000-0000-0000-0000-000000000572",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000572",
+ "id": "00000000-0000-0000-0000-000000000566",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000573",
+ "id": "00000000-0000-0000-0000-000000000567",
},
"stage": {
- "id": "00000000-0000-0000-0000-000000000577",
+ "id": "00000000-0000-0000-0000-000000000571",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000581",
+ "id": "00000000-0000-0000-0000-000000000575",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000586",
+ "id": "00000000-0000-0000-0000-000000000580",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000568",
+ "id": "00000000-0000-0000-0000-000000000562",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000571",
+ "id": "00000000-0000-0000-0000-000000000565",
},
},
- "id": "00000000-0000-0000-0000-000000000624",
+ "id": "00000000-0000-0000-0000-000000000618",
"views": {
"allOpportunities": {
- "id": "00000000-0000-0000-0000-000000000593",
+ "id": "00000000-0000-0000-0000-000000000587",
"viewFieldGroups": {},
"viewFields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000588",
+ "id": "00000000-0000-0000-0000-000000000582",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000590",
+ "id": "00000000-0000-0000-0000-000000000584",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000591",
+ "id": "00000000-0000-0000-0000-000000000585",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000589",
+ "id": "00000000-0000-0000-0000-000000000583",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000587",
+ "id": "00000000-0000-0000-0000-000000000581",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000592",
+ "id": "00000000-0000-0000-0000-000000000586",
},
},
"viewGroups": {},
},
"byStage": {
- "id": "00000000-0000-0000-0000-000000000605",
+ "id": "00000000-0000-0000-0000-000000000599",
"viewFieldGroups": {},
"viewFields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000595",
+ "id": "00000000-0000-0000-0000-000000000589",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000597",
+ "id": "00000000-0000-0000-0000-000000000591",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000598",
+ "id": "00000000-0000-0000-0000-000000000592",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000596",
+ "id": "00000000-0000-0000-0000-000000000590",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000594",
+ "id": "00000000-0000-0000-0000-000000000588",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000599",
+ "id": "00000000-0000-0000-0000-000000000593",
},
},
"viewGroups": {
"customer": {
- "id": "00000000-0000-0000-0000-000000000604",
+ "id": "00000000-0000-0000-0000-000000000598",
},
"meeting": {
- "id": "00000000-0000-0000-0000-000000000602",
+ "id": "00000000-0000-0000-0000-000000000596",
},
"new": {
- "id": "00000000-0000-0000-0000-000000000600",
+ "id": "00000000-0000-0000-0000-000000000594",
},
"proposal": {
- "id": "00000000-0000-0000-0000-000000000603",
+ "id": "00000000-0000-0000-0000-000000000597",
},
"screening": {
- "id": "00000000-0000-0000-0000-000000000601",
+ "id": "00000000-0000-0000-0000-000000000595",
},
},
},
"opportunityRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000623",
+ "id": "00000000-0000-0000-0000-000000000617",
"viewFieldGroups": {
"deal": {
- "id": "00000000-0000-0000-0000-000000000620",
+ "id": "00000000-0000-0000-0000-000000000614",
},
"relations": {
- "id": "00000000-0000-0000-0000-000000000621",
+ "id": "00000000-0000-0000-0000-000000000615",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000622",
+ "id": "00000000-0000-0000-0000-000000000616",
},
},
"viewFields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000606",
+ "id": "00000000-0000-0000-0000-000000000600",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000618",
+ "id": "00000000-0000-0000-0000-000000000612",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000607",
+ "id": "00000000-0000-0000-0000-000000000601",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000609",
+ "id": "00000000-0000-0000-0000-000000000603",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000612",
+ "id": "00000000-0000-0000-0000-000000000606",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000613",
+ "id": "00000000-0000-0000-0000-000000000607",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000617",
+ "id": "00000000-0000-0000-0000-000000000611",
},
"owner": {
- "id": "00000000-0000-0000-0000-000000000611",
+ "id": "00000000-0000-0000-0000-000000000605",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000610",
+ "id": "00000000-0000-0000-0000-000000000604",
},
"stage": {
- "id": "00000000-0000-0000-0000-000000000608",
+ "id": "00000000-0000-0000-0000-000000000602",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000616",
+ "id": "00000000-0000-0000-0000-000000000610",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000619",
+ "id": "00000000-0000-0000-0000-000000000613",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000614",
+ "id": "00000000-0000-0000-0000-000000000608",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000615",
+ "id": "00000000-0000-0000-0000-000000000609",
},
},
"viewGroups": {},
@@ -2095,187 +2077,187 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"person": {
"fields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000646",
+ "id": "00000000-0000-0000-0000-000000000640",
},
"avatarFile": {
- "id": "00000000-0000-0000-0000-000000000639",
+ "id": "00000000-0000-0000-0000-000000000633",
},
"avatarUrl": {
- "id": "00000000-0000-0000-0000-000000000638",
+ "id": "00000000-0000-0000-0000-000000000632",
},
"calendarEventParticipants": {
- "id": "00000000-0000-0000-0000-000000000648",
+ "id": "00000000-0000-0000-0000-000000000642",
},
"calendarEventTargets": {
- "id": "00000000-0000-0000-0000-000000000644",
+ "id": "00000000-0000-0000-0000-000000000638",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000640",
+ "id": "00000000-0000-0000-0000-000000000634",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000626",
+ "id": "00000000-0000-0000-0000-000000000620",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000629",
+ "id": "00000000-0000-0000-0000-000000000623",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000628",
+ "id": "00000000-0000-0000-0000-000000000622",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000634",
+ "id": "00000000-0000-0000-0000-000000000628",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000625",
+ "id": "00000000-0000-0000-0000-000000000619",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000636",
+ "id": "00000000-0000-0000-0000-000000000630",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000635",
+ "id": "00000000-0000-0000-0000-000000000629",
},
"listMemberships": {
- "id": "00000000-0000-0000-0000-000000000650",
+ "id": "00000000-0000-0000-0000-000000000644",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000647",
+ "id": "00000000-0000-0000-0000-000000000641",
},
"messageThreadTargets": {
- "id": "00000000-0000-0000-0000-000000000645",
+ "id": "00000000-0000-0000-0000-000000000639",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000633",
+ "id": "00000000-0000-0000-0000-000000000627",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000643",
+ "id": "00000000-0000-0000-0000-000000000637",
},
"phones": {
- "id": "00000000-0000-0000-0000-000000000637",
+ "id": "00000000-0000-0000-0000-000000000631",
},
"pointOfContactForOpportunities": {
- "id": "00000000-0000-0000-0000-000000000641",
+ "id": "00000000-0000-0000-0000-000000000635",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000631",
+ "id": "00000000-0000-0000-0000-000000000625",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000632",
+ "id": "00000000-0000-0000-0000-000000000626",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000642",
+ "id": "00000000-0000-0000-0000-000000000636",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000649",
+ "id": "00000000-0000-0000-0000-000000000643",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000627",
+ "id": "00000000-0000-0000-0000-000000000621",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000630",
+ "id": "00000000-0000-0000-0000-000000000624",
},
},
- "id": "00000000-0000-0000-0000-000000000683",
+ "id": "00000000-0000-0000-0000-000000000677",
"views": {
"allPeople": {
- "id": "00000000-0000-0000-0000-000000000659",
+ "id": "00000000-0000-0000-0000-000000000653",
"viewFieldGroups": {},
"viewFields": {
"company": {
- "id": "00000000-0000-0000-0000-000000000654",
+ "id": "00000000-0000-0000-0000-000000000648",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000656",
+ "id": "00000000-0000-0000-0000-000000000650",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000653",
+ "id": "00000000-0000-0000-0000-000000000647",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000652",
+ "id": "00000000-0000-0000-0000-000000000646",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000657",
+ "id": "00000000-0000-0000-0000-000000000651",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000658",
+ "id": "00000000-0000-0000-0000-000000000652",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000651",
+ "id": "00000000-0000-0000-0000-000000000645",
},
"phones": {
- "id": "00000000-0000-0000-0000-000000000655",
+ "id": "00000000-0000-0000-0000-000000000649",
},
},
"viewGroups": {},
},
"personRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000682",
+ "id": "00000000-0000-0000-0000-000000000676",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000678",
+ "id": "00000000-0000-0000-0000-000000000672",
},
"social": {
- "id": "00000000-0000-0000-0000-000000000680",
+ "id": "00000000-0000-0000-0000-000000000674",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000681",
+ "id": "00000000-0000-0000-0000-000000000675",
},
"work": {
- "id": "00000000-0000-0000-0000-000000000679",
+ "id": "00000000-0000-0000-0000-000000000673",
},
},
"viewFields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000674",
+ "id": "00000000-0000-0000-0000-000000000668",
},
"avatarFile": {
- "id": "00000000-0000-0000-0000-000000000670",
+ "id": "00000000-0000-0000-0000-000000000664",
},
"avatarUrl": {
- "id": "00000000-0000-0000-0000-000000000665",
+ "id": "00000000-0000-0000-0000-000000000659",
},
"calendarEventParticipants": {
- "id": "00000000-0000-0000-0000-000000000676",
+ "id": "00000000-0000-0000-0000-000000000670",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000662",
+ "id": "00000000-0000-0000-0000-000000000656",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000666",
+ "id": "00000000-0000-0000-0000-000000000660",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000667",
+ "id": "00000000-0000-0000-0000-000000000661",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000660",
+ "id": "00000000-0000-0000-0000-000000000654",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000663",
+ "id": "00000000-0000-0000-0000-000000000657",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000664",
+ "id": "00000000-0000-0000-0000-000000000658",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000675",
+ "id": "00000000-0000-0000-0000-000000000669",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000673",
+ "id": "00000000-0000-0000-0000-000000000667",
},
"phones": {
- "id": "00000000-0000-0000-0000-000000000661",
+ "id": "00000000-0000-0000-0000-000000000655",
},
"pointOfContactForOpportunities": {
- "id": "00000000-0000-0000-0000-000000000671",
+ "id": "00000000-0000-0000-0000-000000000665",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000672",
+ "id": "00000000-0000-0000-0000-000000000666",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000677",
+ "id": "00000000-0000-0000-0000-000000000671",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000668",
+ "id": "00000000-0000-0000-0000-000000000662",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000669",
+ "id": "00000000-0000-0000-0000-000000000663",
},
},
"viewGroups": {},
@@ -2285,203 +2267,185 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"task": {
"fields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000698",
+ "id": "00000000-0000-0000-0000-000000000692",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000697",
+ "id": "00000000-0000-0000-0000-000000000691",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000693",
+ "id": "00000000-0000-0000-0000-000000000687",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000685",
+ "id": "00000000-0000-0000-0000-000000000679",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000688",
+ "id": "00000000-0000-0000-0000-000000000682",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000687",
+ "id": "00000000-0000-0000-0000-000000000681",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000694",
+ "id": "00000000-0000-0000-0000-000000000688",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000684",
+ "id": "00000000-0000-0000-0000-000000000678",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000690",
+ "id": "00000000-0000-0000-0000-000000000684",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000691",
+ "id": "00000000-0000-0000-0000-000000000685",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000695",
+ "id": "00000000-0000-0000-0000-000000000689",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000696",
+ "id": "00000000-0000-0000-0000-000000000690",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000699",
+ "id": "00000000-0000-0000-0000-000000000693",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000692",
+ "id": "00000000-0000-0000-0000-000000000686",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000686",
+ "id": "00000000-0000-0000-0000-000000000680",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000689",
+ "id": "00000000-0000-0000-0000-000000000683",
},
},
- "id": "00000000-0000-0000-0000-000000000744",
+ "id": "00000000-0000-0000-0000-000000000732",
"views": {
"allTasks": {
- "id": "00000000-0000-0000-0000-000000000708",
+ "id": "00000000-0000-0000-0000-000000000702",
"viewFieldGroups": {},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000705",
+ "id": "00000000-0000-0000-0000-000000000699",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000706",
+ "id": "00000000-0000-0000-0000-000000000700",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000707",
+ "id": "00000000-0000-0000-0000-000000000701",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000703",
+ "id": "00000000-0000-0000-0000-000000000697",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000704",
+ "id": "00000000-0000-0000-0000-000000000698",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000701",
+ "id": "00000000-0000-0000-0000-000000000695",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000702",
+ "id": "00000000-0000-0000-0000-000000000696",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000700",
+ "id": "00000000-0000-0000-0000-000000000694",
},
},
"viewGroups": {},
},
"assignedToMe": {
- "id": "00000000-0000-0000-0000-000000000720",
+ "id": "00000000-0000-0000-0000-000000000714",
"viewFieldGroups": {},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000713",
+ "id": "00000000-0000-0000-0000-000000000707",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000714",
+ "id": "00000000-0000-0000-0000-000000000708",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000715",
+ "id": "00000000-0000-0000-0000-000000000709",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000711",
+ "id": "00000000-0000-0000-0000-000000000705",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000712",
+ "id": "00000000-0000-0000-0000-000000000706",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000710",
+ "id": "00000000-0000-0000-0000-000000000704",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000709",
+ "id": "00000000-0000-0000-0000-000000000703",
},
},
"viewGroups": {
"done": {
- "id": "00000000-0000-0000-0000-000000000718",
+ "id": "00000000-0000-0000-0000-000000000712",
},
"empty": {
- "id": "00000000-0000-0000-0000-000000000719",
+ "id": "00000000-0000-0000-0000-000000000713",
},
"inProgress": {
- "id": "00000000-0000-0000-0000-000000000717",
+ "id": "00000000-0000-0000-0000-000000000711",
},
"todo": {
- "id": "00000000-0000-0000-0000-000000000716",
+ "id": "00000000-0000-0000-0000-000000000710",
},
},
},
"byStatus": {
- "id": "00000000-0000-0000-0000-000000000729",
+ "id": "00000000-0000-0000-0000-000000000723",
"viewFieldGroups": {},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000724",
+ "id": "00000000-0000-0000-0000-000000000718",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000725",
+ "id": "00000000-0000-0000-0000-000000000719",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000723",
+ "id": "00000000-0000-0000-0000-000000000717",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000722",
+ "id": "00000000-0000-0000-0000-000000000716",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000721",
+ "id": "00000000-0000-0000-0000-000000000715",
},
},
"viewGroups": {
"done": {
- "id": "00000000-0000-0000-0000-000000000728",
+ "id": "00000000-0000-0000-0000-000000000722",
},
"inProgress": {
- "id": "00000000-0000-0000-0000-000000000727",
+ "id": "00000000-0000-0000-0000-000000000721",
},
"todo": {
- "id": "00000000-0000-0000-0000-000000000726",
+ "id": "00000000-0000-0000-0000-000000000720",
},
},
},
"taskRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000743",
+ "id": "00000000-0000-0000-0000-000000000731",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000741",
- },
- "system": {
- "id": "00000000-0000-0000-0000-000000000742",
+ "id": "00000000-0000-0000-0000-000000000730",
},
},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000732",
+ "id": "00000000-0000-0000-0000-000000000726",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000739",
- },
- "bodyV2": {
- "id": "00000000-0000-0000-0000-000000000736",
- },
- "createdAt": {
- "id": "00000000-0000-0000-0000-000000000733",
- },
- "createdBy": {
- "id": "00000000-0000-0000-0000-000000000734",
+ "id": "00000000-0000-0000-0000-000000000728",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000730",
+ "id": "00000000-0000-0000-0000-000000000724",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000731",
+ "id": "00000000-0000-0000-0000-000000000725",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000735",
+ "id": "00000000-0000-0000-0000-000000000727",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000740",
- },
- "updatedAt": {
- "id": "00000000-0000-0000-0000-000000000737",
- },
- "updatedBy": {
- "id": "00000000-0000-0000-0000-000000000738",
+ "id": "00000000-0000-0000-0000-000000000729",
},
},
"viewGroups": {},
@@ -2491,62 +2455,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"taskTarget": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000746",
+ "id": "00000000-0000-0000-0000-000000000734",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000749",
+ "id": "00000000-0000-0000-0000-000000000737",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000748",
+ "id": "00000000-0000-0000-0000-000000000736",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000745",
+ "id": "00000000-0000-0000-0000-000000000733",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000751",
+ "id": "00000000-0000-0000-0000-000000000739",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000752",
+ "id": "00000000-0000-0000-0000-000000000740",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000755",
+ "id": "00000000-0000-0000-0000-000000000743",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000756",
+ "id": "00000000-0000-0000-0000-000000000744",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000754",
+ "id": "00000000-0000-0000-0000-000000000742",
},
"task": {
- "id": "00000000-0000-0000-0000-000000000753",
+ "id": "00000000-0000-0000-0000-000000000741",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000747",
+ "id": "00000000-0000-0000-0000-000000000735",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000750",
+ "id": "00000000-0000-0000-0000-000000000738",
},
},
- "id": "00000000-0000-0000-0000-000000000763",
+ "id": "00000000-0000-0000-0000-000000000751",
"views": {
"allTaskTargets": {
- "id": "00000000-0000-0000-0000-000000000762",
+ "id": "00000000-0000-0000-0000-000000000750",
"viewFieldGroups": {},
"viewFields": {
"id": {
- "id": "00000000-0000-0000-0000-000000000757",
+ "id": "00000000-0000-0000-0000-000000000745",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000760",
+ "id": "00000000-0000-0000-0000-000000000748",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000761",
+ "id": "00000000-0000-0000-0000-000000000749",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000759",
+ "id": "00000000-0000-0000-0000-000000000747",
},
"task": {
- "id": "00000000-0000-0000-0000-000000000758",
+ "id": "00000000-0000-0000-0000-000000000746",
},
},
"viewGroups": {},
@@ -2556,128 +2520,128 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"timelineActivity": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000765",
+ "id": "00000000-0000-0000-0000-000000000753",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000768",
+ "id": "00000000-0000-0000-0000-000000000756",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000767",
+ "id": "00000000-0000-0000-0000-000000000755",
},
"happensAt": {
- "id": "00000000-0000-0000-0000-000000000774",
+ "id": "00000000-0000-0000-0000-000000000762",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000764",
+ "id": "00000000-0000-0000-0000-000000000752",
},
"linkedObjectMetadataId": {
- "id": "00000000-0000-0000-0000-000000000790",
+ "id": "00000000-0000-0000-0000-000000000778",
},
"linkedRecordCachedName": {
- "id": "00000000-0000-0000-0000-000000000788",
+ "id": "00000000-0000-0000-0000-000000000776",
},
"linkedRecordId": {
- "id": "00000000-0000-0000-0000-000000000789",
+ "id": "00000000-0000-0000-0000-000000000777",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000770",
+ "id": "00000000-0000-0000-0000-000000000758",
},
"properties": {
- "id": "00000000-0000-0000-0000-000000000775",
+ "id": "00000000-0000-0000-0000-000000000763",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000771",
+ "id": "00000000-0000-0000-0000-000000000759",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000778",
+ "id": "00000000-0000-0000-0000-000000000766",
},
"targetDashboard": {
- "id": "00000000-0000-0000-0000-000000000785",
+ "id": "00000000-0000-0000-0000-000000000773",
},
"targetMessageCampaign": {
- "id": "00000000-0000-0000-0000-000000000787",
+ "id": "00000000-0000-0000-0000-000000000775",
},
"targetMessageList": {
- "id": "00000000-0000-0000-0000-000000000786",
+ "id": "00000000-0000-0000-0000-000000000774",
},
"targetNote": {
- "id": "00000000-0000-0000-0000-000000000781",
+ "id": "00000000-0000-0000-0000-000000000769",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000779",
+ "id": "00000000-0000-0000-0000-000000000767",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000777",
+ "id": "00000000-0000-0000-0000-000000000765",
},
"targetTask": {
- "id": "00000000-0000-0000-0000-000000000780",
+ "id": "00000000-0000-0000-0000-000000000768",
},
"targetWorkflow": {
- "id": "00000000-0000-0000-0000-000000000782",
+ "id": "00000000-0000-0000-0000-000000000770",
},
"targetWorkflowRun": {
- "id": "00000000-0000-0000-0000-000000000784",
+ "id": "00000000-0000-0000-0000-000000000772",
},
"targetWorkflowVersion": {
- "id": "00000000-0000-0000-0000-000000000783",
+ "id": "00000000-0000-0000-0000-000000000771",
},
"timelineActivityTypeId": {
- "id": "00000000-0000-0000-0000-000000000772",
+ "id": "00000000-0000-0000-0000-000000000760",
},
"timelineActivityTypeSnapshot": {
- "id": "00000000-0000-0000-0000-000000000773",
+ "id": "00000000-0000-0000-0000-000000000761",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000766",
+ "id": "00000000-0000-0000-0000-000000000754",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000769",
+ "id": "00000000-0000-0000-0000-000000000757",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000776",
+ "id": "00000000-0000-0000-0000-000000000764",
},
},
- "id": "00000000-0000-0000-0000-000000000804",
+ "id": "00000000-0000-0000-0000-000000000792",
"views": {
"allTimelineActivities": {
- "id": "00000000-0000-0000-0000-000000000803",
+ "id": "00000000-0000-0000-0000-000000000791",
"viewFieldGroups": {},
"viewFields": {
"happensAt": {
- "id": "00000000-0000-0000-0000-000000000792",
+ "id": "00000000-0000-0000-0000-000000000780",
},
"linkedRecordCachedName": {
- "id": "00000000-0000-0000-0000-000000000791",
+ "id": "00000000-0000-0000-0000-000000000779",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000795",
+ "id": "00000000-0000-0000-0000-000000000783",
},
"targetDashboard": {
- "id": "00000000-0000-0000-0000-000000000802",
+ "id": "00000000-0000-0000-0000-000000000790",
},
"targetNote": {
- "id": "00000000-0000-0000-0000-000000000798",
+ "id": "00000000-0000-0000-0000-000000000786",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000796",
+ "id": "00000000-0000-0000-0000-000000000784",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000794",
+ "id": "00000000-0000-0000-0000-000000000782",
},
"targetTask": {
- "id": "00000000-0000-0000-0000-000000000797",
+ "id": "00000000-0000-0000-0000-000000000785",
},
"targetWorkflow": {
- "id": "00000000-0000-0000-0000-000000000799",
+ "id": "00000000-0000-0000-0000-000000000787",
},
"targetWorkflowRun": {
- "id": "00000000-0000-0000-0000-000000000801",
+ "id": "00000000-0000-0000-0000-000000000789",
},
"targetWorkflowVersion": {
- "id": "00000000-0000-0000-0000-000000000800",
+ "id": "00000000-0000-0000-0000-000000000788",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000793",
+ "id": "00000000-0000-0000-0000-000000000781",
},
},
"viewGroups": {},
@@ -2687,80 +2651,80 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflow": {
"fields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000821",
+ "id": "00000000-0000-0000-0000-000000000809",
},
"automatedTriggers": {
- "id": "00000000-0000-0000-0000-000000000819",
+ "id": "00000000-0000-0000-0000-000000000807",
},
"coreWorkflowId": {
- "id": "00000000-0000-0000-0000-000000000815",
+ "id": "00000000-0000-0000-0000-000000000803",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000806",
+ "id": "00000000-0000-0000-0000-000000000794",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000809",
+ "id": "00000000-0000-0000-0000-000000000797",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000808",
+ "id": "00000000-0000-0000-0000-000000000796",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000805",
+ "id": "00000000-0000-0000-0000-000000000793",
},
"lastPublishedVersionId": {
- "id": "00000000-0000-0000-0000-000000000814",
+ "id": "00000000-0000-0000-0000-000000000802",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000813",
+ "id": "00000000-0000-0000-0000-000000000801",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000811",
+ "id": "00000000-0000-0000-0000-000000000799",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000818",
+ "id": "00000000-0000-0000-0000-000000000806",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000812",
+ "id": "00000000-0000-0000-0000-000000000800",
},
"statuses": {
- "id": "00000000-0000-0000-0000-000000000816",
+ "id": "00000000-0000-0000-0000-000000000804",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000820",
+ "id": "00000000-0000-0000-0000-000000000808",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000807",
+ "id": "00000000-0000-0000-0000-000000000795",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000810",
+ "id": "00000000-0000-0000-0000-000000000798",
},
"versions": {
- "id": "00000000-0000-0000-0000-000000000817",
+ "id": "00000000-0000-0000-0000-000000000805",
},
},
- "id": "00000000-0000-0000-0000-000000000829",
+ "id": "00000000-0000-0000-0000-000000000817",
"views": {
"allWorkflows": {
- "id": "00000000-0000-0000-0000-000000000828",
+ "id": "00000000-0000-0000-0000-000000000816",
"viewFieldGroups": {},
"viewFields": {
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000825",
+ "id": "00000000-0000-0000-0000-000000000813",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000822",
+ "id": "00000000-0000-0000-0000-000000000810",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000827",
+ "id": "00000000-0000-0000-0000-000000000815",
},
"statuses": {
- "id": "00000000-0000-0000-0000-000000000823",
+ "id": "00000000-0000-0000-0000-000000000811",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000824",
+ "id": "00000000-0000-0000-0000-000000000812",
},
"versions": {
- "id": "00000000-0000-0000-0000-000000000826",
+ "id": "00000000-0000-0000-0000-000000000814",
},
},
"viewGroups": {},
@@ -2770,79 +2734,79 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflowAutomatedTrigger": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000831",
+ "id": "00000000-0000-0000-0000-000000000819",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000834",
+ "id": "00000000-0000-0000-0000-000000000822",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000833",
+ "id": "00000000-0000-0000-0000-000000000821",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000830",
+ "id": "00000000-0000-0000-0000-000000000818",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000836",
+ "id": "00000000-0000-0000-0000-000000000824",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000837",
+ "id": "00000000-0000-0000-0000-000000000825",
},
"settings": {
- "id": "00000000-0000-0000-0000-000000000839",
+ "id": "00000000-0000-0000-0000-000000000827",
},
"type": {
- "id": "00000000-0000-0000-0000-000000000838",
+ "id": "00000000-0000-0000-0000-000000000826",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000832",
+ "id": "00000000-0000-0000-0000-000000000820",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000835",
+ "id": "00000000-0000-0000-0000-000000000823",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000840",
+ "id": "00000000-0000-0000-0000-000000000828",
},
},
- "id": "00000000-0000-0000-0000-000000000852",
+ "id": "00000000-0000-0000-0000-000000000840",
"views": {
"allWorkflowAutomatedTriggers": {
- "id": "00000000-0000-0000-0000-000000000844",
+ "id": "00000000-0000-0000-0000-000000000832",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000843",
+ "id": "00000000-0000-0000-0000-000000000831",
},
"type": {
- "id": "00000000-0000-0000-0000-000000000841",
+ "id": "00000000-0000-0000-0000-000000000829",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000842",
+ "id": "00000000-0000-0000-0000-000000000830",
},
},
"viewGroups": {},
},
"workflowAutomatedTriggerRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000851",
+ "id": "00000000-0000-0000-0000-000000000839",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000849",
+ "id": "00000000-0000-0000-0000-000000000837",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000850",
+ "id": "00000000-0000-0000-0000-000000000838",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000847",
+ "id": "00000000-0000-0000-0000-000000000835",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000848",
+ "id": "00000000-0000-0000-0000-000000000836",
},
"type": {
- "id": "00000000-0000-0000-0000-000000000845",
+ "id": "00000000-0000-0000-0000-000000000833",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000846",
+ "id": "00000000-0000-0000-0000-000000000834",
},
},
"viewGroups": {},
@@ -2852,130 +2816,130 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflowRun": {
"fields": {
"coreWorkflowId": {
- "id": "00000000-0000-0000-0000-000000000870",
+ "id": "00000000-0000-0000-0000-000000000858",
},
"coreWorkflowVersionId": {
- "id": "00000000-0000-0000-0000-000000000871",
+ "id": "00000000-0000-0000-0000-000000000859",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000854",
+ "id": "00000000-0000-0000-0000-000000000842",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000857",
+ "id": "00000000-0000-0000-0000-000000000845",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000856",
+ "id": "00000000-0000-0000-0000-000000000844",
},
"endedAt": {
- "id": "00000000-0000-0000-0000-000000000866",
+ "id": "00000000-0000-0000-0000-000000000854",
},
"enqueuedAt": {
- "id": "00000000-0000-0000-0000-000000000864",
+ "id": "00000000-0000-0000-0000-000000000852",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000853",
+ "id": "00000000-0000-0000-0000-000000000841",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000861",
+ "id": "00000000-0000-0000-0000-000000000849",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000859",
+ "id": "00000000-0000-0000-0000-000000000847",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000860",
+ "id": "00000000-0000-0000-0000-000000000848",
},
"startedAt": {
- "id": "00000000-0000-0000-0000-000000000865",
+ "id": "00000000-0000-0000-0000-000000000853",
},
"state": {
- "id": "00000000-0000-0000-0000-000000000868",
+ "id": "00000000-0000-0000-0000-000000000856",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000867",
+ "id": "00000000-0000-0000-0000-000000000855",
},
"stepLogs": {
- "id": "00000000-0000-0000-0000-000000000869",
+ "id": "00000000-0000-0000-0000-000000000857",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000872",
+ "id": "00000000-0000-0000-0000-000000000860",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000855",
+ "id": "00000000-0000-0000-0000-000000000843",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000858",
+ "id": "00000000-0000-0000-0000-000000000846",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000863",
+ "id": "00000000-0000-0000-0000-000000000851",
},
"workflowVersion": {
- "id": "00000000-0000-0000-0000-000000000862",
+ "id": "00000000-0000-0000-0000-000000000850",
},
},
- "id": "00000000-0000-0000-0000-000000000892",
+ "id": "00000000-0000-0000-0000-000000000880",
"views": {
"allWorkflowRuns": {
- "id": "00000000-0000-0000-0000-000000000876",
+ "id": "00000000-0000-0000-0000-000000000864",
"viewFieldGroups": {},
"viewFields": {
"name": {
- "id": "00000000-0000-0000-0000-000000000873",
+ "id": "00000000-0000-0000-0000-000000000861",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000875",
+ "id": "00000000-0000-0000-0000-000000000863",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000874",
+ "id": "00000000-0000-0000-0000-000000000862",
},
},
"viewGroups": {},
},
"workflowRunRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000891",
+ "id": "00000000-0000-0000-0000-000000000879",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000889",
+ "id": "00000000-0000-0000-0000-000000000877",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000890",
+ "id": "00000000-0000-0000-0000-000000000878",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000882",
+ "id": "00000000-0000-0000-0000-000000000870",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000883",
+ "id": "00000000-0000-0000-0000-000000000871",
},
"endedAt": {
- "id": "00000000-0000-0000-0000-000000000881",
+ "id": "00000000-0000-0000-0000-000000000869",
},
"enqueuedAt": {
- "id": "00000000-0000-0000-0000-000000000884",
+ "id": "00000000-0000-0000-0000-000000000872",
},
"startedAt": {
- "id": "00000000-0000-0000-0000-000000000880",
+ "id": "00000000-0000-0000-0000-000000000868",
},
"state": {
- "id": "00000000-0000-0000-0000-000000000885",
+ "id": "00000000-0000-0000-0000-000000000873",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000877",
+ "id": "00000000-0000-0000-0000-000000000865",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000888",
+ "id": "00000000-0000-0000-0000-000000000876",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000886",
+ "id": "00000000-0000-0000-0000-000000000874",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000887",
+ "id": "00000000-0000-0000-0000-000000000875",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000878",
+ "id": "00000000-0000-0000-0000-000000000866",
},
"workflowVersion": {
- "id": "00000000-0000-0000-0000-000000000879",
+ "id": "00000000-0000-0000-0000-000000000867",
},
},
"viewGroups": {},
@@ -2985,118 +2949,118 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflowVersion": {
"fields": {
"coreWorkflowVersionId": {
- "id": "00000000-0000-0000-0000-000000000907",
+ "id": "00000000-0000-0000-0000-000000000895",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000894",
+ "id": "00000000-0000-0000-0000-000000000882",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000897",
+ "id": "00000000-0000-0000-0000-000000000885",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000896",
+ "id": "00000000-0000-0000-0000-000000000884",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000893",
+ "id": "00000000-0000-0000-0000-000000000881",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000901",
+ "id": "00000000-0000-0000-0000-000000000889",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000899",
+ "id": "00000000-0000-0000-0000-000000000887",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000905",
+ "id": "00000000-0000-0000-0000-000000000893",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000900",
+ "id": "00000000-0000-0000-0000-000000000888",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000904",
+ "id": "00000000-0000-0000-0000-000000000892",
},
"steps": {
- "id": "00000000-0000-0000-0000-000000000906",
+ "id": "00000000-0000-0000-0000-000000000894",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000908",
+ "id": "00000000-0000-0000-0000-000000000896",
},
"trigger": {
- "id": "00000000-0000-0000-0000-000000000903",
+ "id": "00000000-0000-0000-0000-000000000891",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000895",
+ "id": "00000000-0000-0000-0000-000000000883",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000898",
+ "id": "00000000-0000-0000-0000-000000000886",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000902",
+ "id": "00000000-0000-0000-0000-000000000890",
},
},
- "id": "00000000-0000-0000-0000-000000000928",
+ "id": "00000000-0000-0000-0000-000000000916",
"views": {
"allWorkflowVersions": {
- "id": "00000000-0000-0000-0000-000000000914",
+ "id": "00000000-0000-0000-0000-000000000902",
"viewFieldGroups": {},
"viewFields": {
"name": {
- "id": "00000000-0000-0000-0000-000000000909",
+ "id": "00000000-0000-0000-0000-000000000897",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000913",
+ "id": "00000000-0000-0000-0000-000000000901",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000911",
+ "id": "00000000-0000-0000-0000-000000000899",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000912",
+ "id": "00000000-0000-0000-0000-000000000900",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000910",
+ "id": "00000000-0000-0000-0000-000000000898",
},
},
"viewGroups": {},
},
"workflowVersionRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000927",
+ "id": "00000000-0000-0000-0000-000000000915",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000925",
+ "id": "00000000-0000-0000-0000-000000000913",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000926",
+ "id": "00000000-0000-0000-0000-000000000914",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000918",
+ "id": "00000000-0000-0000-0000-000000000906",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000920",
+ "id": "00000000-0000-0000-0000-000000000908",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000923",
+ "id": "00000000-0000-0000-0000-000000000911",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000915",
+ "id": "00000000-0000-0000-0000-000000000903",
},
"steps": {
- "id": "00000000-0000-0000-0000-000000000919",
+ "id": "00000000-0000-0000-0000-000000000907",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000924",
+ "id": "00000000-0000-0000-0000-000000000912",
},
"trigger": {
- "id": "00000000-0000-0000-0000-000000000917",
+ "id": "00000000-0000-0000-0000-000000000905",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000921",
+ "id": "00000000-0000-0000-0000-000000000909",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000922",
+ "id": "00000000-0000-0000-0000-000000000910",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000916",
+ "id": "00000000-0000-0000-0000-000000000904",
},
},
"viewGroups": {},
@@ -3106,110 +3070,110 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workspaceMember": {
"fields": {
"accountOwnerForCompanies": {
- "id": "00000000-0000-0000-0000-000000000948",
+ "id": "00000000-0000-0000-0000-000000000936",
},
"assignedTasks": {
- "id": "00000000-0000-0000-0000-000000000946",
+ "id": "00000000-0000-0000-0000-000000000934",
},
"avatarUrl": {
- "id": "00000000-0000-0000-0000-000000000942",
+ "id": "00000000-0000-0000-0000-000000000930",
},
"blocklist": {
- "id": "00000000-0000-0000-0000-000000000950",
+ "id": "00000000-0000-0000-0000-000000000938",
},
"calendarEventParticipants": {
- "id": "00000000-0000-0000-0000-000000000951",
+ "id": "00000000-0000-0000-0000-000000000939",
},
"calendarStartDay": {
- "id": "00000000-0000-0000-0000-000000000956",
+ "id": "00000000-0000-0000-0000-000000000944",
},
"colorScheme": {
- "id": "00000000-0000-0000-0000-000000000938",
+ "id": "00000000-0000-0000-0000-000000000926",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000930",
+ "id": "00000000-0000-0000-0000-000000000918",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000933",
+ "id": "00000000-0000-0000-0000-000000000921",
},
"dateFormat": {
- "id": "00000000-0000-0000-0000-000000000954",
+ "id": "00000000-0000-0000-0000-000000000942",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000932",
+ "id": "00000000-0000-0000-0000-000000000920",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000929",
+ "id": "00000000-0000-0000-0000-000000000917",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000944",
+ "id": "00000000-0000-0000-0000-000000000932",
},
"locale": {
- "id": "00000000-0000-0000-0000-000000000941",
+ "id": "00000000-0000-0000-0000-000000000929",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000949",
+ "id": "00000000-0000-0000-0000-000000000937",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000937",
+ "id": "00000000-0000-0000-0000-000000000925",
},
"numberFormat": {
- "id": "00000000-0000-0000-0000-000000000957",
+ "id": "00000000-0000-0000-0000-000000000945",
},
"openRecordIn": {
- "id": "00000000-0000-0000-0000-000000000940",
+ "id": "00000000-0000-0000-0000-000000000928",
},
"ownedOpportunities": {
- "id": "00000000-0000-0000-0000-000000000947",
+ "id": "00000000-0000-0000-0000-000000000935",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000935",
+ "id": "00000000-0000-0000-0000-000000000923",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000936",
+ "id": "00000000-0000-0000-0000-000000000924",
},
"timeFormat": {
- "id": "00000000-0000-0000-0000-000000000955",
+ "id": "00000000-0000-0000-0000-000000000943",
},
"timeZone": {
- "id": "00000000-0000-0000-0000-000000000953",
+ "id": "00000000-0000-0000-0000-000000000941",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000952",
+ "id": "00000000-0000-0000-0000-000000000940",
},
"uiScale": {
- "id": "00000000-0000-0000-0000-000000000939",
+ "id": "00000000-0000-0000-0000-000000000927",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000931",
+ "id": "00000000-0000-0000-0000-000000000919",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000934",
+ "id": "00000000-0000-0000-0000-000000000922",
},
"userEmail": {
- "id": "00000000-0000-0000-0000-000000000943",
+ "id": "00000000-0000-0000-0000-000000000931",
},
"userId": {
- "id": "00000000-0000-0000-0000-000000000945",
+ "id": "00000000-0000-0000-0000-000000000933",
},
},
- "id": "00000000-0000-0000-0000-000000000963",
+ "id": "00000000-0000-0000-0000-000000000951",
"views": {
"allWorkspaceMembers": {
- "id": "00000000-0000-0000-0000-000000000962",
+ "id": "00000000-0000-0000-0000-000000000950",
"viewFieldGroups": {},
"viewFields": {
"assignedTasks": {
- "id": "00000000-0000-0000-0000-000000000961",
+ "id": "00000000-0000-0000-0000-000000000949",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000959",
+ "id": "00000000-0000-0000-0000-000000000947",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000958",
+ "id": "00000000-0000-0000-0000-000000000946",
},
"ownedOpportunities": {
- "id": "00000000-0000-0000-0000-000000000960",
+ "id": "00000000-0000-0000-0000-000000000948",
},
},
"viewGroups": {},
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-page-layout-metadata-related-entity-ids.util.spec.ts.snap b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-page-layout-metadata-related-entity-ids.util.spec.ts.snap
index cf27f9517da..d18ce44ae80 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-page-layout-metadata-related-entity-ids.util.spec.ts.snap
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-page-layout-metadata-related-entity-ids.util.spec.ts.snap
@@ -365,14 +365,6 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa
"noteRecordPage": {
"id": "00000000-0000-0000-0000-000000000091",
"tabs": {
- "files": {
- "id": "00000000-0000-0000-0000-000000000099",
- "widgets": {
- "files": {
- "id": "00000000-0000-0000-0000-000000000100",
- },
- },
- },
"home": {
"id": "00000000-0000-0000-0000-000000000092",
"widgets": {
@@ -392,273 +384,249 @@ exports[`getStandardPageLayoutMetadataRelatedEntityIds should return standard pa
},
},
},
- "timeline": {
- "id": "00000000-0000-0000-0000-000000000097",
- "widgets": {
- "timeline": {
- "id": "00000000-0000-0000-0000-000000000098",
- },
- },
- },
},
},
"opportunityRecordPage": {
- "id": "00000000-0000-0000-0000-000000000101",
+ "id": "00000000-0000-0000-0000-000000000097",
"tabs": {
"calendar": {
- "id": "00000000-0000-0000-0000-000000000117",
+ "id": "00000000-0000-0000-0000-000000000113",
"widgets": {
"calendar": {
- "id": "00000000-0000-0000-0000-000000000118",
+ "id": "00000000-0000-0000-0000-000000000114",
},
},
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000115",
+ "id": "00000000-0000-0000-0000-000000000111",
"widgets": {
"emails": {
- "id": "00000000-0000-0000-0000-000000000116",
+ "id": "00000000-0000-0000-0000-000000000112",
},
},
},
"files": {
- "id": "00000000-0000-0000-0000-000000000113",
+ "id": "00000000-0000-0000-0000-000000000109",
"widgets": {
"files": {
- "id": "00000000-0000-0000-0000-000000000114",
+ "id": "00000000-0000-0000-0000-000000000110",
},
},
},
"home": {
- "id": "00000000-0000-0000-0000-000000000102",
+ "id": "00000000-0000-0000-0000-000000000098",
"widgets": {
"company": {
- "id": "00000000-0000-0000-0000-000000000105",
+ "id": "00000000-0000-0000-0000-000000000101",
},
"fields": {
- "id": "00000000-0000-0000-0000-000000000103",
+ "id": "00000000-0000-0000-0000-000000000099",
},
"owner": {
- "id": "00000000-0000-0000-0000-000000000106",
+ "id": "00000000-0000-0000-0000-000000000102",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000104",
+ "id": "00000000-0000-0000-0000-000000000100",
},
},
},
"notes": {
- "id": "00000000-0000-0000-0000-000000000111",
+ "id": "00000000-0000-0000-0000-000000000107",
"widgets": {
"notes": {
- "id": "00000000-0000-0000-0000-000000000112",
+ "id": "00000000-0000-0000-0000-000000000108",
},
},
},
"tasks": {
- "id": "00000000-0000-0000-0000-000000000109",
+ "id": "00000000-0000-0000-0000-000000000105",
"widgets": {
"tasks": {
- "id": "00000000-0000-0000-0000-000000000110",
+ "id": "00000000-0000-0000-0000-000000000106",
},
},
},
"timeline": {
- "id": "00000000-0000-0000-0000-000000000107",
+ "id": "00000000-0000-0000-0000-000000000103",
"widgets": {
"timeline": {
- "id": "00000000-0000-0000-0000-000000000108",
+ "id": "00000000-0000-0000-0000-000000000104",
},
},
},
},
},
"personRecordPage": {
- "id": "00000000-0000-0000-0000-000000000119",
+ "id": "00000000-0000-0000-0000-000000000115",
"tabs": {
"calendar": {
- "id": "00000000-0000-0000-0000-000000000135",
+ "id": "00000000-0000-0000-0000-000000000131",
"widgets": {
"calendar": {
- "id": "00000000-0000-0000-0000-000000000136",
+ "id": "00000000-0000-0000-0000-000000000132",
},
},
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000133",
+ "id": "00000000-0000-0000-0000-000000000129",
"widgets": {
"emails": {
- "id": "00000000-0000-0000-0000-000000000134",
+ "id": "00000000-0000-0000-0000-000000000130",
},
},
},
"files": {
- "id": "00000000-0000-0000-0000-000000000131",
+ "id": "00000000-0000-0000-0000-000000000127",
"widgets": {
"files": {
- "id": "00000000-0000-0000-0000-000000000132",
+ "id": "00000000-0000-0000-0000-000000000128",
},
},
},
"home": {
- "id": "00000000-0000-0000-0000-000000000120",
+ "id": "00000000-0000-0000-0000-000000000116",
"widgets": {
"company": {
- "id": "00000000-0000-0000-0000-000000000122",
+ "id": "00000000-0000-0000-0000-000000000118",
},
"fields": {
- "id": "00000000-0000-0000-0000-000000000121",
+ "id": "00000000-0000-0000-0000-000000000117",
},
"listMemberships": {
- "id": "00000000-0000-0000-0000-000000000124",
+ "id": "00000000-0000-0000-0000-000000000120",
},
"pointOfContactForOpportunities": {
- "id": "00000000-0000-0000-0000-000000000123",
+ "id": "00000000-0000-0000-0000-000000000119",
},
},
},
"notes": {
- "id": "00000000-0000-0000-0000-000000000129",
+ "id": "00000000-0000-0000-0000-000000000125",
"widgets": {
"notes": {
- "id": "00000000-0000-0000-0000-000000000130",
+ "id": "00000000-0000-0000-0000-000000000126",
},
},
},
"tasks": {
- "id": "00000000-0000-0000-0000-000000000127",
+ "id": "00000000-0000-0000-0000-000000000123",
"widgets": {
"tasks": {
- "id": "00000000-0000-0000-0000-000000000128",
+ "id": "00000000-0000-0000-0000-000000000124",
},
},
},
"timeline": {
- "id": "00000000-0000-0000-0000-000000000125",
+ "id": "00000000-0000-0000-0000-000000000121",
"widgets": {
"timeline": {
- "id": "00000000-0000-0000-0000-000000000126",
+ "id": "00000000-0000-0000-0000-000000000122",
},
},
},
},
},
"taskRecordPage": {
- "id": "00000000-0000-0000-0000-000000000137",
+ "id": "00000000-0000-0000-0000-000000000133",
"tabs": {
- "files": {
- "id": "00000000-0000-0000-0000-000000000145",
- "widgets": {
- "files": {
- "id": "00000000-0000-0000-0000-000000000146",
- },
- },
- },
"home": {
- "id": "00000000-0000-0000-0000-000000000138",
+ "id": "00000000-0000-0000-0000-000000000134",
"widgets": {
"fields": {
- "id": "00000000-0000-0000-0000-000000000139",
+ "id": "00000000-0000-0000-0000-000000000135",
},
"taskRichText": {
- "id": "00000000-0000-0000-0000-000000000140",
+ "id": "00000000-0000-0000-0000-000000000136",
},
},
},
"note": {
- "id": "00000000-0000-0000-0000-000000000141",
+ "id": "00000000-0000-0000-0000-000000000137",
"widgets": {
"taskRichText": {
- "id": "00000000-0000-0000-0000-000000000142",
- },
- },
- },
- "timeline": {
- "id": "00000000-0000-0000-0000-000000000143",
- "widgets": {
- "timeline": {
- "id": "00000000-0000-0000-0000-000000000144",
+ "id": "00000000-0000-0000-0000-000000000138",
},
},
},
},
},
"workflowAutomatedTriggerRecordPage": {
- "id": "00000000-0000-0000-0000-000000000150",
+ "id": "00000000-0000-0000-0000-000000000142",
"tabs": {
"home": {
- "id": "00000000-0000-0000-0000-000000000151",
+ "id": "00000000-0000-0000-0000-000000000143",
"widgets": {
"fields": {
- "id": "00000000-0000-0000-0000-000000000152",
+ "id": "00000000-0000-0000-0000-000000000144",
},
},
},
"timeline": {
- "id": "00000000-0000-0000-0000-000000000153",
+ "id": "00000000-0000-0000-0000-000000000145",
"widgets": {
"timeline": {
- "id": "00000000-0000-0000-0000-000000000154",
+ "id": "00000000-0000-0000-0000-000000000146",
},
},
},
},
},
"workflowRecordPage": {
- "id": "00000000-0000-0000-0000-000000000147",
+ "id": "00000000-0000-0000-0000-000000000139",
"tabs": {
"flow": {
- "id": "00000000-0000-0000-0000-000000000148",
+ "id": "00000000-0000-0000-0000-000000000140",
"widgets": {
"workflow": {
- "id": "00000000-0000-0000-0000-000000000149",
+ "id": "00000000-0000-0000-0000-000000000141",
},
},
},
},
},
"workflowRunRecordPage": {
- "id": "00000000-0000-0000-0000-000000000161",
+ "id": "00000000-0000-0000-0000-000000000153",
"tabs": {
"flow": {
- "id": "00000000-0000-0000-0000-000000000165",
+ "id": "00000000-0000-0000-0000-000000000157",
"widgets": {
"workflowRun": {
- "id": "00000000-0000-0000-0000-000000000166",
+ "id": "00000000-0000-0000-0000-000000000158",
},
},
},
"home": {
- "id": "00000000-0000-0000-0000-000000000162",
+ "id": "00000000-0000-0000-0000-000000000154",
"widgets": {
"fields": {
- "id": "00000000-0000-0000-0000-000000000163",
+ "id": "00000000-0000-0000-0000-000000000155",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000164",
+ "id": "00000000-0000-0000-0000-000000000156",
},
},
},
},
},
"workflowVersionRecordPage": {
- "id": "00000000-0000-0000-0000-000000000155",
+ "id": "00000000-0000-0000-0000-000000000147",
"tabs": {
"flow": {
- "id": "00000000-0000-0000-0000-000000000159",
+ "id": "00000000-0000-0000-0000-000000000151",
"widgets": {
"workflowVersion": {
- "id": "00000000-0000-0000-0000-000000000160",
+ "id": "00000000-0000-0000-0000-000000000152",
},
},
},
"home": {
- "id": "00000000-0000-0000-0000-000000000156",
+ "id": "00000000-0000-0000-0000-000000000148",
"widgets": {
"fields": {
- "id": "00000000-0000-0000-0000-000000000157",
+ "id": "00000000-0000-0000-0000-000000000149",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000158",
+ "id": "00000000-0000-0000-0000-000000000150",
},
},
},
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-note-page-layout.config.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-note-page-layout.config.ts
index 0355ff4c918..b22df583ea1 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-note-page-layout.config.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-note-page-layout.config.ts
@@ -60,34 +60,6 @@ const NOTE_PAGE_TABS = {
},
},
},
- timeline: {
- universalIdentifier:
- STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.noteRecordPage.tabs.timeline
- .universalIdentifier,
- ...TAB_PROPS.timeline,
- widgets: {
- timeline: {
- universalIdentifier:
- STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.noteRecordPage.tabs
- .timeline.widgets.timeline.universalIdentifier,
- ...WIDGET_PROPS.timeline,
- },
- },
- },
- files: {
- universalIdentifier:
- STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.noteRecordPage.tabs.files
- .universalIdentifier,
- ...TAB_PROPS.files,
- widgets: {
- files: {
- universalIdentifier:
- STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.noteRecordPage.tabs.files
- .widgets.files.universalIdentifier,
- ...WIDGET_PROPS.files,
- },
- },
- },
} as const satisfies Record<string, StandardPageLayoutTabConfig>;
export const STANDARD_NOTE_PAGE_LAYOUT_CONFIG = {
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-task-page-layout.config.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-task-page-layout.config.ts
index 16053cb9772..9b47cda8331 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-task-page-layout.config.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-task-page-layout.config.ts
@@ -60,34 +60,6 @@ const TASK_PAGE_TABS = {
},
},
},
- timeline: {
- universalIdentifier:
- STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.taskRecordPage.tabs.timeline
- .universalIdentifier,
- ...TAB_PROPS.timeline,
- widgets: {
- timeline: {
- universalIdentifier:
- STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.taskRecordPage.tabs
- .timeline.widgets.timeline.universalIdentifier,
- ...WIDGET_PROPS.timeline,
- },
- },
- },
- files: {
- universalIdentifier:
- STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.taskRecordPage.tabs.files
- .universalIdentifier,
- ...TAB_PROPS.files,
- widgets: {
- files: {
- universalIdentifier:
- STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.taskRecordPage.tabs.files
- .widgets.files.universalIdentifier,
- ...WIDGET_PROPS.files,
- },
- },
- },
} as const satisfies Record<string, StandardPageLayoutTabConfig>;
export const STANDARD_TASK_PAGE_LAYOUT_CONFIG = {
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-note-view-field-groups.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-note-view-field-groups.util.ts
index 5673b10780a..2b5eb309778 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-note-view-field-groups.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-note-view-field-groups.util.ts
@@ -23,18 +23,5 @@ export const computeStandardNoteViewFieldGroups = (
isVisible: true,
},
}),
- noteRecordPageFieldsSystem: createStandardViewFieldGroupFlatMetadata({
- ...args,
- objectName: 'note',
- context: {
- viewName: 'noteRecordPageFields',
- viewFieldGroupName: 'system',
- name: i18nLabel(
- msg({ message: `System`, context: 'viewFieldGroup.name' }),
- ),
- position: 1,
- isVisible: true,
- },
- }),
};
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-task-view-field-groups.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-task-view-field-groups.util.ts
index d3a314a53c7..e2a6812d48c 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-task-view-field-groups.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field-group/compute-standard-task-view-field-groups.util.ts
@@ -23,18 +23,5 @@ export const computeStandardTaskViewFieldGroups = (
isVisible: true,
},
}),
- taskRecordPageFieldsSystem: createStandardViewFieldGroupFlatMetadata({
- ...args,
- objectName: 'task',
- context: {
- viewName: 'taskRecordPageFields',
- viewFieldGroupName: 'system',
- name: i18nLabel(
- msg({ message: `System`, context: 'viewFieldGroup.name' }),
- ),
- position: 1,
- isVisible: true,
- },
- }),
};
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-note-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-note-view-fields.util.ts
index 3e8a8d751da..66912de9a1d 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-note-view-fields.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-note-view-fields.util.ts
@@ -71,19 +71,6 @@ export const computeStandardNoteViewFields = (
// noteRecordPageFields view fields
// General group
- noteRecordPageFieldsBodyV2: createStandardViewFieldFlatMetadata({
- ...args,
- objectName: 'note',
- context: {
- viewName: 'noteRecordPageFields',
- viewFieldName: 'bodyV2',
- fieldName: 'bodyV2',
- position: 0,
- isVisible: true,
- size: 150,
- viewFieldGroupName: 'general',
- },
- }),
noteRecordPageFieldsNoteTargets: createStandardViewFieldFlatMetadata({
...args,
objectName: 'note',
@@ -125,57 +112,5 @@ export const computeStandardNoteViewFields = (
},
},
),
- noteRecordPageFieldsCreatedAt: createStandardViewFieldFlatMetadata({
- ...args,
- objectName: 'note',
- context: {
- viewName: 'noteRecordPageFields',
- viewFieldName: 'createdAt',
- fieldName: 'createdAt',
- position: 0,
- isVisible: true,
- size: 150,
- viewFieldGroupName: 'system',
- },
- }),
- noteRecordPageFieldsCreatedBy: createStandardViewFieldFlatMetadata({
- ...args,
- objectName: 'note',
- context: {
- viewName: 'noteRecordPageFields',
- viewFieldName: 'createdBy',
- fieldName: 'createdBy',
- position: 1,
- isVisible: true,
- size: 150,
- viewFieldGroupName: 'system',
- },
- }),
- noteRecordPageFieldsUpdatedAt: createStandardViewFieldFlatMetadata({
- ...args,
- objectName: 'note',
- context: {
- viewName: 'noteRecordPageFields',
- viewFieldName: 'updatedAt',
- fieldName: 'updatedAt',
- position: 2,
- isVisible: false,
- size: 150,
- viewFieldGroupName: 'system',
- },
- }),
- noteRecordPageFieldsUpdatedBy: createStandardViewFieldFlatMetadata({
- ...args,
- objectName: 'note',
- context: {
- viewName: 'noteRecordPageFields',
- viewFieldName: 'updatedBy',
- fieldName: 'updatedBy',
- position: 3,
- isVisible: false,
- size: 150,
- viewFieldGroupName: 'system',
- },
- }),
};
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-task-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-task-view-fields.util.ts
index 0340e77e105..a9a6df7da37 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-task-view-fields.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-task-view-fields.util.ts
@@ -292,19 +292,6 @@ export const computeStandardTaskViewFields = (
viewFieldGroupName: 'general',
},
}),
- taskRecordPageFieldsBodyV2: createStandardViewFieldFlatMetadata({
- ...args,
- objectName: 'task',
- context: {
- viewName: 'taskRecordPageFields',
- viewFieldName: 'bodyV2',
- fieldName: 'bodyV2',
- position: 3,
- isVisible: true,
- size: 150,
- viewFieldGroupName: 'general',
- },
- }),
taskRecordPageFieldsTaskTargets: createStandardViewFieldFlatMetadata({
...args,
objectName: 'task',
@@ -346,57 +333,5 @@ export const computeStandardTaskViewFields = (
},
},
),
- taskRecordPageFieldsCreatedAt: createStandardViewFieldFlatMetadata({
- ...args,
- objectName: 'task',
- context: {
- viewName: 'taskRecordPageFields',
- viewFieldName: 'createdAt',
- fieldName: 'createdAt',
- position: 0,
- isVisible: true,
- size: 150,
- viewFieldGroupName: 'system',
- },
- }),
- taskRecordPageFieldsCreatedBy: createStandardViewFieldFlatMetadata({
- ...args,
- objectName: 'task',
- context: {
- viewName: 'taskRecordPageFields',
- viewFieldName: 'createdBy',
- fieldName: 'createdBy',
- position: 1,
- isVisible: true,
- size: 150,
- viewFieldGroupName: 'system',
- },
- }),
- taskRecordPageFieldsUpdatedAt: createStandardViewFieldFlatMetadata({
- ...args,
- objectName: 'task',
- context: {
- viewName: 'taskRecordPageFields',
- viewFieldName: 'updatedAt',
- fieldName: 'updatedAt',
- position: 2,
- isVisible: false,
- size: 150,
- viewFieldGroupName: 'system',
- },
- }),
- taskRecordPageFieldsUpdatedBy: createStandardViewFieldFlatMetadata({
- ...args,
- objectName: 'task',
- context: {
- viewName: 'taskRecordPageFields',
- viewFieldName: 'updatedBy',
- fieldName: 'updatedBy',
- position: 3,
- isVisible: false,
- size: 150,
- viewFieldGroupName: 'system',
- },
- }),
};
};
diff --git a/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap b/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
index 2a18930d129..3856b79bf49 100644
--- a/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
+++ b/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
@@ -1962,35 +1962,17 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"general": {
"universalIdentifier": "6e673f29-b3c9-58be-b830-352cc1274806",
},
- "system": {
- "universalIdentifier": "f8b067db-b793-5b4e-b6c6-5b7884d436e0",
- },
},
"viewFields": {
"attachments": {
"universalIdentifier": "0417604b-fe0a-5c43-a0b2-a1f71664e25d",
},
- "bodyV2": {
- "universalIdentifier": "de624e40-0c8e-58dc-ab30-4dc6239dd758",
- },
- "createdAt": {
- "universalIdentifier": "e45009c4-c19a-5907-a18d-da1df196c788",
- },
- "createdBy": {
- "universalIdentifier": "c367e175-8ded-5ef6-987f-7dafc91252da",
- },
"noteTargets": {
"universalIdentifier": "447e46f9-81a2-5c99-a865-f6efa6e892c5",
},
"timelineActivities": {
"universalIdentifier": "113232e3-ba0e-566f-98fa-016a1e8d44d9",
},
- "updatedAt": {
- "universalIdentifier": "556a3d3e-cc58-5863-a36e-3f742f019676",
- },
- "updatedBy": {
- "universalIdentifier": "c4c7e2f7-3827-53e4-aae0-ef14dbd15ca2",
- },
},
},
},
@@ -2652,9 +2634,6 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"general": {
"universalIdentifier": "0e7ffa21-9969-50ca-9daf-25078563e697",
},
- "system": {
- "universalIdentifier": "e48c1875-31be-511f-b229-d85cecc319b3",
- },
},
"viewFields": {
"assignee": {
@@ -2663,15 +2642,6 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"attachments": {
"universalIdentifier": "db69d80b-8e9e-5351-bd08-f4b625b9f721",
},
- "bodyV2": {
- "universalIdentifier": "1481e9a9-d79c-5d97-9ea3-0babff9d6535",
- },
- "createdAt": {
- "universalIdentifier": "fc5d2a89-8d8d-56f2-96bd-fcde0a04e1cb",
- },
- "createdBy": {
- "universalIdentifier": "6e98e5c0-e188-56f8-a5a8-1f6569e7b2e8",
- },
"dueAt": {
"universalIdentifier": "42a26270-40be-557d-9bd9-99b0f8f013dd",
},
@@ -2684,12 +2654,6 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"timelineActivities": {
"universalIdentifier": "3f0dd6fd-3b96-5f34-b96c-c7018b6b7230",
},
- "updatedAt": {
- "universalIdentifier": "466bec84-2ac8-5a73-9c44-43e905c29a6b",
- },
- "updatedBy": {
- "universalIdentifier": "2a224a0a-0fd7-5e0e-9872-53eaec638ebf",
- },
},
},
},
diff --git a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
index 3b4f51f0207..84afd294b69 100644
--- a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
+++ b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
@@ -724,19 +724,9 @@ export const STANDARD_OBJECTS = {
noteRecordPageFields: buildStandardObjectRecordPageFieldsView({
objectUniversalIdentifier: STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.note,
fields: STANDARD_OBJECT_FIELDS.note,
- viewFieldNames: [
- 'createdAt',
- 'createdBy',
- 'noteTargets',
- 'bodyV2',
- 'updatedAt',
- 'updatedBy',
- 'attachments',
- 'timelineActivities',
- ],
+ viewFieldNames: ['noteTargets', 'attachments', 'timelineActivities'],
viewFieldGroupNames: {
general: 'General',
- system: 'System',
},
}),
},
@@ -1045,18 +1035,12 @@ export const STANDARD_OBJECTS = {
'dueAt',
'status',
'assignee',
- 'createdAt',
- 'createdBy',
'taskTargets',
- 'bodyV2',
- 'updatedAt',
- 'updatedBy',
'attachments',
'timelineActivities',
],
viewFieldGroupNames: {
general: 'General',
- system: 'System',
},
}),
},