Compare commits

...
8 Commits
5 changed files with 22 additions and 15 deletions
+7
View File
@@ -0,0 +1,7 @@
Resources:
AWSEBAutoScalingLaunchConfiguration:
Properties:
MetadataOptions:
HttpEndpoint: enabled
HttpPutResponseHopLimit: 2
HttpTokens: required
+11 -11
View File
@@ -33,7 +33,7 @@ export class CatalogController {
const { id } = params; const { id } = params;
const catalogService = new CatalogService(); const catalogService = new CatalogService();
const res = await catalogService.dataAppsOne(body, id); const res = await catalogService.dataAppsOne(id, body);
return res; return res;
} }
@@ -56,7 +56,7 @@ export class CatalogController {
const catalogService = new CatalogService(); const catalogService = new CatalogService();
const res = await catalogService.getOneDashboardMetabase(body, id); const res = await catalogService.getOneDashboardMetabase(id, body);
return res; return res;
} }
@@ -72,14 +72,14 @@ export class CatalogController {
return res; return res;
} }
@Delete('table-metadata') @Delete('table-metadata/:id')
async deleteOneTableMetadata(@Param() params, @Body() body) { async deleteOneTableMetadata(@Param() params, @Body() body) {
const { id } = params; const { id } = params;
console.log(`/catalog`, 'ON DELETE ONE TABLE METADATA ROUTE'); console.log(`/catalog`, 'ON DELETE ONE TABLE METADATA ROUTE');
const catalogService = new CatalogService(); const catalogService = new CatalogService();
const res = await catalogService.deleteOneTableMetadata(body, id); const res = await catalogService.deleteOneTableMetadata(id, body);
return res; return res;
} }
@@ -95,14 +95,14 @@ export class CatalogController {
return res; return res;
} }
@Delete('column-metadata') @Delete('column-metadata/:id')
async deleteOneColumnMetadata(@Param() params, @Body() body) { async deleteOneColumnMetadata(@Param() params, @Body() body) {
console.log(`/catalog`, 'ON DELETE ONE COLUMN METADATA ROUTE'); console.log(`/catalog`, 'ON DELETE ONE COLUMN METADATA ROUTE');
const { id } = params; const { id } = params;
const catalogService = new CatalogService(); const catalogService = new CatalogService();
const res = await catalogService.deleteOneColumnMetadata(body, id); const res = await catalogService.deleteOneColumnMetadata(id, body);
return res; return res;
} }
@@ -225,7 +225,7 @@ export class CatalogController {
const catalogService = new CatalogService(); const catalogService = new CatalogService();
const res = await catalogService.deleteTags(body, id); const res = await catalogService.deleteTags(id, body);
return res; return res;
} }
@@ -252,14 +252,14 @@ export class CatalogController {
return res; return res;
} }
@Delete('table-tags') @Delete('table-tags/:id')
async deleteTableTags(@Param() params, @Body() body) { async deleteTableTags(@Param() params, @Body() body) {
console.log(`/catalog`, 'ON CREATE TABLE TAGS ROUTE'); console.log(`/catalog`, 'ON CREATE TABLE TAGS ROUTE');
const { id } = params; const { id } = params;
const catalogService = new CatalogService(); const catalogService = new CatalogService();
const res = await catalogService.deleteTableTags(body, id); const res = await catalogService.deleteTableTags(id, body);
return res; return res;
} }
@@ -275,14 +275,14 @@ export class CatalogController {
return res; return res;
} }
@Delete('table-rules') @Delete('table-rules/:id')
async deleteTableRules(@Param() params, @Body() body) { async deleteTableRules(@Param() params, @Body() body) {
console.log(`/catalog`, 'ON DELETE TABLE RULES ROUTE'); console.log(`/catalog`, 'ON DELETE TABLE RULES ROUTE');
const { id } = params; const { id } = params;
const catalogService = new CatalogService(); const catalogService = new CatalogService();
const res = await catalogService.deleteTableRules(body, id); const res = await catalogService.deleteTableRules(id, body);
return res; return res;
} }
+1 -1
View File
@@ -51,7 +51,7 @@ class CatalogService {
return data; return data;
} }
async getOneDashboardMetabase(body, id) { async getOneDashboardMetabase(id, body) {
const customer = const customer =
body.info.customer.toLowerCase() === 'dadosfera' body.info.customer.toLowerCase() === 'dadosfera'
? `` ? ``
@@ -14,13 +14,13 @@ import { PipelinesService } from './pipelines.service';
export class PipelinesController { export class PipelinesController {
constructor(private pipelinesClientService: PipelinesClientService) {} constructor(private pipelinesClientService: PipelinesClientService) {}
@Get('start/:id') @Post('start/:id')
async activate(@Param() params, @Body() body) { async activate(@Param() params, @Body() body) {
const { id } = params; const { id } = params;
const { info } = body; const { info } = body;
console.log( console.log(
process.env.DEV_URL + `/transformation/start/${id}`, process.env.DEV_URL + `/pipeline/start/${id}`,
'ON START PIPELINE ROUTE', 'ON START PIPELINE ROUTE',
); );
+1 -1
View File
File diff suppressed because one or more lines are too long