Pagelayout backfill command standard app (#19380)

## Context
Due to the chosen strategy for "Reset to default" feature for page
layouts. Those overridable entities need to be associated to the
Standard app to work properly (there is no "Default" state for custom
entities). Until we find a better implementation, I'm changing the
backfill command to reflect that
This commit is contained in:
Weiko
2026-04-07 14:49:35 +02:00
committed by GitHub
parent 96a242eb7d
commit 6e23ca35e6
5 changed files with 180 additions and 1765 deletions
@@ -11,13 +11,13 @@ export const seedPageLayoutWidgets = async ({
schemaName,
workspaceId,
objectMetadataItems,
workspaceCustomApplicationId,
applicationId,
}: {
dataSource: DataSource;
schemaName: string;
workspaceId: string;
objectMetadataItems: ObjectMetadataEntity[];
workspaceCustomApplicationId: string;
applicationId: string;
}) => {
const widgetSeeds = getPageLayoutWidgetDataSeeds(
workspaceId,
@@ -38,7 +38,7 @@ export const seedPageLayoutWidgets = async ({
position: widget.position,
configuration: widget.configuration,
universalIdentifier: v4(),
applicationId: workspaceCustomApplicationId,
applicationId,
overrides: widget.overrides ?? null,
};
});
@@ -129,10 +129,10 @@ export class DevSeederService {
this.coreDataSource,
'core',
workspaceId,
workspaceCustomFlatApplication.id,
twentyStandardFlatApplication.id,
);
await seedPageLayoutTabs({
applicationId: workspaceCustomFlatApplication.id,
applicationId: twentyStandardFlatApplication.id,
workspaceId,
dataSource: this.coreDataSource,
schemaName: 'core',
@@ -150,7 +150,7 @@ export class DevSeederService {
schemaName: 'core',
workspaceId,
objectMetadataItems,
workspaceCustomApplicationId: workspaceCustomFlatApplication.id,
applicationId: twentyStandardFlatApplication.id,
});
const relatedPageLayoutCacheKeysToInvalidate = [