Commit Graph

1959 Commits

Author SHA1 Message Date
Cory Rivera
e3fc41af58 Add vscode notebook cells to valid list of URI types. (#1863) 2023-02-15 12:40:11 -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
Alan Ren
b717ca9d6c fix db list issue for contained users (#1855)
* fix db list issue for contained users

* add logging
2023-02-08 21:40:59 -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
8d428aeb8a Minor follow-ups for user management support classes (#1857) 2023-02-08 18:26:44 -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
Cory Rivera
ee086e2067 Bump Kusto and SQL Tools dotnet tool versions to 1.3.0 (#1854) 2023-02-08 16:47:28 -08:00
AkshayMata
c2a361b2bf Update login migrations nuget to return error codes (#1850)
Updated login migrations to return error codes
2023-02-08 12:57:51 -08:00
Benjin Dubishar
7baa975c62 Shifting handler-running methods to shared location (#1851)
* Shifting helper methods to shared location

* widening scope
2023-02-08 11:35:01 -08:00
Cheena Malhotra
a2c7bcd337 Support None Attestation Protocol (#1852) 2023-02-08 11:28:48 -08:00
AkshayMata
608f75e761 Enable local logging for login migrations (#1846)
This change allows the login migration nuget to log changes locally..
2023-02-08 07:10:56 -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
Alan Ren
c3c2dfdb31 handle large databases (#1845) 2023-02-06 18:21:02 -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
Karl Burtram
735517a503 Fix nullable warnings in UserData class (#1843)
* Fix nullable warnings in UserData class

* Missing commit
2023-02-03 09:51:31 -08:00
Benjin Dubishar
2e950f54bd Normalize string to fix test case on Unix (#1841) 2023-02-01 14:30:28 -08:00
Alex Ma
07e4225259 [Loc] cleanup localization related files and add localization to migration (#1840) 2023-02-01 12:06:17 -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
Alex Hsu
f64d6c5c58 LEGO: Merge pull request 1836
LEGO: Merge pull request 1836
2023-01-31 08:11:19 -08:00
AkshayMata
1660ef3232 [SQL-Migration] Port changes to new migration service (#1835)
This PR ports some changes that were missed to the new, separated Migration Service project.

Here is the PR to separate Migration Service into project: #1828

Changes from the following PRs were not ported over:
[SQL Migration] Mark SQL MI premium-series memory optimized SKUs as GA #1811
Update login migrations nuget with perf improvements #1789
2023-01-30 22:24:09 -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
Cheena Malhotra
251fbf8746 Update SMO to 170.12.0 (#1829) 2023-01-27 10:01:38 -08: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
Alan Ren
da6bb1c6c3 increase the timeout for build job (#1824) 2023-01-25 13:22:53 -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
Cory Rivera
661f883ddd Bump dotnet tool versions for SQL Tools and Kusto services. (#1821) 2023-01-24 10:19:43 -08:00
Cory Rivera
d418cfefa8 Update nuget build props for dotnet tool projects. (#1820) 2023-01-23 14:28:51 -08:00
junierch
18827b1a9b update tde pkg (#1817) 2023-01-20 14:57:39 -05:00
Charles Gagnon
ccaf5c4594 Fix null ref when expanding nodes from other providers (#1816)
* Fix null ref when expanding nodes from other providers

(cherry picked from commit 572a7b37b2a3651db5a101a8780c874c51b55b96)

* cleanup
2023-01-19 16:14:17 -08:00
Raymond Truong
3f2d5da69a [SQL Migration] Mark SQL MI premium-series memory optimized SKUs as GA (#1811)
* GA SQL MI premium-series memory optimized SKUs

* Fix null reference exception
2023-01-18 10:26:18 -08:00
erpett
5978e890b7 bumping minor version as we have split the release at 4.4.0.22 (#1809) 2023-01-17 13:54:33 -08:00
junierch
f99bda29b5 Tde migration integration (#1806)
Adding certificate migration for encrypted databases.

Uses notifications to send events back to the client every time each database certificate is migrated.
2023-01-11 18:20:00 -08:00
Cheena Malhotra
ac460adfc3 Enable IsLedger only for SQL 2022 (#1804) 2023-01-09 17:47:27 -08:00
Hai Cao
f9597bacd8 bump DacFx (#1803) 2023-01-09 15:43:43 -08:00
Cheena Malhotra
bd37bf84ce Add 'LedgerViewType' as supported property for SQL 2022 and Azure DBs (#1801) 2023-01-09 15:27:58 -08:00