-
Notifications
You must be signed in to change notification settings - Fork 542
Publish Dialog - Adding Target field functionality #20217
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
Conversation
…t/vscode-mssql into sai/vscodePublishDialog
src/reactviews/pages/PublishProject/components/FormFieldComponents.tsx
Outdated
Show resolved
Hide resolved
src/reactviews/pages/PublishProject/components/FormFieldComponents.tsx
Outdated
Show resolved
Hide resolved
src/reactviews/pages/PublishProject/components/PublishTargetSection.tsx
Outdated
Show resolved
Hide resolved
src/reactviews/pages/PublishProject/components/PublishTargetSection.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
src/reactviews/pages/PublishProject/components/PublishTargetSection.tsx
Outdated
Show resolved
Hide resolved
* @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( |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Pull Request Template – vscode-mssql
Description
This pull request adds the target field appearance and validations on target option selection.
Code Changes Checklist
npm run test
)Reviewers: Please read our reviewer guidelines