Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appservice: Add flexDeploy method #1524

Merged
merged 12 commits into from
Jul 18, 2023
Merged

appservice: Add flexDeploy method #1524

merged 12 commits into from
Jul 18, 2023

Conversation

nturinski
Copy link
Member

Adds functions to handle deploying to CV2 plans. I added a method to allow us to customize the deployment confirmation prompt and some other options a bit more since a need arose for it.

I'll link the PR that uses this in a bit.

bwateratmsft
bwateratmsft previously approved these changes Jul 18, 2023
queryParameters: { remoteBuild?: boolean, Deployer?: string }): Promise<AzExtPipelineResponse> {
const client: ServiceClient = await createGenericClient(context, this._site.subscription);
const queryOptions = convertQueryParamsValuesToString(queryParameters);
const queryString = Object.keys(queryOptions).map(key => key + '=' + queryOptions[key]).join('&');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const queryString = Object.keys(queryOptions).map(key => key + '=' + queryOptions[key]).join('&');
const queryString = new URLSearchParams(queryParameters).toString();

Comment on lines 33 to 38
const result: MessageItem = await context.ui.showWarningMessage(placeHolder,
{
modal: true,
stepName: 'confirmDestructiveDeployment',
learnMoreLink: options?.learnMoreLink
}, ...items);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatting

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guy, not even prefixing with a nit...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no nit, it's egregious

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

@nturinski nturinski merged commit 8303d0c into main Jul 18, 2023
@nturinski nturinski deleted the nat/flexDeploy branch July 18, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants