mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-25 13:38:02 +00:00
Removing TODO comments
This commit is contained in:
parent
67ebce444f
commit
5b0a98dce7
@ -25,7 +25,6 @@ export const getPath = (subscriptionId: string, resourceGroup: string, name: str
|
||||
};
|
||||
|
||||
export const updateDedicatedGatewayResource = async (sku: string, instances: number): Promise<void> => {
|
||||
// TODO: write RP call to update dedicated gateway provisioning
|
||||
const path = getPath(userContext.subscriptionId, userContext.resourceGroup, userContext.databaseAccount.name);
|
||||
const body: UpdateDedicatedGatewayRequestParameters = {
|
||||
properties: {
|
||||
@ -62,7 +61,6 @@ export const getCurrentProvisioningState = async (): Promise<DedicatedGatewayRes
|
||||
};
|
||||
|
||||
export const refreshDedicatedGatewayProvisioning = async (): Promise<RefreshResult> => {
|
||||
// TODO: write RP call to check if dedicated gateway update has gone through
|
||||
try {
|
||||
const response = await getDedicatedGatewayResource();
|
||||
if (response.properties.status === ResourceStatus.Running.toString()) {
|
||||
|
@ -48,17 +48,14 @@ const skuDropDownItems: ChoiceItem[] = [
|
||||
];
|
||||
|
||||
const getSkus = async (): Promise<ChoiceItem[]> => {
|
||||
// TODO: get SKUs from getRegionSpecificSkus() RP call and return array of {label:..., key:...}.
|
||||
return skuDropDownItems;
|
||||
};
|
||||
|
||||
const getInstancesMin = async (): Promise<number> => {
|
||||
// TODO: get SKUs from getRegionSpecificSkus() RP call and return array of {label:..., key:...}.
|
||||
return 1;
|
||||
};
|
||||
|
||||
const getInstancesMax = async (): Promise<number> => {
|
||||
// TODO: get SKUs from getRegionSpecificSkus() RP call and return array of {label:..., key:...}.
|
||||
return 5;
|
||||
};
|
||||
|
||||
@ -120,7 +117,6 @@ export default class SqlX extends SelfServeBaseClass {
|
||||
};
|
||||
|
||||
public initialize = async (): Promise<Map<string, SmartUiInput>> => {
|
||||
// TODO: RP call to check if dedicated gateway has already been provisioned.
|
||||
// Based on the RP call enableDedicatedGateway will be true if it has not yet been enabled and false if it has.
|
||||
const defaults = new Map<string, SmartUiInput>();
|
||||
const enableDedicatedGateway = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user