Skip to content

Commit

Permalink
Hardcode experience tags (microsoft#2008)
Browse files Browse the repository at this point in the history
* Hardcode experience tags

* Version bump
  • Loading branch information
nturinski committed May 16, 2022
1 parent fdc83cd commit 1a18062
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vscode-cosmosdb",
"version": "0.18.2-alpha.9",
"version": "0.18.2-alpha.10",
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
"publisher": "ms-azuretools",
"displayName": "Azure Databases",
Expand Down
9 changes: 4 additions & 5 deletions src/AzureDBExperiences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import { DatabaseAccountGetResults } from '@azure/arm-cosmosdb/src/models';
import { IAzureQuickPickItem } from '@microsoft/vscode-azext-utils';
import { gremlinDefaultExperienceTag, mongoDefaultExperienceTag, sqlDefaultExperienceTag, tableDefaultExperienceTag } from './constants';
import { nonNullProp } from './utils/nonNull';

export enum API {
Expand Down Expand Up @@ -107,10 +106,10 @@ export function getExperienceQuickPickForAttached(api: API): IAzureQuickPickItem

// Mongo is distinguished by having kind="MongoDB". All others have kind="GlobalDocumentDB"
// Table and Gremlin are distinguished from SQL by their capabilities
export const CoreExperience: Experience = { api: API.Core, longName: "Core", description: "(SQL)", shortName: "SQL", kind: DBAccountKind.GlobalDocumentDB, tag: sqlDefaultExperienceTag } as const;
export const MongoExperience: Experience = { api: API.MongoDB, longName: "Azure Cosmos DB for MongoDB API", shortName: "MongoDB", kind: DBAccountKind.MongoDB, tag: mongoDefaultExperienceTag } as const;
export const TableExperience: Experience = { api: API.Table, longName: "Azure Table", shortName: "Table", kind: DBAccountKind.GlobalDocumentDB, capability: 'EnableTable', tag: tableDefaultExperienceTag } as const;
export const GremlinExperience: Experience = { api: API.Graph, longName: "Gremlin", description: "(graph)", shortName: "Gremlin", kind: DBAccountKind.GlobalDocumentDB, capability: 'EnableGremlin', tag: gremlinDefaultExperienceTag } as const;
export const CoreExperience: Experience = { api: API.Core, longName: "Core", description: "(SQL)", shortName: "SQL", kind: DBAccountKind.GlobalDocumentDB, tag: 'Core (SQL)' } as const;
export const MongoExperience: Experience = { api: API.MongoDB, longName: "Azure Cosmos DB for MongoDB API", shortName: "MongoDB", kind: DBAccountKind.MongoDB, tag: "Azure Cosmos DB for MongoDB API" } as const;
export const TableExperience: Experience = { api: API.Table, longName: "Azure Table", shortName: "Table", kind: DBAccountKind.GlobalDocumentDB, capability: 'EnableTable', tag: 'Azure Table' } as const;
export const GremlinExperience: Experience = { api: API.Graph, longName: "Gremlin", description: "(graph)", shortName: "Gremlin", kind: DBAccountKind.GlobalDocumentDB, capability: 'EnableGremlin', tag: 'Gremlin (graph)' } as const;
const PostgresSingleExperience: Experience = { api: API.PostgresSingle, longName: "PostgreSQL Single Server", shortName: "PostgreSQLSingle" };
const PostgresFlexibleExperience: Experience = { api: API.PostgresFlexible, longName: "PostgreSQL Flexible Server (Preview)", shortName: "PostgreSQLFlexible" };

Expand Down

0 comments on commit 1a18062

Please sign in to comment.