mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Arc and Azure CLI extensions GA + bug fix for SQL MIAA update (#18226)
* Changed instances of sql edit to sql update * Updated az sql mi-arc edit to be update. Changed the params for indirect and direct mode. * Removed preview from everywhere in arc and azcli extensions. * Bumped version numbers for both extensions and removed preview bool in package.jsons
This commit is contained in:
@@ -7,7 +7,7 @@ import * as vscode from 'vscode';
|
||||
import * as azdata from 'azdata';
|
||||
import * as azExt from 'az-ext';
|
||||
import * as loc from '../../../localizedConstants';
|
||||
import { IconPathHelper, cssStyles } from '../../../constants';
|
||||
import { IconPathHelper, cssStyles, ConnectionMode } from '../../../constants';
|
||||
import { DashboardPage } from '../../components/dashboardPage';
|
||||
import { MiaaModel, RPModel, DatabaseModel, systemDbs } from '../../../models/miaaModel';
|
||||
import { ControllerModel } from '../../../models/controllerModel';
|
||||
@@ -220,9 +220,23 @@ export class MiaaBackupsPage extends DashboardPage {
|
||||
cancellable: false
|
||||
},
|
||||
async (_progress, _token): Promise<void> => {
|
||||
await this._azApi.az.sql.miarc.edit(
|
||||
this._miaaModel.info.name, this._saveArgs, this._miaaModel.controllerModel.info.namespace, this._miaaModel.controllerModel.azAdditionalEnvVars);
|
||||
|
||||
if (this._miaaModel.controllerModel.info.connectionMode === ConnectionMode.direct) {
|
||||
await this._azApi.az.sql.miarc.update(
|
||||
this._miaaModel.info.name,
|
||||
this._saveArgs,
|
||||
this._miaaModel.controllerModel.info.resourceGroup,
|
||||
undefined, // Indirect mode argument - namespace
|
||||
undefined, // Indirect mode argument - usek8s
|
||||
this._miaaModel.controllerModel.azAdditionalEnvVars);
|
||||
} else {
|
||||
await this._azApi.az.sql.miarc.update(
|
||||
this._miaaModel.info.name,
|
||||
this._saveArgs,
|
||||
undefined, // Direct mode argument - resourceGroup
|
||||
this._miaaModel.controllerModel.info.namespace,
|
||||
true,
|
||||
this._miaaModel.controllerModel.azAdditionalEnvVars);
|
||||
}
|
||||
try {
|
||||
await this._miaaModel.refresh();
|
||||
} catch (error) {
|
||||
|
||||
@@ -7,7 +7,7 @@ import * as vscode from 'vscode';
|
||||
import * as azdata from 'azdata';
|
||||
import * as azExt from 'az-ext';
|
||||
import * as loc from '../../../localizedConstants';
|
||||
import { IconPathHelper, cssStyles } from '../../../constants';
|
||||
import { IconPathHelper, cssStyles, ConnectionMode } from '../../../constants';
|
||||
import { DashboardPage } from '../../components/dashboardPage';
|
||||
import { convertToGibibyteString } from '../../../common/utils';
|
||||
import { MiaaModel } from '../../../models/miaaModel';
|
||||
@@ -130,8 +130,23 @@ export class MiaaComputeAndStoragePage extends DashboardPage {
|
||||
},
|
||||
async (_progress, _token): Promise<void> => {
|
||||
try {
|
||||
await this._azApi.az.sql.miarc.edit(
|
||||
this._miaaModel.info.name, this.saveArgs, this._miaaModel.controllerModel.info.namespace, this._miaaModel.controllerModel.azAdditionalEnvVars);
|
||||
if (this._miaaModel.controllerModel.info.connectionMode === ConnectionMode.direct) {
|
||||
await this._azApi.az.sql.miarc.update(
|
||||
this._miaaModel.info.name,
|
||||
this.saveArgs,
|
||||
this._miaaModel.controllerModel.info.resourceGroup,
|
||||
undefined, // Indirect mode argument - namespace
|
||||
undefined, // Indirect mode argument - usek8s
|
||||
this._miaaModel.controllerModel.azAdditionalEnvVars);
|
||||
} else {
|
||||
await this._azApi.az.sql.miarc.update(
|
||||
this._miaaModel.info.name,
|
||||
this.saveArgs,
|
||||
undefined, // Direct mode argument - resourceGroup
|
||||
this._miaaModel.controllerModel.info.namespace,
|
||||
true,
|
||||
this._miaaModel.controllerModel.azAdditionalEnvVars);
|
||||
}
|
||||
} catch (err) {
|
||||
this.saveButton!.enabled = true;
|
||||
throw err;
|
||||
|
||||
Reference in New Issue
Block a user