Kim Santiago
00800db506
Add include permissions option to create project from db dialog ( #20823 )
...
* add import permissions option to create project from db dialog
* change 'import' to 'include'
* update azdata dependency version
* update STS to 4.3.0.37
* fix test
2022-10-13 11:01:37 -07:00
Charles Gagnon
60c1c8a89f
Update ads-extension-telemetry to 1.3.1 ( #20724 )
...
* Update ads-extension-telemetry to 1.3.0
* fix
2022-10-04 23:06:53 -07:00
Sakshi Sharma
c6f3996ec7
Set target platform for db projects from server metadata: mssql vscode extension ( #20607 )
...
* Set target platform for mssql vscode extension- create project from db feature
* Addressed comments
* Address comment to add EngineEdition information in vscode-mssql.d.ts
2022-09-19 10:50:55 -07:00
Sakshi Sharma
a6920ca601
Set target platform for database project from the server metadata ( #20558 )
...
* Set target platform for database project from the server metadata
* Addressed comments
2022-09-09 09:12:12 -07:00
Kim Santiago
7c34c4bdc0
add config option for Microsoft.Build.Sql version used to build legacy sql projects ( #20532 )
...
* add config option for Microsoft.Build.Sql version used to build legacy sql projects
* addressing comments
2022-09-01 17:05:26 -07:00
Kim Santiago
fda2c37531
the fix open in designer menu item is not available after script is updated with newly added create table statements ( #20522 )
...
* make open in designer available after a script is updated with a new create table statement
* uppercase
2022-08-31 15:39:53 -07:00
Kim Santiago
8926c4f605
Remove sql project build dependency on STS ( #20447 )
...
* download Microsoft.Build.Sql sdk and extract
* cleanup extracted folder and nuget
* add constants
* cleanup
* remove package-lock.json
* making outputChannel required and some cleanup
* only download if the files aren't already there
* Add todo
* add try catches
* addressing comments
2022-08-31 14:04:06 -07:00
Charles Gagnon
60026a39f9
Add getDockerImageSpec and cleanDockerObjects to API ( #19900 )
...
* Add getDockerImageSpec and cleanDockerObjects to API
* docs
2022-07-01 12:57:40 -07:00
Charles Gagnon
dc006be73e
Make publish to docker settings properties required ( #19898 )
...
* Make publish to docker settings properties required
* move
2022-06-30 16:21:53 -07:00
Charles Gagnon
87f8f2fd90
Additional SQL Proj cleanup ( #19836 )
2022-06-27 17:29:49 -07:00
Charles Gagnon
5b95a47ca6
Add launchPublishToDockerContainerQuickpick to extension API ( #19834 )
...
* Initial
* remove namespace
* minor fixes
2022-06-27 15:29:43 -07:00
Leila Lali
22c315ea62
Fixing the telemetry property docker image name ( #19685 )
2022-06-08 16:06:00 -07:00
Leila Lali
e8158d4374
SQL Project: Opening connection viewlet after deploying database ( #19544 )
2022-06-03 11:44:58 -07:00
Leila Lali
6b10ecd588
Replaced db project readme file with opening a doc in browser after project is created ( #19543 )
2022-05-27 08:24:00 -07:00
Charles Gagnon
887d218342
Add default name to promptAddItem ( #19439 )
...
* Add default name to promptAddItem
* Change to addItemPrompt
2022-05-19 15:10:34 -07:00
Charles Gagnon
f2b623b3b2
Move promptAddItem to extension API ( #19423 )
...
* Move addItem to extension API
* add noneDeployScripts
2022-05-19 11:25:10 -07:00
Kim Santiago
7b4181dd13
add docker image with telemetry for publish to container ( #19360 )
...
* add docker info image to telemetry for publish to container
* change name
2022-05-12 14:03:17 -07:00
Barbara Valdez
742232ddd5
Add option to create sdk style project ( #19290 )
...
* update sql proj api
* remove extra spaces
* simplify check
2022-05-04 15:21:13 -07:00
Leila Lali
d95aff1d3c
New UI for deploying SQL project to a new Azure server ( #18833 )
2022-04-29 15:39:21 -07:00
Kim Santiago
d34b65ebb7
send telemetry for generate project from OpenApi spec ( #19188 )
2022-04-25 10:20:26 -07:00
Alexander Ivanov
0f598dd30b
Add sqlproj property to trace the origin of the project. ( #18670 )
...
* Add sqlproj property to trace the origin of the project.
As part of the database migration process (schema conversion, in particular) we want to be able to tell when converted schemas are being built/deployed to the actual database server. Given that we rely on the SQL Database Projects ADS extension for the compilation/deployment, we don't have too many options other than updating the said extension.
The suggested approach is to make the following changes:
1) Add new property to the sqlproj file (called `DatabaseSource`), which will maintain the origin(s) of the project. The property can contain multiple values (separated by semicolon), in case same project contains objects produced by multiple sources (extract schema, convert from another database, etc.).
2) During build and deploy actions, send the well-known values from the newly added property to the telemetry. We don't want to send any random value of the property, as it may raise some privacy concerns. Instead we define a list of the well-known values that we know do not carry any personal information and send those, if they are specified.
This change adds all necessary APIs to the SQl Database projects extension which will be consumed by our migration extensions to populate new `DatabaseSource` property.
* Use `undefined` instead of `null`
Co-authored-by: Kim Santiago <kisantia@microsoft.com >
2022-04-18 11:38:10 -07:00
Kim Santiago
379b24d78c
Add confirmation before converting to SDK-style project ( #18893 )
...
* Add confirmation before updating to SDK-style project
* update string
* update string
* update other learn more url
2022-04-07 15:48:05 -07:00
Kim Santiago
d6dab3dd18
Remove build and folder includes when converting to SDK-style project ( #18889 )
...
* remove Build and Folder Includes
* add tests
* cleanup
* rollback if there was an error during the conversion
2022-04-01 21:04:18 -04:00
Kim Santiago
8537a30996
fix project not getting updated after schema cmopare ( #18850 )
2022-03-29 11:55:12 -07:00
Leila Lali
459fab256e
Sql Proj: Adding a new sqlproj template for SQL dbs ( #18636 )
2022-03-29 09:06:56 -07:00
Kim Santiago
2f825f8a97
add initial SDK-style project migration ( #18827 )
...
* add initial SDK-style project migration
* addressing comments
2022-03-28 16:29:14 -07:00
Leila Lali
aad20bc338
Chaning the name of server in deploy option if target is Azure ( #18828 )
2022-03-28 15:07:09 -07:00
Nemanja Milovančević
5e68ff1dfe
Make mssql extension a module ( #18804 )
...
* Rebase from main branch
* import from module
* Add mssql module ref
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com >
2022-03-24 11:09:55 -07:00
Kim Santiago
3071a7b710
Add more telemetry for sql database projects ( #18751 )
...
* add more telemetry for sql database projects
* add publishToContainer events
* send target platform when publishing
* add duration for createProjectFromDb and updateProjectFromDb
2022-03-17 16:44:10 -07:00
Kim Santiago
7181d4c79e
Make SDK-style project a checkbox option instead of separate template ( #18698 )
...
* switch to using a checkbox instead of separate template for new SDK style project
* let project provider provide sdk learn more url
* Reorder
2022-03-11 16:54:53 -08:00
Benjin Dubishar
c64655ae71
Benjin/project update bug ( #18532 )
...
* correct result.success
* shifting success message to actually check success
* keying on errorMessage rather than success
2022-02-25 16:59:28 -08:00
Kim Santiago
7b92c9eb65
only show confirmation message for apply all changes, not for view changes in schema compare ( #18520 )
2022-02-22 13:33:24 -08:00
Z Chen
9e574ae602
Database Projects - Add existing file ( #18066 )
...
* Add existing file to sqlproj
* Address PR comments
* Fix failing test
* Add convertSlashesForSqlProj to test failure
2022-02-14 15:04:57 -08:00
Kim Santiago
fa4161d9a1
Add SDK style project option to create project from db dialog ( #18243 )
...
* add sdk style project template
* update description and order
* add SDK style project option to create project from db dialog
* fix test
* switch to checkbox
* remove not used string
* fix test
2022-02-10 10:49:46 -08:00
Charles Gagnon
1c9ba64ee0
check-param-names ( #18189 )
2022-01-31 12:39:22 -08:00
Charles Gagnon
aff161b344
Have sql db proj publish command return publishing promise ( #18139 )
2022-01-25 14:11:30 -08:00
Kim Santiago
967cd2b102
Add SDK sql project template ( #18058 )
...
* add sdk style project template
* update description and order
* update template
* update template and add link
* remove ToolsVersion and xmlns from project node
* update template name to SQL Database (SDK)
2022-01-19 10:08:47 -08:00
Benjin Dubishar
292e60a767
Apply changes from remote database to sqlproj - sql-database-projects changes ( #17738 )
...
* update project from database
* update project from database
* Leftover merge update
* Slight refactor to add vscode entrypoints
* Re-adding leftover schemacompare bits that reference database project changes
* Removing unnecessary function
* Addiung GetDSP command to package.json
* tests and a race condition fix
* remove custom UUID generation code
* swapping awaits for voids on promises
* PR feedback
* PR feedback
* Hide update project command from vscode
* Swapping cross-extension commands for bound extension contract
* Re-adding schema compare radio buttons for sqlproj
* Adding refresh after project update
* Populating list of project scripts just before comparison to avoid missing script errors of project was separately edited
* Adding missing await for okay button enable check
* Correcting schema compare source when populated from a project
* Rename UpdateDataModel to be more clear
* Fix incorrectly changed type
* Added new runComparison schema compare command, hooked up to sqlproj extension
* Added progress indicator for "apply now" option
* moved string literal to constant
* Added missing await
* Setting missing "saveScmpButton" state to fix test
* Revert "Setting missing "saveScmpButton" state to fix test"
This reverts commit 55612c9def24ac9e3398f5bbd153d21d9d3ca37f.
* Removing preemptive resetWindow() call
* general cleanup
* PR feedback
* property renames
* Reverting rename; requires Tools Service change first
* Adding header to updateProject
* Adding missing header
* PR feedback
* adding missing await
* Handing race condition for UI enable
* Fixing broken okay enable case
* Fixing enum comparison wonk
Co-authored-by: Noureldine Yehia <t-nyehia@microsoft.com >
2022-01-11 16:52:09 -08:00
Charles Gagnon
7940814e8d
Add GenerateProjectFromOpenApiSpecOptions ( #18045 )
...
* wip
* Undo string change
* more changes
2022-01-11 11:57:21 -08:00
Kim Santiago
e11b1ed2a3
update sql projects test ( #17987 )
2022-01-05 10:03:24 -08:00
Kim Santiago
2b1acbc2c7
Handle exclude folder for sdk style sql projects ( #17826 )
...
* handle exclude Folder for sdk style projects
* update comment
* fix tests
* cleanup
* handle nested folders
* cleanup
* addressing comments
2021-12-14 11:29:42 -08:00
Leila Lali
9bdd6aca42
Adding UI for deploying a db proj to docker ( #17495 )
2021-11-18 14:44:33 -08:00
Kim Santiago
6f03cbac97
support building msbuild sdk style projects ( #17675 )
...
* support building msbuild sdk style projects
* fixes after merge
2021-11-17 07:59:43 -10:00
Kim Santiago
66c438db4d
Fix sql projects net6 warnings ( #17673 )
...
* fix .net 6 error showing on startup
* fix double warning
* addressing comments
* update key string
2021-11-16 10:02:15 -10:00
Kim Santiago
b6047ad87d
Move project entry classes to separate file ( #17629 )
...
* moving ProjectEntry stuff to another file
* cleanup
2021-11-09 16:03:39 -08:00
Charles Gagnon
00e5380331
sql-database-projects dialog completion cleanup ( #17525 )
2021-10-28 13:51:48 -07:00
Kim Santiago
fee9c6e071
Don't show update project warning for new style sqlproj ( #17490 )
...
* don't show SSDT update warning for new style projects
* update strings
* add checks for the 2 other ways to specify msbuild sdk
* add link to docs on how to use project sdk
Co-authored-by: Kim Santiago <kisantia@Kims-MacBook-Pro.local >
2021-10-27 12:53:38 -07:00
Benjin Dubishar
86320155ed
Correcting log messages during autorest execution selection ( #17434 )
...
* Correcting log messages during autorest execution choice
* Combining redundant strings
* Correcting icon + loc
* Fixing typo
2021-10-22 06:01:11 -07:00
Benjin Dubishar
7f92d8bc19
Add prompt for autorest SQL project name ( #17365 )
...
* Adding prompt for project name
* Updating test
* PR feedback
* Fixing rename logic so that folder is also named according to project
* Updating autorest test to confirm rename
2021-10-17 07:53:22 -07:00
Benjin Dubishar
ecb7f9311a
Adding progress indicator for autorest generation ( #17371 )
2021-10-15 23:42:57 -07:00