mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
ADS changes for new engine edition (#7695)
* Sql on demand changes * Formating files * Removing features for new Engine Edition * Fixing Restore & Backup issue. Adding support for multiple conditions per flavor * tabifying * Formating documents * Work in progress * Resolving comments * Resolving comments. * Fixing typo
This commit is contained in:
committed by
GitHub
parent
65fb77ef5c
commit
397f6afaf1
@@ -50,17 +50,17 @@
|
||||
"objectExplorer/item/context": [
|
||||
{
|
||||
"command": "adminToolExtWin.launchSsmsMinGswDialog",
|
||||
"when": "isWindows && connectionProvider == MSSQL && nodeType && nodeType == Database",
|
||||
"when": "isWindows && connectionProvider == MSSQL && nodeType && nodeType == Database && mssql:engineedition != 11",
|
||||
"group": "z-AdminToolExt@1"
|
||||
},
|
||||
{
|
||||
"command": "adminToolExtWin.launchSsmsMinPropertiesDialog",
|
||||
"when": "isWindows && connectionProvider == MSSQL && serverInfo && !isCloud && nodeType && nodeType == Server",
|
||||
"when": "isWindows && connectionProvider == MSSQL && serverInfo && !isCloud && nodeType && nodeType == Server && mssql:engineedition != 11",
|
||||
"group": "z-AdminToolExt@2"
|
||||
},
|
||||
{
|
||||
"command": "adminToolExtWin.launchSsmsMinPropertiesDialog",
|
||||
"when": "isWindows && connectionProvider == MSSQL && serverInfo && nodeType && nodeType =~ /^(Database|Table|Column|Index|Statistic|View|ServerLevelLogin|ServerLevelServerRole|ServerLevelCredential|ServerLevelServerAudit|ServerLevelServerAuditSpecification|StoredProcedure|ScalarValuedFunction|TableValuedFunction|AggregateFunction|Synonym|Assembly|UserDefinedDataType|UserDefinedType|UserDefinedTableType|Sequence|User|DatabaseRole|ApplicationRole|Schema|SecurityPolicy|ServerLevelLinkedServer)$/",
|
||||
"when": "isWindows && connectionProvider == MSSQL && serverInfo && nodeType && mssql:engineedition != 11 && nodeType =~ /^(Database|Table|Column|Index|Statistic|View|ServerLevelLogin|ServerLevelServerRole|ServerLevelCredential|ServerLevelServerAudit|ServerLevelServerAuditSpecification|StoredProcedure|ScalarValuedFunction|TableValuedFunction|AggregateFunction|Synonym|Assembly|UserDefinedDataType|UserDefinedType|UserDefinedTableType|Sequence|User|DatabaseRole|ApplicationRole|Schema|SecurityPolicy|ServerLevelLinkedServer)$/",
|
||||
"group": "z-AdminToolExt@2"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"description": "Manage and troubleshoot SQL Agent jobs",
|
||||
"provider": "MSSQL",
|
||||
"title": "SQL Agent",
|
||||
"when": "connectionProvider == 'MSSQL' && !mssql:iscloud",
|
||||
"when": "connectionProvider == 'MSSQL' && !mssql:iscloud && mssql:engineedition != 11",
|
||||
"container": {
|
||||
"controlhost-container": {
|
||||
"type": "agent"
|
||||
|
||||
@@ -35,17 +35,17 @@
|
||||
"objectExplorer/item/context": [
|
||||
{
|
||||
"command": "dacFx.start",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Database",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Database && mssql:engineedition != 11",
|
||||
"group": "export"
|
||||
},
|
||||
{
|
||||
"command": "dacFx.start",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Server",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Server && mssql:engineedition != 11",
|
||||
"group": "export"
|
||||
},
|
||||
{
|
||||
"command": "dacFx.start",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Folder && nodeLabel == 'Databases'",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Folder && nodeLabel == 'Databases' && mssql:engineedition != 11",
|
||||
"group": "export"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
"objectExplorer/item/context": [
|
||||
{
|
||||
"command": "flatFileImport.start",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Database",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Database && mssql:engineedition != 11",
|
||||
"group": "import"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
"id": "all-database-size-server-insight",
|
||||
"contrib": {
|
||||
"name": "Database Size (MB)",
|
||||
"when": "connectionProvider == 'MSSQL' && !mssql:iscloud",
|
||||
"when": "connectionProvider == 'MSSQL' && !mssql:iscloud && mssql:engineedition != 11",
|
||||
"gridItemConfig": {
|
||||
"x": 2,
|
||||
"y": 2
|
||||
@@ -83,7 +83,7 @@
|
||||
"contrib": {
|
||||
"cacheId": "backup-history-server-insight",
|
||||
"name": "Backup Status",
|
||||
"when": "connectionProvider == 'MSSQL' && !mssql:iscloud",
|
||||
"when": "connectionProvider == 'MSSQL' && !mssql:iscloud && mssql:engineedition != 11",
|
||||
"gridItemConfig": {
|
||||
"x": 1,
|
||||
"y": 1
|
||||
@@ -133,4 +133,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -308,11 +308,18 @@
|
||||
"flavors": [
|
||||
{
|
||||
"flavor": "on_prem",
|
||||
"condition": {
|
||||
"field": "isCloud",
|
||||
"operator": "!=",
|
||||
"value": true
|
||||
},
|
||||
"conditions": [
|
||||
{
|
||||
"field": "isCloud",
|
||||
"operator": "!=",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"field": "engineEditionId",
|
||||
"operator": "!=",
|
||||
"value": "11"
|
||||
}
|
||||
],
|
||||
"databaseProperties": [
|
||||
{
|
||||
"displayName": "%onprem.databaseProperties.recoveryModel%",
|
||||
@@ -362,11 +369,13 @@
|
||||
},
|
||||
{
|
||||
"flavor": "cloud",
|
||||
"condition": {
|
||||
"field": "isCloud",
|
||||
"operator": "==",
|
||||
"value": true
|
||||
},
|
||||
"conditions": [
|
||||
{
|
||||
"field": "isCloud",
|
||||
"operator": "==",
|
||||
"value": true
|
||||
}
|
||||
],
|
||||
"databaseProperties": [
|
||||
{
|
||||
"displayName": "%cloud.databaseProperties.azureEdition%",
|
||||
@@ -395,6 +404,36 @@
|
||||
"value": "serverEdition"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"flavor": "on_demand",
|
||||
"conditions": [
|
||||
{
|
||||
"field": "engineEditionId",
|
||||
"operator": "==",
|
||||
"value": "11"
|
||||
}
|
||||
],
|
||||
"databaseProperties": [
|
||||
{
|
||||
"displayName": "%cloud.databaseProperties.compatibilityLevel%",
|
||||
"value": "compatibilityLevel"
|
||||
},
|
||||
{
|
||||
"displayName": "%cloud.databaseProperties.owner%",
|
||||
"value": "owner"
|
||||
}
|
||||
],
|
||||
"serverProperties": [
|
||||
{
|
||||
"displayName": "%cloud.serverProperties.serverVersion%",
|
||||
"value": "serverVersion"
|
||||
},
|
||||
{
|
||||
"displayName": "%cloud.serverProperties.serverEdition%",
|
||||
"value": "serverEdition"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -22,7 +22,8 @@ export enum ContextKeys {
|
||||
|
||||
const isCloudEditions = [
|
||||
5,
|
||||
6
|
||||
6,
|
||||
11
|
||||
];
|
||||
|
||||
export function setCommandContext(key: ContextKeys | string, value: any) {
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
"objectExplorer/item/context": [
|
||||
{
|
||||
"command": "profiler.newProfiler",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Server",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Server && mssql:engineedition != 11",
|
||||
"group": "profiler"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
"objectExplorer/item/context": [
|
||||
{
|
||||
"command": "schemaCompare.start",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Database",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Database && mssql:engineedition != 11",
|
||||
"group": "export"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user