Skip to content

Commit 20b7ba0

Browse files
[Metrics Advisor] update some files and generated files to core v2 (Azure#18736)
1 parent ca97010 commit 20b7ba0

File tree

391 files changed

+7952
-8906
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

391 files changed

+7952
-8906
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 1950 additions & 2254 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/core/core-client/src/urlHelpers.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ export function getRequestUrl(
2828

2929
let requestUrl = replaceAll(baseUri, urlReplacements);
3030
if (operationSpec.path) {
31-
const path = replaceAll(operationSpec.path, urlReplacements);
31+
let path = replaceAll(operationSpec.path, urlReplacements);
32+
// QUIRK: sometimes we get a path component like /{nextLink}
33+
// which may be a fully formed URL with a leading /. In that case, we should
34+
// remove the leading /
35+
if (operationSpec.path === "/{nextLink}" && path.startsWith("/")) {
36+
path = path.substring(1);
37+
}
3238
// QUIRK: sometimes we get a path component like {nextLink}
3339
// which may be a fully formed URL. In that case, we should
3440
// ignore the baseUri.

sdk/metricsadvisor/ai-metrics-advisor/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
"@azure/core-auth": "^1.3.0",
8383
"@azure/core-lro": "^2.2.0",
8484
"@azure/core-paging": "^1.1.1",
85-
"@azure/core-http": "^2.0.0",
85+
"@azure/core-client": "^1.0.0",
86+
"@azure/core-rest-pipeline": "^1.1.0",
8687
"@azure/core-tracing": "1.0.0-preview.13",
8788
"@azure/logger": "^1.0.0",
8889
"tslib": "^2.2.0"

sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/aad_metricsadvisoradministrationclient_datafeed_datafeed/recording_creates_an_azure_application_insights_feed.json

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)