From 0f9c3f4acb9160754dafdcd8c00b419e79fb17f2 Mon Sep 17 00:00:00 2001 From: tyaginidhi Date: Fri, 24 May 2024 09:09:14 +0530 Subject: [PATCH] Users/nityagi/fix cross geo flagread and release notes update (#964) * Auth Profile listing fix (#841) (#842) * Fix Enhanced data model filename language fetch and populate (#835) * February release notes updates for web extension (#831) * February release notes updates for web extension * Update for bug fix and release extension version * Auth Profile listing fix (#841) (#842) * Invoking Language server only for PowerPages workspace (#952) Co-authored-by: amitjoshi * Fix EnvId getting null for Web extension flow (#963) * Auth Profile listing fix (#841) (#842) * Fix Enhanced data model filename language fetch and populate (#835) * February release notes updates for web extension (#831) * February release notes updates for web extension * Update for bug fix and release extension version * Auth Profile listing fix (#841) (#842) * Invoking Language server only for PowerPages workspace (#952) Co-authored-by: amitjoshi * envID fix for desktop extension --------- Co-authored-by: Crash Collison <3751389+tehcrashxor@users.noreply.github.com> Co-authored-by: amitjoshi438 <54068463+amitjoshi438@users.noreply.github.com> Co-authored-by: amitjoshi * Update release notes and fix cross geo flag read and use * nit: fix spacing --------- Co-authored-by: Crash Collison <3751389+tehcrashxor@users.noreply.github.com> Co-authored-by: amitjoshi438 <54068463+amitjoshi438@users.noreply.github.com> Co-authored-by: amitjoshi --- CHANGELOG.md | 8 +++++--- src/common/services/ArtemisService.ts | 2 +- src/common/services/BAPService.ts | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48bbf09e..a9fd4a32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,13 @@ # Change Log - Power Platform Extension -## NEXTRELEASE +## 2.0.58 - pac CLI 1.32.7, (May 2024 refresh, see release notes on [nuget.org](https://www.nuget.org/packages/Microsoft.PowerApps.CLI/)) +- Web extension updates + - Copilot available in public regions that has " Move data across regions" option enabled per [Turn on copilots and generative AI features](https://learn.microsoft.com/en-us/power-platform/admin/geographical-availability-copilot#turn-on-copilots-and-generative-ai-features-1) ## 2.0.49 -Web extension updates -- Copresence support - Find out who's working on a site (Power Pages Studio and Power Pages VS Code for the Web) at the same time as you with copresence +- Web extension updates + - Copresence support - Find out who's working on a site (Power Pages Studio and Power Pages VS Code for the Web) at the same time as you with copresence ## 2.0.41 - pac CLI 1.31.6, (February 2024 refresh, see release notes on [nuget.org](https://www.nuget.org/packages/Microsoft.PowerApps.CLI/)) diff --git a/src/common/services/ArtemisService.ts b/src/common/services/ArtemisService.ts index ebbddd78..2f62ea92 100644 --- a/src/common/services/ArtemisService.ts +++ b/src/common/services/ArtemisService.ts @@ -41,7 +41,7 @@ export class ArtemisService { const intelligenceEndpoint = `https://aibuildertextapiservice.${geoName}-${'il' + clusterNumber}.gateway.${environment}.island.powerapps.com/v1.0/${orgId}/appintelligence/chat` - return { intelligenceEndpoint: intelligenceEndpoint, geoName: geoName, crossGeoDataMovementEnabledPPACFlag: false }; + return { intelligenceEndpoint: intelligenceEndpoint, geoName: geoName, crossGeoDataMovementEnabledPPACFlag: crossGeoDataMovementEnabledPPACFlag }; } return { intelligenceEndpoint: null, geoName: null, crossGeoDataMovementEnabledPPACFlag: false }; diff --git a/src/common/services/BAPService.ts b/src/common/services/BAPService.ts index dd258eab..511aaacd 100644 --- a/src/common/services/BAPService.ts +++ b/src/common/services/BAPService.ts @@ -22,8 +22,8 @@ export class BAPService { if (response.ok) { const data = await response.json(); - sendTelemetryEvent(telemetry, { eventName: VSCODE_EXTENSION_GET_CROSS_GEO_DATA_MOVEMENT_ENABLED_FLAG_COMPLETED, data: data.enabled }); - return data.enabled; + sendTelemetryEvent(telemetry, { eventName: VSCODE_EXTENSION_GET_CROSS_GEO_DATA_MOVEMENT_ENABLED_FLAG_COMPLETED, data: data.properties.copilotPolicies?.crossGeoCopilotDataMovementEnabled }); + return data.properties.copilotPolicies?.crossGeoCopilotDataMovementEnabled; } } catch (error) {