From dafb257fa38685381b2e36dd3790c4343077aede Mon Sep 17 00:00:00 2001 From: jawelton74 <103591340+jawelton74@users.noreply.github.com> Date: Fri, 6 Mar 2026 10:12:24 -0800 Subject: [PATCH] Fix the keys blade links to point to the common connection strings (#2417) blade. --- .../GraphAPICompute/GraphAPICompute.tsx | 2 +- src/SelfServe/SelfServeUtils.tsx | 23 +++---------------- src/SelfServe/SqlX/SqlX.tsx | 2 +- 3 files changed, 5 insertions(+), 22 deletions(-) diff --git a/src/SelfServe/GraphAPICompute/GraphAPICompute.tsx b/src/SelfServe/GraphAPICompute/GraphAPICompute.tsx index c116f8e30..56c4f8061 100644 --- a/src/SelfServe/GraphAPICompute/GraphAPICompute.tsx +++ b/src/SelfServe/GraphAPICompute/GraphAPICompute.tsx @@ -37,7 +37,7 @@ const connectionStringValue: Description = { textTKey: "ConnectionStringText", type: DescriptionType.Text, link: { - href: generateBladeLink(BladeType.SqlKeys), + href: generateBladeLink(BladeType.ConnectionStrings), textTKey: "KeysBlade", }, }; diff --git a/src/SelfServe/SelfServeUtils.tsx b/src/SelfServe/SelfServeUtils.tsx index ef4cb614c..6265a4a6b 100644 --- a/src/SelfServe/SelfServeUtils.tsx +++ b/src/SelfServe/SelfServeUtils.tsx @@ -41,27 +41,10 @@ export enum SelfServeType { */ export enum BladeType { /** - * Keys blade of a Azure Cosmos DB for NoSQL account. + * Connection Strings blade of a Azure Cosmos DB account. */ - SqlKeys = "keys", - /** - * Keys blade of a Azure Cosmos DB for MongoDB account. - */ - MongoKeys = "mongoDbKeys", - /** - * Keys blade of a Azure Cosmos DB for Apache Cassandra account. - */ - CassandraKeys = "cassandraDbKeys", - /** - * Keys blade of a Azure Cosmos DB for Apache Gremlin account. - */ - // TODO This is a obviously a bug, but for now, let's ignore the eslint error - // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values - GremlinKeys = "keys", - /** - * Keys blade of a Azure Cosmos DB for Table account. - */ - TableKeys = "tableKeys", + ConnectionStrings = "Connection%20strings", + /** * Metrics blade of an Azure Cosmos DB account. */ diff --git a/src/SelfServe/SqlX/SqlX.tsx b/src/SelfServe/SqlX/SqlX.tsx index 43bb745e6..42f361511 100644 --- a/src/SelfServe/SqlX/SqlX.tsx +++ b/src/SelfServe/SqlX/SqlX.tsx @@ -44,7 +44,7 @@ const connectionStringValue: Description = { textTKey: "ConnectionStringText", type: DescriptionType.Text, link: { - href: generateBladeLink(BladeType.SqlKeys), + href: generateBladeLink(BladeType.ConnectionStrings), textTKey: "KeysBlade", }, };