Commit Graph

145 Commits

Author SHA1 Message Date
Benjin Dubishar
c7857c249c Updating SQL Projects nuget dependency (#2253)
* Updating SQL Projects nuget dependency

* Bumping nuget version

* Adding missed swapover
2023-09-29 13:04:14 -07:00
Sai Avishkar Sreerama
a053457ba1 Enable QueryStore tab to the database properties (#2200)
* initial commit

* adding prototypefile and server conditions

* Saving query store options completed, todo:tests

* adding LOC stings  according to the LOC version of the ms doc

* removing common constants

* merge conflict fix

* fixing null reference exception

* Adjusting the null reference exception property value in prototype.cs

* removing unused directive

* test fix that checks wrong value

* Purge query store data changes

* adding comment and uncommented the line
2023-09-07 16:35:44 -05:00
Lewis Sanchez
a56cf5a277 Consolidate context request endpoints into a single request endpoint (#2205)
* Create new endpoint consolidating previous 2

* Clarify comment

* Removes two separate endpoints to get and generate

* Rename classes for get context request

* Update src/Microsoft.SqlTools.ServiceLayer/Metadata/MetadataService.cs

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

* Update src/Microsoft.SqlTools.ServiceLayer/Metadata/MetadataService.cs

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

* Code review changes

* Throw exception and localize ex messages

---------

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
2023-09-05 15:56:35 -07:00
Alex Ma
42bbfdc418 [Loc] Xlf and resx update 9-5-2023 (#2209) 2023-09-05 13:44:05 -07:00
Lewis Sanchez
c0a0f27e49 Return context after it has been generated (#2194)
* Emit generate scripts complete event to client

* Rename Message to ErrorMessage

* Sets owner URI for complete params obj

* Setting complete flag explicitly

* Making errorMessage prop nullable

* Localizes error messages

* Return context scripts and remove script tabs

* Send event when script gen isn't needed

* Change notification to request endpoint

* test get context when context doesn't exist

* Stop reading old context files
2023-08-31 16:28:05 -07:00
Aasim Khan
766f68551e Removing script as feature from service layer to sqlcore (#2189) 2023-08-28 04:28:25 +00:00
Aasim Khan
73c2a75fba Creating a new Sql Core project that stores OE classes. (#2165)
* init

* More fixes

* moving filters from contracts to core OE classes

* Fixing some tests

* More fixes and added doc comments

* Fixing tests

* Quick refactoring

* more cleanups

* cleanup

* Adding stateless OE

* Adding null checks

* Making group by schema independent of settings

* Fixing tests

* Removing node info from core oe code

* Fixing tests and moving OE code to its own project

* moving oe to own project

* Removing changes to Kusto

* Removing azure access token from service layer

* Fixing project description and title

* Fixing file name typo

* Removing unused  strings from service layer

* Fixing localized strings in tests
Adding comments to stateless OE

* Fixing stuff

* Update src/Microsoft.SqlTools.SqlCore/Microsoft.SqlTools.SqlCore.csproj

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

* Fixing project nesting

* Fixing more stuff and removing OE class

* Cleanup

* Code cleanup

* fixing oe service provider

* Fixing test name

* Remove using

* Update src/Microsoft.SqlTools.SqlCore/ObjectExplorer/SmoModel/SmoQueryContext.cs

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

* Fixing syntax error

* Adding project to locproject

* Fixing stuff

* Fixing errors

* sorting usings

---------

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
2023-08-16 22:11:35 -07:00
Sai Avishkar Sreerama
e4db70fb39 Enabling Database scoped configurations tab to DB Properties (#2147)
* sending dsc values to ADS

* modifying dsc method with unsupportable property IsValuedefault

* getting the options and added a bool flag to maintian checkbox for secondary to save

* sending data to ads

* Ready for PR with minimal changes of loading UI as expected, TODO:saving logic

* Excluding maxdop and resumable options from primary value conversion for 1/0's

* Adding Id to the info, as we cannot depend on names, as names can be altered in future

* saving successfully, todo-diff servers, script (secondary - primary compare and dont update),test, send null for unsupported

* adding nullable dsc for unsupported servers

* fixing script generation for some properties that are not touched. the generated script is unharmed but unnecessary here

* adding test conditions for database scoped configurations

* adding switch case method to get the values

* Removing Loc string for the TSQL options

* removing unnecessary using statement

* Adding test case and fixing createDatabase issue

* Update src/Microsoft.SqlTools.ServiceLayer/Admin/Database/DatabasePrototype130.cs

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

* comment update

---------

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
2023-08-15 11:58:35 -05:00
Barbara Valdez
4c4d6584b3 Update memory settings and implement ServerPrototype (#2126) 2023-07-06 17:25:45 -07:00
Hai Cao
b9277c3830 Add explicit CREATE TABLE permission check for table designer (#2128) 2023-07-06 16:19:50 -07:00
Sai Avishkar Sreerama
5c7dae40e6 Enabling database properties general tab with real time values from SMO (#2093)
* initial commit with all required db handler and props, also getting the data from ADS

* database properties view updated

* Delete Microsoft.SqlTools.ServiceLayer.sln

This file should be ignored

* Removed unwanted file

* Using DatabaseHandler for properties as one handler per object

* removed unused and unnecessary changes

* minimal updates

* moving type conversion to UI side, properties with original types.

* conversion number fixed

* Adding Localized strings

* using existing objectUrn logic to get the smo object

* Adding Integration tests for database properties verification

* refactoring

* updating test
2023-06-21 19:41:18 -05:00
Lewis Sanchez
272d2fdb92 Simplify create date description used in filter dialog (#2107)
* Simplify create date description

* Update localized files with new description
2023-06-20 12:16:20 -07:00
Hai Cao
165d89b00e remove Linked Server Login node from OE (#2097) 2023-06-14 11:19:59 -07:00
Cory Rivera
808172bc20 Retrieve Azure SLO details in Database Handler (#2094) 2023-06-12 11:44:17 -07:00
Cory Rivera
d5cfc52ca7 Add object management handler for creating a database (#2071) 2023-05-31 12:55:12 -07:00
Hai Cao
d525e88672 Add securable search and permission setting to User Management (#2052) 2023-05-10 18:20:06 -07:00
Aasim Khan
34d969c6ad Fixing durability type filter in OE (#2043)
* Fixing durability type filter in OE

* Adding doc comment
2023-05-06 05:40:09 +05:30
Aasim Khan
46e6b484a3 Adding filtering support to OE (#2039)
* Init push

* Fixing filters

* Fixing more filters

* Fixing display strings

* Fixing boolean filter

* Adding comments

* Fixing function name

* Making nullables

* Separating filter parsing logic

* Adding tests

* Update src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/ObjectExplorerUtils.cs

Co-authored-by: Cheena Malhotra <13396919+cheenamalhotra@users.noreply.github.com>

* Update src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/ObjectExplorerUtils.cs

Co-authored-by: Cheena Malhotra <13396919+cheenamalhotra@users.noreply.github.com>

* Update src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/Contracts/NodeInfo.cs

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

* Update src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/Contracts/NodeInfo.cs

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

* Update src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/Nodes/TreeNode.cs

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

* Adding comments

* Fixing whitespace

* Adding more  comments and changing to IEnumerable

* Fixing code comments

* Fixing tests adding more filters

---------

Co-authored-by: Cheena Malhotra <13396919+cheenamalhotra@users.noreply.github.com>
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
2023-05-06 01:52:42 +05:30
Charles Gagnon
efc8d8f0be Remove Hosting InternalsVisibleTo (#2009) 2023-04-17 12:34:04 -07:00
Hai Cao
9b08993753 Port code for Application Role, Database Role, Permission Data and Securable search (#1992)
* port code for db role and app role

* port permissionData (wip)

* port securable search data
2023-04-06 10:17:46 -07:00
Cheena Malhotra
3ef3a0f022 Secure enclave touch ups (#1964) 2023-03-23 20:59:38 -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
Hai Cao
17c9a99d24 Fix lock out for login update (#1923)
* Fix CanEditLockedOutState

* fix CanEditLockedOutState

* fix locked out
2023-03-08 18:17:23 -08:00
Hai Cao
bec0877e32 [User Management] Fix login handlers (#1896)
* fix default language

* fix update

* fix server role error with azure
2023-03-02 17:51:31 -08:00
Cheena Malhotra
c83f380b8e Improve secure enclaves error handling (#1880) 2023-02-28 13:31:40 -08:00
Aasim Khan
e8d24f8e47 Moving out legacy schemas into their own folder (#1866) 2023-02-17 14:31:25 -08:00
Hai Cao
ec071c8819 fix table designer with ledger table (#1788) 2022-12-15 10:28:29 -08:00
Alex Ma
548229d547 Add error codes for password change (reopened) (#1784)
* added error code handling

* Small cleanup

* added changes
2022-12-13 13:04:40 -08:00
Alex Ma
cc94a1a4c6 Revert "Use error code checking and simplified messages (#1782)" (#1783)
This reverts commit 306b43b8b7.
2022-12-13 09:04:18 -08:00
Alex Ma
306b43b8b7 Use error code checking and simplified messages (#1782)
* added error code handling

* Small cleanup

* added changes
2022-12-13 09:04:00 -08:00
Alex Ma
7eee5180a2 Add change password function and handling (#1771)
* added ChangePassword to connectionService

* added changepasswordparams

* added more code

* added more changes to connectionservice

* added more changes

* added small test

* added changepasswordrequest

* added different ServerConnection constructor

* consolidated changepassword

* added exception catch

* added passwordChangeFail params

* added changePassword to it's own function

* simplified changePassword

* made fixes to test

* added new test

* added one additional connection test

* added response callback

* removed unnecessary SendError

* added localized empty password error

* added updated error messages

* added small fix to check

* added changes based on feedback

* added minor change

* fix tests

* renamed messages to errorDetails

* simplified error message

* small change to connectionservice message

* error message change

* added environment newline

* added error retry messages to STS

* added regex

* added newline handling
2022-12-07 14:24:26 -08:00
Cheena Malhotra
c0f8482e26 Update Microsoft.Data.SqlClient to v5.0.1 (#1708) 2022-10-24 20:10:04 -07:00
Aasim Khan
a0390e8127 Adding new top operation column and comp rule for node id (#1719)
* Adding actual cpu cost in top operations

* Adding node id attribute
2022-10-06 16:05:39 -07:00
Hai Cao
04c64223e2 [Table Designer] Only show index hash options when table is memory-optimized (#1714) 2022-09-28 10:26:59 -07:00
Hai Cao
11fef3a5db [Table Designer] Fix columnstore wording 2022-09-23 16:44:34 -07:00
Alex Ma
fca115fb91 [Loc] added generated resx and xlf files (#1706) 2022-09-22 17:37:27 -07:00
Jordan Hays
8bdf1d8451 Dropped Ledger Columns folders for ledger primary tables (#1688)
* dropped ledger columns strings, nodetypes, definition

* work in progress

* WIP- dropped columns folder showing for all tables

* Dropped Ledger Column folder only for primary ledger tables

* cleaning up

* undoing changes to kusto layer

* formatting

* undoing formatting

* undoing formatting

* removing IsLedger property and instead filtering on NodeTypeId

* updating column path test
2022-09-14 17:43:39 -07:00
Hai Cao
8f26a20950 [Table Designer] support hash index and column store index (#1672) 2022-09-06 13:32:43 -07:00
Alan Ren
7f675b884f require confirmation when risks present (#1668) 2022-09-02 12:50:30 -07:00
Barbara Valdez
c33ffa592b Add getObjects from model request (#1634)
Co-authored-by: Alex Ma <alma1@microsoft.com>
2022-08-26 15:02:37 -07:00
Hai Cao
23072250b7 [Table Designer] Add validators for computed col in PK and FK (#1653) 2022-08-25 16:30:47 -07:00
Alan Ren
37c6aa6639 formula description (#1647)
* update description for formula field

* revert generated file changes

* use markdown
2022-08-18 10:08:52 -07:00
Jordan Hays
87ea866df0 Dropped Ledger Views folder (#1626)
* adding dropped ledger views to the OE hierarchy with ledger view naming and icons

* updating tests
2022-08-10 14:01:28 -07:00
Jordan Hays
485786f49e Dropped Ledger Tables Folder (#1625)
* support and testing for Dropped Ledger Table folder

* appending DroppedLedgerTables nodetype

* fixing unit tests

* undoing string.Empty
2022-08-09 14:17:51 -07:00
Hai Cao
a9fe77589d [Table Designer] Support filter predicate and included columns for index (#1619) 2022-08-05 15:04:44 -07:00
Jordan Hays
d78ff94b31 Ledger Objects Representation in Object Explorer (#1615)
* support for ledger objects in OE

* generated sr files

* update versionKey to sql 2022 in test env config

* more 2019 to 2022 updates

* add sql2022 instead of replacing

* missed filter on table

* add logging

* more logging

* adding Script160Compat options for sql2022

Co-authored-by: Alan Ren <alanren@microsoft.com>
2022-08-05 10:53:17 -07:00
Aasim Khan
e68124b4d5 Adding more top operations columns and fixing some column values (#1571)
* Adding more rules for prop

* adding top operations to ep

* Reverting changes made to display cost

* Fixing comments

* Removing whitespace

* Fixing data size property

* Adding const keys, fixing to table data, adding more info

* Removing undeclared prop
2022-07-11 14:05:20 -07:00
Aasim Khan
e64e31e487 Adding top operations to execution plan (#1563)
* Adding more rules for prop

* adding top operations to ep

* Reverting changes made to display cost

* Fixing comments

* Removing whitespace

* Fixing data size property
2022-07-05 20:18:24 -07:00
Alan Ren
afb2245be1 localize the rule descriptions (#1543) 2022-06-17 13:54:06 -07:00
Hai Cao
bc1b60fa87 [Table Designer] Add apis to support computed column (#1495) 2022-05-23 15:41:07 -07:00