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
794daa3440
add SDK option to create project from db quickpick ( #19100 )
...
* Add SDK option to create project from db quickpick
* cleanup
2022-04-15 09:57:48 -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
f002a26fe4
Add convert to SDK style project to context menu ( #18847 )
...
* differentiate between sdk and legacy style projects in tree
* switch to legacy
* add to context menu
* add function call
2022-03-29 10:15:36 -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
Vasu Bhog
80007a72cc
Remove sql-bindings logic from sql-database-projects ( #18754 )
...
* remove sql-bindings logic from sql-database-projects
2022-03-17 11:36:28 -07:00
Kim Santiago
023e10b496
Add preview and bump versions ( #18749 )
2022-03-17 10:47:50 -07:00
Kim Santiago
5f2d8b2bd5
remove sql server 2005 and 2008 as options for sql database projects ( #18664 )
...
* remove sql server 2005 and 2008 from target platforms
* also remove 2005 and 2008 from SqlTargetPlatform enum
* fix a windows test
2022-03-10 18:11:49 -08:00
Leila Lali
8e9957adbe
SQLProj: No docker image build needed for deploying a database to docker ( #18629 )
2022-03-04 14:32:43 -08:00
Kim Santiago
9e3d678536
add learn more link for sdk style in create project from db dialog ( #18637 )
2022-03-04 13:00:21 -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
Vasu Bhog
9b3dd4247c
Add SQL Binding Password Prompts ( #18241 )
...
* add password warning
* password prompts
2022-02-09 00:42:27 -08:00
Kim Santiago
243afc9f54
add confirmation message to update project from db dialog ( #18199 )
2022-02-02 17:04:12 -08:00
Charles Gagnon
1c9ba64ee0
check-param-names ( #18189 )
2022-01-31 12:39:22 -08:00
Charles Gagnon
7509188764
Fix sql db project string ( #18046 )
...
* Fix string
* Update string
2022-01-21 13:39:55 -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
Vasu Bhog
d4534f875f
Add Connection String Enhancement for SQL Bindings ( #18011 )
...
* sql database work to prompt users to choose connections
* add test
2022-01-13 17:54:46 -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
Kim Santiago
cd6b39ffee
add a project guid if a sql project doesn't have one ( #18009 )
2022-01-07 16:01:39 -08:00
Charles Gagnon
2bc6a0cd01
VS Code merge to df8fe74bd55313de0dd2303bc47a4aab0ca56b0e ( #17979 )
...
* Merge from vscode 504f934659740e9d41501cad9f162b54d7745ad9
* delete unused folders
* distro
* Bump build node version
* update chokidar
* FIx hygiene errors
* distro
* Fix extension lint issues
* Remove strict-vscode
* Add copyright header exemptions
* Bump vscode-extension-telemetry to fix webpacking issue with zone.js
* distro
* Fix failing tests (revert marked.js back to current one until we decide to update)
* Skip searchmodel test
* Fix mac build
* temp debug script loading
* Try disabling coverage
* log error too
* Revert "log error too"
This reverts commit af0183e5d4ab458fdf44b88fbfab9908d090526f.
* Revert "temp debug script loading"
This reverts commit 3d687d541c76db2c5b55626c78ae448d3c25089c.
* Add comments explaining coverage disabling
* Fix ansi_up loading issue
* Merge latest from ads
* Use newer option
* Fix compile
* add debug logging warn
* Always log stack
* log more
* undo debug
* Update to use correct base path (+cleanup)
* distro
* fix compile errors
* Remove strict-vscode
* Fix sql editors not showing
* Show db dropdown input & fix styling
* Fix more info in gallery
* Fix gallery asset requests
* Delete unused workflow
* Fix tapable resolutions for smoke test compile error
* Fix smoke compile
* Disable crash reporting
* Disable interactive
Co-authored-by: ADS Merger <karlb@microsoft.com >
2022-01-06 09:06:56 -08:00
Kim Santiago
703a925a92
Add folder for SDK style sql projects ( #17918 )
...
* update add folder for sdk style sql projects
* fix tests
* add test for add folder to sdk style project
* handle nested folders
* update helper function name
2021-12-16 09:35:29 -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
Kim Santiago
43d235ea42
update .net sdk location strings now that .net 6 is supported ( #17757 )
...
* update .net install strings now that .net 6 is supported
* copy old setting value to new setting
* update strings
* add link to issue
2021-12-02 15:32:07 -08:00
Leila Lali
7e17bfb6ec
Added UI for user to accept EULA when deploying sql proj to docker container ( #17762 )
2021-11-30 15:08:23 -08:00
Kim Santiago
0847f7cd38
Remove .net 6 version cutoff for building sql projects ( #17736 )
...
* remove .net 6 version cutoff for building sql projects
* Revert "Warning when .NET 6 SDK is detected (#17422 )"
This reverts commit 2ed8aeb565 .
* add back skipVersionSupportedCheck
* add back return false
* addressing comments
2021-11-23 14:32:05 -10:00
Leila Lali
9bdd6aca42
Adding UI for deploying a db proj to docker ( #17495 )
2021-11-18 14:44:33 -08:00
Lucy Zhang
3d9f54b0c0
Sql Binding: Add "Check out pane for more details" when nuget package download fails ( #17680 )
...
* check output for more details
* detail error
* wait for result from showerrormessage
2021-11-16 15:01:05 -08:00
Kim Santiago
6725e07ece
update names for msbuild sdk style projects ( #17677 )
...
* update names for msbuild sdk style projects
* remove msbuild from names
* update comments
2021-11-16 11:23:19 -10:00
Lucy Zhang
343e314103
SQL Binding: Give default connection setting name ( #17659 )
...
* show sqlconnectionstring in quickpick
* fix duplicate sqlconnectionstring setting
* add (new)
* add sqlconnectionstring as default setting name
* check if sqlconnectionstring already exists
2021-11-15 18:53:52 -08:00
Kim Santiago
8057bf855b
add support for Build Remove ( #17610 )
2021-11-09 10:45:56 -08:00
Kim Santiago
b8ea493f8c
Add support for showing files for glob style sql projects ( #17518 )
...
* use glob to get files for new style msbuild sdk sqlproj
* add tests
* cleanup
* fix test
* don't show bin and obj files and folders
* handle other glob patterns
* fix duplicate entries getting added for glob patterns in project's folder
2021-11-05 13:29:47 -07:00
Benjin Dubishar
5160814623
Dedupe shell command execution logic ( #17516 )
...
* Moved to shellExecutionHelper
* First crack
* fixed the deploy tests
* PR comments
* trigger GitHub actions
Co-authored-by: llali <llali@microsoft.com >
2021-11-04 17:16:58 -07:00
Kim Santiago
a34b5a0db7
show better error messages when parsing sqlproj ( #17589 )
...
* show better error messages when parsing sqlproj
* show error messages in console
2021-11-04 16:43:31 -07:00
Kim Santiago
312b410fff
Add type for Document in sql database projects ( #17539 )
2021-11-02 13:17:18 -07:00
Kim Santiago
0d485ffe2b
fix DefaultValue getting loaded for publish profiles ( #17526 )
...
* fix DefaultValue getting loaded for publish profiles
* add comment
2021-11-02 11:32:25 -07:00
Charles Gagnon
00e5380331
sql-database-projects dialog completion cleanup ( #17525 )
2021-10-28 13:51:48 -07:00
Kim Santiago
e372fd9bdc
Add project name to update project message ( #17512 )
...
* add project name to update SSDT project message
* add quotes
2021-10-27 15:13:30 -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
Z Chen
2ed8aeb565
Warning when .NET 6 SDK is detected ( #17422 )
...
* Check for max supported version
* Separate dialog for downgrade warning
* Address PR comments
* Use markdown link
* Update warning message
2021-10-21 13:48:52 -07:00
Benjin Dubishar
6f65119166
Use correct string when checking "browse" option ( #17432 )
...
* Correct browse string match
* Deduping const
2021-10-21 13:24:35 -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