From 919f1e462ece2a91963498b1a7cfca481b583e79 Mon Sep 17 00:00:00 2001 From: sagIoTPower Date: Mon, 4 Mar 2024 13:50:02 +0100 Subject: [PATCH] sync method names between: analytics.service & flask_wrapper --- analytics-service/flask_wrapper.py | 8 ++++---- analytics-ui/src/manage/extension-grid.component.ts | 2 +- analytics-ui/src/shared/analytics.service.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/analytics-service/flask_wrapper.py b/analytics-service/flask_wrapper.py index 4742293..23b9f89 100644 --- a/analytics-service/flask_wrapper.py +++ b/analytics-service/flask_wrapper.py @@ -76,7 +76,7 @@ def get_content(repository): @app.route("/extension", methods=["POST"]) -def create_extension(): +def create_extension_zip (): # sample url # "https://api.github.com/repos/SoftwareAG/apama-analytics-builder-block-sdk/contents/samples/blocks/CreateEvent.mon?ref=rel/10.18.0.x" @@ -190,7 +190,7 @@ def create_extension(): # category: Category; # } @app.route("/cep/extension/", methods=["GET"]) -def get_cep_extension(name): +def get_extension(name): cep_extension = {name} return cep_extension, 200 @@ -203,7 +203,7 @@ def get_cep_extension(name): # messages: string[]; # } @app.route("/cep/extension", methods=["GET"]) -def get_cep_extension_metadata(): +def get_extension_metadata(): cep_extension_metadata = [] return cep_extension_metadata, 200 @@ -224,7 +224,7 @@ def get_cep_operationobject_id(): # status # @app.route("/cep/status", methods=["GET"]) @app.route("/cep/status", methods=["GET"]) -def get_get_cep_ctrl_status(): +def get_cep_ctrl_status(): result = agent.get_cep_ctrl_status(request_headers=request.headers) if (result == None): return f"Not found", 400 diff --git a/analytics-ui/src/manage/extension-grid.component.ts b/analytics-ui/src/manage/extension-grid.component.ts index f2faffd..4c97b3d 100644 --- a/analytics-ui/src/manage/extension-grid.component.ts +++ b/analytics-ui/src/manage/extension-grid.component.ts @@ -37,7 +37,7 @@ export class ExtensionGridComponent implements OnInit { await this.analyticsService.getCEP_CtrlStatus(); this.cepId = microservice_application_id as string; this.cepCtrlStatus = await this.analyticsService.getCEP_CtrlStatus(); - this.cepOperationObject$ = this.analyticsService.getCEP_OperationsObject(); + this.cepOperationObject$ = this.analyticsService.getCEP_OperationObject(); this.extensions$ = this.reload$.pipe( tap((clearCache) => { if (clearCache) { diff --git a/analytics-ui/src/shared/analytics.service.ts b/analytics-ui/src/shared/analytics.service.ts index 036b6ae..7c248a7 100644 --- a/analytics-ui/src/shared/analytics.service.ts +++ b/analytics-ui/src/shared/analytics.service.ts @@ -246,7 +246,7 @@ export class AnalyticsService { return this._cepOperationObjectId; } - getCEP_OperationsObject(): Subject { + getCEP_OperationObject(): Subject { return this.cepOperationObject$; }