From aabe3bcf34d88d979bafa6b62b881688de6b61e6 Mon Sep 17 00:00:00 2001 From: Kanika Pasrija Date: Wed, 16 Sep 2020 19:38:41 +0530 Subject: [PATCH 1/7] adidng print message --- src/configure/configure.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/configure/configure.ts b/src/configure/configure.ts index 917b2dfe..b255a55f 100644 --- a/src/configure/configure.ts +++ b/src/configure/configure.ts @@ -34,6 +34,7 @@ const Layer: string = 'configure'; export let UniqueResourceNameSuffix: string = uuid().substr(0, 5); export async function configurePipeline(node: AzureTreeItem) { + vscode.window.showErrorMessage("new flow"); await telemetryHelper.executeFunctionWithTimeTelemetry(async () => { try { if (!(await extensionVariables.azureAccountExtensionApi.waitForLogin())) { From cef62978fd4d9a2acec43ff5e5cef5c0982eafc3 Mon Sep 17 00:00:00 2001 From: Kanika Pasrija Date: Wed, 16 Sep 2020 20:43:06 +0530 Subject: [PATCH 2/7] adidng print message --- src/configure/configure.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/configure/configure.ts b/src/configure/configure.ts index b255a55f..0448f21a 100644 --- a/src/configure/configure.ts +++ b/src/configure/configure.ts @@ -34,7 +34,7 @@ const Layer: string = 'configure'; export let UniqueResourceNameSuffix: string = uuid().substr(0, 5); export async function configurePipeline(node: AzureTreeItem) { - vscode.window.showErrorMessage("new flow"); + vscode.window.showErrorMessage("inside configure pipeline"); await telemetryHelper.executeFunctionWithTimeTelemetry(async () => { try { if (!(await extensionVariables.azureAccountExtensionApi.waitForLogin())) { @@ -93,6 +93,7 @@ class Orchestrator { public async configure(node: any): Promise { telemetryHelper.setCurrentStep('GetAllRequiredInputs'); + vscode.window.showErrorMessage("inside configure"); await this.getInputs(node); if (this.continueOrchestration) { @@ -162,6 +163,7 @@ class Orchestrator { } private async getInputs(node: any): Promise { + vscode.window.showErrorMessage("inside get inputs"); let resourceNode = await this.analyzeNode(node); if (this.continueOrchestration) { From 29bfacf5529f1b3ea273342f0c746b7c2040cdbb Mon Sep 17 00:00:00 2001 From: Kanika Pasrija Date: Wed, 16 Sep 2020 20:56:00 +0530 Subject: [PATCH 3/7] adidng print message --- src/configure/configure.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configure/configure.ts b/src/configure/configure.ts index 202b0283..2e70809f 100644 --- a/src/configure/configure.ts +++ b/src/configure/configure.ts @@ -100,7 +100,7 @@ class Orchestrator { public async configure(node: any): Promise { telemetryHelper.setCurrentStep('GetAllRequiredInputs'); - vscode.window.showErrorMessage("inside configure"); + vscode.window.showErrorMessage(node.value.id); await this.getInputs(node); if (this.continueOrchestration) { From 79f05c3fecd4f22715cbe8c0183ca158d6736295 Mon Sep 17 00:00:00 2001 From: Kanika Pasrija Date: Wed, 16 Sep 2020 21:04:37 +0530 Subject: [PATCH 4/7] adidng print message --- src/configure/configure.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configure/configure.ts b/src/configure/configure.ts index 2e70809f..a59259bc 100644 --- a/src/configure/configure.ts +++ b/src/configure/configure.ts @@ -171,7 +171,7 @@ class Orchestrator { } private async getInputs(node: any): Promise { - vscode.window.showErrorMessage("inside get inputs"); + vscode.window.showErrorMessage("inside get inputs" + node); let resourceNode = await this.analyzeNode(node); if (this.continueOrchestration) { From 1d87928c93a4b1875bd1d7969ec83b94f0632805 Mon Sep 17 00:00:00 2001 From: Kanika Pasrija Date: Thu, 17 Sep 2020 16:35:32 +0530 Subject: [PATCH 5/7] browse msg --- src/configure/browse.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/configure/browse.ts b/src/configure/browse.ts index 5e1f1d98..54004971 100644 --- a/src/configure/browse.ts +++ b/src/configure/browse.ts @@ -1,19 +1,20 @@ import * as vscode from 'vscode'; import { AzureTreeItem, UserCancelledError } from 'vscode-azureextensionui'; - import { AppServiceClient, ScmType } from './clients/azure/appServiceClient'; import { getSubscriptionSession } from './helper/azureSessionHelper'; import { ControlProvider } from './helper/controlProvider'; -import { telemetryHelper, Result } from './helper/telemetryHelper'; -import { AzureSession, ParsedAzureResourceId, extensionVariables } from './model/models'; +import { Result, telemetryHelper } from './helper/telemetryHelper'; +import { AzureSession, extensionVariables, ParsedAzureResourceId } from './model/models'; import * as constants from './resources/constants'; import { Messages } from './resources/messages'; import { TelemetryKeys } from './resources/telemetryKeys'; import { TracePoints } from './resources/tracePoints'; + const Layer = 'browsePipeline'; export async function browsePipeline(node: AzureTreeItem): Promise { + vscode.window.showErrorMessage("inside brpwse pipeline func"); await telemetryHelper.executeFunctionWithTimeTelemetry(async () => { try { if (!!node && !!node.fullId) { @@ -47,7 +48,7 @@ async function browsePipelineInternal(resourceId: string, appServiceClient: AppS if (scmType === ScmType.VSTSRM.toLowerCase()) { await browseAzurePipeline(resourceId, appServiceClient); } - else if(scmType === ScmType.GITHUBACTION.toLowerCase() && extensionVariables.enableGitHubWorkflow) { + else if (scmType === ScmType.GITHUBACTION.toLowerCase() && extensionVariables.enableGitHubWorkflow) { await browseGitHubWorkflow(resourceId, appServiceClient); } else if (scmType === '' || scmType === ScmType.NONE.toLowerCase()) { @@ -85,7 +86,7 @@ async function browseGitHubWorkflow(resourceId: string, appServiceClient: AppSer let webAppMetaData = await appServiceClient.getAppServiceMetadata(resourceId); if (!!webAppSourceControl && !!webAppSourceControl.properties && webAppSourceControl.properties.isGitHubAction) { - let url = `${webAppSourceControl.properties.repoUrl}/actions?query=${encodeURI("workflow:\"" + (!!webAppMetaData.properties.configName ? webAppMetaData.properties.configName : webAppMetaData.properties.configPath) + "\"")}`; + let url = `${webAppSourceControl.properties.repoUrl}/actions?query=${encodeURI("workflow:\"" + (!!webAppMetaData.properties.configName ? webAppMetaData.properties.configName : webAppMetaData.properties.configPath) + "\"")}`; await vscode.env.openExternal(vscode.Uri.parse(url)); telemetryHelper.setTelemetry(TelemetryKeys.BrowsedExistingPipeline, 'true'); } From b79569d6fd4aef5ec95aaa6ef5a56dfebfa4497a Mon Sep 17 00:00:00 2001 From: Kanika Pasrija Date: Mon, 21 Sep 2020 14:51:59 +0530 Subject: [PATCH 6/7] bj --- src/configure/configure.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configure/configure.ts b/src/configure/configure.ts index a59259bc..2e0d6146 100644 --- a/src/configure/configure.ts +++ b/src/configure/configure.ts @@ -100,7 +100,7 @@ class Orchestrator { public async configure(node: any): Promise { telemetryHelper.setCurrentStep('GetAllRequiredInputs'); - vscode.window.showErrorMessage(node.value.id); + vscode.window.showErrorMessage(node.id); await this.getInputs(node); if (this.continueOrchestration) { From f10988980c70993ab7f831413deb6a92960b5ec9 Mon Sep 17 00:00:00 2001 From: Kanika Pasrija Date: Mon, 28 Sep 2020 12:51:10 +0530 Subject: [PATCH 7/7] er --- src/configure/configure.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/configure/configure.ts b/src/configure/configure.ts index 2e0d6146..e1459fd3 100644 --- a/src/configure/configure.ts +++ b/src/configure/configure.ts @@ -36,6 +36,8 @@ export let UniqueResourceNameSuffix: string = uuid().substr(0, 5); export async function configurePipeline(node: AzureTreeItem) { vscode.window.showErrorMessage("inside configure pipeline"); + throw Error("vhvh"); + await telemetryHelper.executeFunctionWithTimeTelemetry(async () => { try { if (!(await extensionVariables.azureAccountExtensionApi.waitForLogin())) {