Skip to content

Conversation

ssreerama
Copy link
Contributor

@ssreerama ssreerama commented Sep 23, 2025

Pull Request Template – vscode-mssql

Description

This pull request adds the target field appearance and validations on target option selection.

  • When the local container option is selected, four new fields appears with validations
    • Port, Admin password, confirm admin password and docker image
  • Added tests more maintainable and focused.
  • Additionally, new form fields, validation messages, and labels have been added for container and Azure SQL server scenarios.
  • toggle enable and disable Publish and script generation buttons based on target field selection and with successful validation

Code Changes Checklist

  • New or updated unit tests added
  • All existing tests pass (npm run test)
  • Code follows contributing guidelines
  • Telemetry/logging updated if relevant
  • No regressions or UX breakage

Reviewers: Please read our reviewer guidelines

image

1 TargetSection

@Benjin Benjin self-requested a review October 20, 2025 17:59
@ssreerama ssreerama requested review from Copilot October 20, 2025 18:02
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 19 out of 19 changed files in this pull request and generated 5 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

* @param targetVersion - The SQL Server version (e.g., "160" for SQL Server 2022)
* @returns Sorted array of tags filtered by version and organized by year
*/
export async function getSqlServerContainerTagsForTargetVersion(
Copy link
Contributor

Choose a reason for hiding this comment

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

This should also be confirmed with Iqra and (just as importantly) @croblesm. In the container deployment UX, we are intentionally only allowing users to select the latest/GAed tags for each version because we're told we should not be providing a way for users to install version of SQL that Microsoft doesn't provide support for. By that understanding, we shouldn't be pulling all the tags, and should just provide options for GA versions, which means this can likely just be hardcoded.

export function getPublishServerName(target: string) {
return target ===
targetPlatformToVersion.get("Azure SQL Database" /* SqlTargetPlatform.sqlAzure */)
return target === targetPlatformToVersion.get(SqlTargetPlatform.sqlAzure)
Copy link
Contributor

Choose a reason for hiding this comment

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

Out of curiosity, what is the target platform value for Fabric? Is that still sqlAzure?

// Use the deployment UI function with target version filtering
const tagComponent = this.state.formComponents[PublishFormFields.ContainerImageTag];
if (tagComponent) {
try {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should end up being removed to just use -latest for all, but waiting PM confirmation.

Benjin
Benjin previously approved these changes Oct 20, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@ssreerama ssreerama merged commit b310cc9 into main Oct 20, 2025
3 checks passed
@ssreerama ssreerama deleted the sai/vscodePublishDialog_1Target branch October 20, 2025 19:45
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.

5 participants