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

New UI for deploying SQL project to a new Azure server #18833

Merged
merged 41 commits into from
Apr 29, 2022
Merged

Conversation

llali
Copy link
Member

@llali llali commented Mar 25, 2022

Adding a new experience to publish a sqlproj to a new Azure server. The experience is only added for vscode mssql extension and not for ADS.
image
image
image
image
image
image
image

@llali llali requested review from Benjin and kisantia as code owners March 25, 2022 23:40
Copy link
Contributor

@Charles-Gagnon Charles-Gagnon left a comment

Choose a reason for hiding this comment

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

Haven't gone through this all - but at first glance I'm seeing a lot of Azure resource stuff here, including creating an Azure server. We shouldn't be having common function like that in here - it should live in a place that's usable by other features as well.

We have azurecore in ADS for that - so the work here then should be more about getting what you need implemented in VS Code in a similar way (or finding an existing extension that does this, such as the VS Code Azure extension) and then using one of those to do any operations against Azure resources.

@llali
Copy link
Member Author

llali commented Apr 22, 2022

Haven't gone through this all - but at first glance I'm seeing a lot of Azure resource stuff here, including creating an Azure server. We shouldn't be having common function like that in here - it should live in a place that's usable by other features as well.

We have azurecore in ADS for that - so the work here then should be more about getting what you need implemented in VS Code in a similar way (or finding an existing extension that does this, such as the VS Code Azure extension) and then using one of those to do any operations against Azure resources.

I agree having a shared place would be useful for other extensions. vacode-mssql extension might be the right place for this. I tried using Azure core which didn't work because of the way we authenticate to Azure using mssql-vscode extension.

@llali
Copy link
Member Author

llali commented Apr 25, 2022

Haven't gone through this all - but at first glance I'm seeing a lot of Azure resource stuff here, including creating an Azure server. We shouldn't be having common function like that in here - it should live in a place that's usable by other features as well.

We have azurecore in ADS for that - so the work here then should be more about getting what you need implemented in VS Code in a similar way (or finding an existing extension that does this, such as the VS Code Azure extension) and then using one of those to do any operations against Azure resources.

@Charles-Gagnon and @kisantia I moved the Azure API to mssql extension in this PR: microsoft/vscode-mssql#17321 please review that PR first and after it's approved, I'll update this PR so it calls the APIs using mssql extension

@llali
Copy link
Member Author

llali commented Apr 28, 2022

Haven't gone through this all - but at first glance I'm seeing a lot of Azure resource stuff here, including creating an Azure server. We shouldn't be having common function like that in here - it should live in a place that's usable by other features as well.
We have azurecore in ADS for that - so the work here then should be more about getting what you need implemented in VS Code in a similar way (or finding an existing extension that does this, such as the VS Code Azure extension) and then using one of those to do any operations against Azure resources.

@Charles-Gagnon and @kisantia I moved the Azure API to mssql extension in this PR: microsoft/vscode-mssql#17321 please review that PR first and after it's approved, I'll update this PR so it calls the APIs using mssql extension

@Charles-Gagnon @kisantia the change in mssql extension is checked in and applied in this PR. please continue with the review. Thanks

Copy link
Contributor

@kisantia kisantia left a comment

Choose a reason for hiding this comment

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

It would be helpful for reviewing to split up large PRs like this into smaller, easier to review PRs. Like split out the adding the Azure Resource additions into one, adding the create azure server quickpick in another.

Copy link
Contributor

@Charles-Gagnon Charles-Gagnon left a comment

Choose a reason for hiding this comment

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

Didn't look over the actual implementation much, but as far as my original concerns about duplicating logic it looks fine.

@ghost
Copy link

ghost commented Apr 29, 2022

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

❌ llali sign now
You have signed the CLA already but the status is still pending? Let us recheck it.

@llali llali merged commit d95aff1 into main Apr 29, 2022
@llali llali deleted the llali/deployToAzure branch April 29, 2022 22:39
kburtram pushed a commit that referenced this pull request May 19, 2022
…e only (#19422)

* add SDK option to create project from db quickpick (#19100)

* Add SDK option to create project from db quickpick

* cleanup

* New UI for deploying SQL project to a new Azure server (#18833)

* SQL Project Deploy to docker container - Adding a UI for user to select docker image tag (#19297)

* add docker image with telemetry for publish to container (#19360)

* add docker info image to telemetry for publish to container

* change name

* merge issue

* version bump

Co-authored-by: Kim Santiago <31145923+kisantia@users.noreply.github.com>
Co-authored-by: Leila Lali <llali@microsoft.com>
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.

6 participants