mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
GenerateToNotebook and Deploy buttons for Notebook Wizards (#12656)
* enable userChooses how to run notebook * arc ext changes * nb fixes * working version * revert unneeded changes * fix comments * Update interfaces.ts * fix comments * fix comments * fix comments * runAllCells instead of background execute * pr feedback * PR feedback * pr feedback * arc ext changes for new WizardInfo syntax * fix doc comments * pr feedback
This commit is contained in:
@@ -114,21 +114,53 @@ export interface BdcWizardInfo {
|
||||
notebook: string | NotebookPathInfo;
|
||||
type: BdcDeploymentType;
|
||||
}
|
||||
/**
|
||||
* An object that configures Script and Done buttons of the wizard.
|
||||
*/
|
||||
export interface WizardAction {
|
||||
label?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* This object defines the shape, form and behavior of a Notebook Wizard.
|
||||
*/
|
||||
export interface NotebookWizardInfo extends WizardInfoBase {
|
||||
/**
|
||||
* path to the template python notebook that is modified with variables collected in the wizard. A copy of this modified notebook is executed at the end of the wizard either from commonadline of from notebook editor in ADS.
|
||||
*/
|
||||
notebook: string | NotebookPathInfo;
|
||||
runNotebook?: boolean;
|
||||
/**
|
||||
* 0 based position number where the variables values are inserted into the notebook as python statements.
|
||||
*/
|
||||
codeCellInsertionPosition?: number;
|
||||
/**
|
||||
* This array defines the json for the pages of this wizard.
|
||||
*/
|
||||
pages: NotebookWizardPageInfo[]
|
||||
}
|
||||
|
||||
export interface WizardInfoBase extends FieldInfoBase {
|
||||
taskName?: string;
|
||||
type?: DeploymentType;
|
||||
actionText?: string;
|
||||
/**
|
||||
* done button attributes.
|
||||
*/
|
||||
doneAction: WizardAction;
|
||||
/**
|
||||
* script button attributes.
|
||||
*/
|
||||
scriptAction?: WizardAction;
|
||||
/**
|
||||
* title displayed on every page of the wizard
|
||||
*/
|
||||
title: string;
|
||||
name?: string;
|
||||
/**
|
||||
* This array defines the json for the pages of this wizard.
|
||||
*/
|
||||
pages: PageInfoBase[];
|
||||
/**
|
||||
* if true an auto generated summary page is inserted at the end of the wizard
|
||||
*/
|
||||
isSummaryPageAutoGenerated?: boolean
|
||||
}
|
||||
|
||||
@@ -401,11 +433,7 @@ export const enum BdcDeploymentType {
|
||||
ExistingOpenShift = 'existing-openshift'
|
||||
}
|
||||
|
||||
export const enum ArcDeploymentType {
|
||||
NewControlPlane = 'new-control-plane'
|
||||
}
|
||||
|
||||
export type DeploymentType = ArcDeploymentType | BdcDeploymentType;
|
||||
export type DeploymentType = BdcDeploymentType;
|
||||
|
||||
export interface Command {
|
||||
command: string;
|
||||
|
||||
Reference in New Issue
Block a user