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:
+3
-3
@@ -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,
|
||||
};
|
||||
});
|
||||
|
||||
+3
-3
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user