Create related records after object creation with migration v2 (view, view filters, favorite) (#14068)
## Context This PR introduces view actions for the migration v2. We should be able to create, update and delete views through the migration runner independently from object actions (this is not 100% true in this PR though as I'm still passing the object metadata to build the view) Note: Once favorite are moved out of the workspace schema, we will have favorite actions as well, in the meantime I have to inject some code at the end of the createOne method from the object metadata service
This commit is contained in:
+2
-1
@@ -11,6 +11,7 @@ import { NestjsQueryTypeOrmModule } from '@ptc-org/nestjs-query-typeorm';
|
||||
import { TypeORMModule } from 'src/database/typeorm/typeorm.module';
|
||||
import { FeatureFlag } from 'src/engine/core-modules/feature-flag/feature-flag.entity';
|
||||
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
|
||||
import { View } from 'src/engine/core-modules/view/entities/view.entity';
|
||||
import { SettingsPermissionsGuard } from 'src/engine/guards/settings-permissions.guard';
|
||||
import { WorkspaceAuthGuard } from 'src/engine/guards/workspace-auth.guard';
|
||||
import { DataSourceModule } from 'src/engine/metadata-modules/data-source/data-source.module';
|
||||
@@ -55,7 +56,7 @@ import { WorkspaceMigrationV2Module } from 'src/engine/workspace-manager/workspa
|
||||
[ObjectMetadataEntity, FieldMetadataEntity],
|
||||
'core',
|
||||
),
|
||||
TypeOrmModule.forFeature([FeatureFlag], 'core'),
|
||||
TypeOrmModule.forFeature([FeatureFlag, View], 'core'),
|
||||
DataSourceModule,
|
||||
WorkspaceMigrationModule,
|
||||
WorkspaceMigrationRunnerModule,
|
||||
|
||||
Reference in New Issue
Block a user