Commit Graph

788 Commits

Author SHA1 Message Date
Karl Burtram
a104251885 Enable support for Windows users (#1957)
* WIP

* Update for Windows user
2023-03-21 19:00:11 -07:00
Alan Ren
692f444ccb simplify drop object request handler (#1953)
* simplify drop object request handler

* fix test cases

* fix issues

* update strings

* fix error

* fix error
2023-03-20 21:54:34 -07:00
Karl Burtram
f59ca1954b Enable user management tests (#1912)
* Enable user management tests

* Fix update user test
2023-03-15 17:52:09 -07:00
Matteo Taveggia
ffed8313d9 Exposing a DisableVariableSubstitution on the Parser object (#1941)
* Cleaning up a few tests; fixing one

* Exposing DisableVariableSubstitution in Parser; fixing NRE; adding tests

* Added another test

* Addressing CR feedback; added tests
2023-03-13 22:04:04 -07:00
Matteo Taveggia
d5266ef6f3 Cleaning up a few tests; fixing one (#1940) 2023-03-13 01:04:09 -07:00
Karl Burtram
a074b5bf67 Update User edit handlers (#1903)
* WIP

* Update user tests

* WIP updates

* WIP

* Fix several edit use bugs

* Disable failing tests

* minor updates

* Remove unused using
2023-03-06 14:43:38 -08:00
Benjin Dubishar
b27b7dc379 Adding SetDSP support to SqlProjects service (#1895)
* Adding SetDSP support

* correcting comment
2023-03-02 20:10:13 -08:00
Kim Santiago
bb838269ac Updating add database reference requests to check null or whitespace (#1894) 2023-03-02 16:37:16 -08:00
Benjin Dubishar
38836371ed Adding missing properties to GetProjectProperties call; also renaming NoneScript to NoneItem (#1890)
* Renaming NoneScript to NoneItem

* missed a file

* Fixing comments

* Adding ProjectStyle to properties

* Projects nuget bump

* Adding DatabaseSchemaProvider to the props
2023-03-02 13:52:35 -08:00
Cheena Malhotra
187b6ecc14 Introduce AAD interactive auth mode (#1860) 2023-03-02 09:39:54 -08:00
Kim Santiago
c7e64e2334 Remove Value in AddSqlCmdVariableParams (#1885) 2023-03-01 10:03:38 -08:00
Benjin Dubishar
68ac1e01fc Adding project property support to SqlProj service (#1883)
* Nuget update

* Updating nuget

* implementation

* GetProperties test

* Adding SetDatabaseSource

* adding comment

* Nuget update

* PR feedback

* Fixing cross-plat path tests

* Updating to signed nuget

* fixing None test
2023-02-28 18:27:42 -08:00
Cheena Malhotra
c83f380b8e Improve secure enclaves error handling (#1880) 2023-02-28 13:31:40 -08:00
Benjin Dubishar
7941e871d9 Adding SqlProject service support for <None> entries (#1884)
* Implementation

* NoneScript test

* patching up test

* Updating comments
2023-02-28 09:40:20 -08:00
Benjin Dubishar
dc259d70ad Correcting typo (#1882)
* Correcting tyo

* removing extra space

* tests
2023-02-27 16:14:59 -08:00
Sakshi Sharma
b44f0d561f Save file structure in scmp file (#1878)
* Save file structure in scmp files

* Update DacFx version and add test

* Address comments

* Fix test

* try to fix tests

---------

Co-authored-by: Kim Santiago <kisantia@microsoft.com>
2023-02-24 14:24:25 -08:00
Benjin Dubishar
f7fd478857 Adding getters for project items in SqlProject service (#1879)
* Adding getters for project items

* updated comment
2023-02-23 16:25:01 -08:00
Benjin Dubishar
2506a4df9c Renaming NewSqlProject to CreateSqlProject to have verb-forward terminology (#1876) 2023-02-21 15:58:23 -08:00
Aasim Khan
e8d24f8e47 Moving out legacy schemas into their own folder (#1866) 2023-02-17 14:31:25 -08:00
Hai Cao
7ffc85d7fc Add login management handlers (#1868)
* update contracts

* finish creating/loading login for SQL Server

* support role read for azure and add more handlers

* fix advanced option flags

---------

Co-authored-by: Karl Burtram <karlb@microsoft.com>
2023-02-17 09:56:03 -08:00
Karl Burtram
675427c690 User creation handler clean-ups (#1867)
* Wire up init user message

* Send schema list

* Load database roles

* Add create user

* Add a delete user handler and format service file
2023-02-17 08:38:17 -08:00
Aasim Khan
0f82062502 Removing migration code and packages from sts (#1864)
* Removing migration code and packages from sts

* Removing condition
2023-02-15 22:10:30 -08:00
Aasim Khan
c26a2aea14 Adding schema based object folders in OE (#1849)
* Making node types automated

* Adding schema based OE

* added folder types in NodeTypes

* Fixing stuff

* Moving schema to parent and cleaning up some code

* Replacing strings with nameof

* Sorting nodetypes generated by tt

* Adding option to put folders after nodes

* Fixing folder and children order

* Fixing tests

* Formatting file

* Formatting tt files

* Fixing tt

* fixing types

* Update src/Microsoft.SqlTools.ServiceLayer/SqlContext/ObjectExplorerSettings.cs

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>

* Fixing stuff

* Updating schema definitions and adding more logs

* Fixing copyright

* Adding Integration and Unit Tests

* Fixing test

---------

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
2023-02-14 13:40:51 -08:00
Benjin Dubishar
c32e1f2b26 Adding script move support for SqlProject service (#1861)
* Adding support for moving object, pre-deploy, and post-deploy scripts

* tests

* Removing redundant backslashes in strings
2023-02-10 18:35:11 -08:00
Benjin Dubishar
d0d67373d1 Adding support for database literal references for Dacpac and SqlProj references (#1858)
* fixing up some nullable spots

* Adding database literal support

* Adding tests and support for same database refs

* Fixing test

* merge laggard

* Split database reference tests up

* PR feedback

* Normalizing strings for cross-plat test passing

* Updating Projects nuget package

* Fixing up test
2023-02-10 11:36:31 -08:00
Alan Ren
15250a9178 make list databases return in their original order (#1859)
* return databases in their original order

* remove using statement

* fix unit tests

* fix error
2023-02-09 14:27:25 -08:00
Sakshi Sharma
497118ed82 Add support to save publish profile (#1844)
* Add support to save publish profile

* Address comments

* Update dacfx nuget package version

* Fix test

* Address comments

* Resolve package.props conflict

* Add content verification in test and use handler methods instead of try-catch

* Address comments
2023-02-09 11:56:43 -08:00
Benjin Dubishar
41c8f15e3e Adding project service support for pre/post-deployment scripts (#1853)
* Patch up db references

* Adding pre/post deploy scripts

* Adding tests

* adding tests
2023-02-08 18:28:23 -08:00
Karl Burtram
2ef5f0918a User management support classes (#1856)
* WIP

* Fix nullable warnings in UserData class

* WIP2

* WIP

* Refresh database prototype classes

* Fix some typos & merge issues

* WIP

* WIP

* WIP

* Additional updates

* Remove unneded using
2023-02-08 18:02:08 -08:00
Benjin Dubishar
19935552b1 Adds support for checking and updating cross-compatibility for SQL Projects (#1847)
* Adding cross-platform check and update

* Checkpoint

* checkpoint

* Updating for latest nuget package

* Correctly typing the result object
2023-02-07 19:06:13 -08:00
Cheena Malhotra
8d119876d9 Update to .NET 7 SDK (#1792) 2023-02-07 17:53:36 -08:00
Karl Burtram
51892519ef Remove unneccessary nullable directive (#1848) 2023-02-07 16:18:57 -08:00
Benjin Dubishar
4eac02453b Support for folders in the projects service (#1834)
* Delete folder support + tests

* updating casing

* cleanup
2023-02-06 11:30:03 -08:00
Karl Burtram
f288bee294 Make nullable warnings a per file opt-in (#1842)
* Make nullable warnings a per file opt-in

* Remove unneeded compiler directives

* Remove compiler directive for User Data
2023-02-03 18:10:07 -08:00
Benjin Dubishar
2e950f54bd Normalize string to fix test case on Unix (#1841) 2023-02-01 14:30:28 -08:00
Karl Burtram
7110b1b39b Update fake password for credscan (#1839) 2023-02-01 11:04:15 -08:00
Karl Burtram
3c25549986 Initial WIP code for user management (#1838)
* Initial user management code

* WIP

* Fix whitespace

* WIP user objects

* WIP user objects

* Cleanup ported code

* WIP

* WIP

* Update the User contracts

* Additional cleanups

* Remove warning silencing which isn't intended for this PR

* Fix some warnings as error in CI
2023-01-31 21:12:53 -08:00
Benjin Dubishar
9fe3aeddc3 Support for database references in SqlProjects service (#1832)
* initial checkin

* Initial

* Adding test

* Adding comments

* PR feedback
2023-01-31 16:52:07 -08:00
Charles Gagnon
036ce9b527 Fix broken STS language service tests (#1837)
* Fix broken STS language service tests

* consolidate
2023-01-31 13:25:44 -08:00
Benjin Dubishar
e2962390bc Support for SqlCmdVariables in SqlProjects service (#1831)
* Support for SqlCmdVariables

* Adding comments

* Adding update sqlcmdvar method

* swapping for success asserts
2023-01-30 15:45:15 -08:00
Aasim Khan
ab5a1e6c85 Separating Migration into its own project (#1828)
* Moving Migration service to its own project

* Adding loc files to the project

* Adding Migration to build

* Adding Migration Integration Tests

* Trying loops

* Fixing params

* Fixing indent

* Cleaning up yaml

* Getting command line arg for auto flush log

* Adding tde service
2023-01-30 10:30:28 -08:00
Benjin Dubishar
82171740bc Adding missing nuget references for SqlProjects functionality (#1827)
* Adding test messages

* Adding file system globbing reference

* fixing string

* fixing string again

* Sigh
2023-01-27 16:18:40 -07:00
Alan Ren
bc0426f946 disable unstable test case (#1825) 2023-01-25 20:21:20 -08:00
Benjin Dubishar
9cce26fcbd Initial check-in of SqlProjects service addition to SqlToolsService (#1805)
* initial commit

* Initial SqlProjects service + tests

* Added SqlObject script tests; PR feedback

* Added comments for contracts

* Swapping SqlProjectResult for ResultStatus

* Updating tests

* Added automatic test base that provides a working directory and automatic cleanup.
2023-01-25 14:16:15 -08:00
Hai Cao
bcf015f939 Fix datetimeoffset formatting (#1823) 2023-01-25 11:19:30 -08:00
Aasim Khan
b8581920b6 Adding extension service host for extension services (#1808) 2023-01-24 16:09:42 -08:00
Karl Burtram
fd82d5bc17 Fix warning during "dotnet restore" (#1822) 2023-01-24 13:54:14 -08:00
Cheena Malhotra
ac460adfc3 Enable IsLedger only for SQL 2022 (#1804) 2023-01-09 17:47:27 -08:00
Cheena Malhotra
a8f9219f09 Introduce support for "Command Timeout" connection property (#1765) 2023-01-03 21:42:32 -08:00
Cheena Malhotra
eca0cc484c Add support for firewall rule name in request (#1791) 2022-12-16 09:04:14 -08:00