From 2873c5c07833bc32446af97504cde71efbac6795 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sat, 5 Dec 2020 09:26:19 -0300 Subject: [PATCH] fix(core.gbapp): NLP automation is fully tested. --- .../azuredeployer.gbapp/services/AzureDeployerService.ts | 2 +- packages/core.gbapp/services/GBDeployer.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/azuredeployer.gbapp/services/AzureDeployerService.ts b/packages/azuredeployer.gbapp/services/AzureDeployerService.ts index cfde7b74..01571d77 100644 --- a/packages/azuredeployer.gbapp/services/AzureDeployerService.ts +++ b/packages/azuredeployer.gbapp/services/AzureDeployerService.ts @@ -736,7 +736,7 @@ export class AzureDeployerService implements IGBInstallationDeployer { const body = { versionId: "0.1", isStaging: false, - directVersionPublish: true + directVersionPublish: false } const req = new WebResource(); req.method = 'POST'; diff --git a/packages/core.gbapp/services/GBDeployer.ts b/packages/core.gbapp/services/GBDeployer.ts index b9c71bdb..75d46106 100644 --- a/packages/core.gbapp/services/GBDeployer.ts +++ b/packages/core.gbapp/services/GBDeployer.ts @@ -247,7 +247,8 @@ export class GBDeployer implements IGBDeployer { public async publishNLP(instance: IGBInstance): Promise { const service = new AzureDeployerService(this); - const res = await service.publishNLP(instance.cloudLocation, instance.nlpAppId, instance.nlpAuthoringKey); + const res = await service.publishNLP(instance.cloudLocation, instance.nlpAppId, + instance.nlpAuthoringKey); if (res.status !== 200 && res.status !== 201) throw res.bodyAsText; } @@ -269,7 +270,7 @@ export class GBDeployer implements IGBDeployer { instance.cloudLocation, instance.nlpAppId, listName, - instance.nlpKey, + instance.nlpAuthoringKey, listData ); if (res.status !== 200) throw res.bodyAsText;