Charles Gagnon
f22c9a02ab
Update xmldom to 0.8.2 ( #19625 )
...
* Update xmldom to 0.8.2
* Fix test
* Comments
2022-06-06 12:59:09 -07:00
Leila Lali
e8158d4374
SQL Project: Opening connection viewlet after deploying database ( #19544 )
2022-06-03 11:44:58 -07:00
Kim Santiago
1bbf5a78c1
enable table designer for table script in sql database project ( #19237 )
...
* add 'open in designer' to context menu of tables in sql projects
* fix tests
* Address comments
* enable table designer for sql database proj
* update label and issues on init
* vbump sts
* use promisified fs
* pr comments
Co-authored-by: Alan Ren <alanren@microsoft.com >
2022-06-02 13:27:47 -07:00
Charles Gagnon
6ae380b65d
Remove unnecessary awaits from extensions ( #19571 )
...
* Remove unnecessary awaits
* fix ignore
* revert eslintignore
* try
* increase size
* Increase sql lint size
2022-05-31 15:36:44 -07:00
Charles Gagnon
45d7a6dd62
Clean up docs for connect and ConnectionResult ( #19509 )
...
* Clean up docs for connect and ConnectionResult
* links
* fix build
* fix
2022-05-25 10:38:00 -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
Leila Lali
e10b1eb5a9
SQL Project Deploy to docker container - Adding a UI for user to select docker image tag ( #19297 )
2022-05-11 11:29:11 -07:00
Kim Santiago
d122e7636c
remove default VS properties when converting legacy to SDK-style sql project ( #19255 )
2022-05-04 12:00:38 -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
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
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
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
Charles Gagnon
a6d442bb3b
Consolidate extension typings files ( #18765 )
...
* Consolidate extension typings files
* fix
2022-03-18 09:24:22 -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
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
d24a289af5
fix SDK style projects not being able to find system dacpacs ( #18218 )
...
* fix SDK style projects not being able to find system dacpacs
* fix tests
2022-02-16 09:36:01 -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
Kim Santiago
f0dd31c457
fix excluding pre/post/none deploy scripts in sdk style projects ( #18117 )
2022-01-25 11:49:52 -08:00
Kim Santiago
6a288dcaa5
add types instead of using any in project.ts ( #18091 )
2022-01-14 12:53:57 -08:00
Charles Gagnon
19039c8fc7
Update VS Code MSSQL typings ( #18055 )
...
* Update VS Code MSSQL typings
* fix compile
2022-01-12 11:31:01 -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
Kim Santiago
443257e699
Handle delete folder for SDK style sql projects ( #17961 )
...
* handle delete folder for sdk style projects
* cleanup
* compare original sqlproj contents
* remove redundant checks
2021-12-20 12:43:30 -08:00
Kim Santiago
b6d38e6e58
fix pre/post deploy scripts getting double counted in the files for sdk style projects ( #17954 )
...
* fix pre/post deploy scripts getting double counted in the files for sdk style projects
* add test
* update comment
2021-12-16 15:32:32 -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
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
33f01054c0
Update remove file for sdk style sql projects ( #17688 )
...
* add support for removing file in new style project
* fix test
* only load files, not whole project when checking if a <Build Remove> needs to be added
* merge changes
* fixes after merge
2021-11-22 14:45:43 -10:00
Kim Santiago
a79c61ff4e
Fix ordering of reading sqlproj Build Includes and Removes ( #17712 )
...
* evaluate includes and removes in order in sqlproj
* fix after merge
* fix comment
* update comment
2021-11-22 11:50:06 -10:00
Leila Lali
9bdd6aca42
Adding UI for deploying a db proj to docker ( #17495 )
2021-11-18 14:44:33 -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
Kim Santiago
5fccd8ebcd
update add file/folder for msbuild sdk style projects ( #17660 )
...
* update add file for msbuild sdk style projects
* also handle add folder
* fix comment
2021-11-15 15:00:50 -10:00
Kim Santiago
bf1cc057be
Refactoring readProjFile() ( #17637 )
...
* move reading project parts to different helper functions
* cleanup
* remove comment
* addressing comments
2021-11-12 15:02:52 -08: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
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
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
Leila Lali
d479c96658
Addressed comments left in a merged PR ( #17307 )
2021-10-11 09:07:12 -07:00
Leila Lali
d4b556c09c
Sqlproj - Saving the connection after db is deployed to docker container ( #17294 )
2021-10-07 15:48:09 -07:00
Leila Lali
3d810e8e20
sqlproj - publish to container - fix the image name, tag and added validation ( #17295 )
2021-10-07 14:39:05 -07:00