mirror of
https://github.com/dadosfera/maestro.git
synced 2026-08-31 19:58:21 +00:00
Review (maestro #510): batch and CDC tables are both removed through DELETE /pipeline/{id}/jobs (the platform dispatches by type: Airflow refresh vs Kafka Connect reconfigure), so the connector 'if' in the controller is gone. deleteTable/deleteTables/addTable are now thin controller methods over PipelineTablesService (mark -> resolve jobs -> platform -> rollback), with typed request bodies. Behavior change for batch: the platform refuses to remove the LAST table of a pipeline (400 'Cannot remove all jobs'), where DELETE /jobs/{id} allowed it. Co-Authored-By: WOZCODE <contact@withwoz.com>
29 lines
1.0 KiB
TypeScript
29 lines
1.0 KiB
TypeScript
import { Module, forwardRef } from '@nestjs/common';
|
|
|
|
import { DadosferaLogger } from '@dadosfera/dadosfera-logs';
|
|
|
|
import { PlatformApiController } from './platform-api.controller';
|
|
import { PlatformApiService } from './platform-api.service';
|
|
import { PipelineTablesService } from './pipeline-tables.service';
|
|
import { ElasticsearchModule } from '../../services/elasticsearch';
|
|
import { DynamoDBModule } from '../../services/dynamodb';
|
|
import { CustomersModule } from '../customers/customers.module';
|
|
import { CatalogModule } from '../catalog/catalog.module';
|
|
import { InputsModule } from '../inputs/inputs.module';
|
|
import { PipelinesV2Module } from '../pipelinesV2/pipelines.module';
|
|
|
|
@Module({
|
|
imports: [
|
|
ElasticsearchModule,
|
|
DynamoDBModule,
|
|
CustomersModule,
|
|
CatalogModule,
|
|
InputsModule,
|
|
forwardRef(() => PipelinesV2Module),
|
|
],
|
|
controllers: [PlatformApiController],
|
|
providers: [PlatformApiService, PipelineTablesService, DadosferaLogger],
|
|
exports: [PlatformApiService],
|
|
})
|
|
export class PlatformApiModule {}
|