Commit Graph

334 Commits

Author SHA1 Message Date
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
Alex Ma
1f045ba669 [Loc] update to SqlTools service layer and sqlcore for 8-29-23 (#2198) 2023-08-29 11:04:41 -07:00
Aasim Khan
766f68551e Removing script as feature from service layer to sqlcore (#2189) 2023-08-28 04:28:25 +00:00
Alex Ma
dee29a3a08 [Loc] update to xlf resources for 8-17-2023 (#2174) 2023-08-17 13:33:21 -07: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
Alex Ma
453051fa9c [Loc] update to sr xlf for 7-11-2023 (#2138) 2023-07-11 11:16:40 -07:00
CSIGS@microsoft.com
bfc6ab4a6d LEGO: Merge pull request 2134
LEGO: Merge pull request 2134
2023-07-09 08:35:36 -07:00
CSIGS@microsoft.com
e8781673c8 LEGO: Merge pull request 2133
LEGO: Merge pull request 2133
2023-07-08 08:38:10 -07: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
Alex Ma
c68521f5ed [Loc] XLF update for 6-23-2023 (#2119) 2023-06-23 11:09:17 -07:00
CSIGS@microsoft.com
b06ab4e5a5 LEGO: Merge pull request 2118
LEGO: Merge pull request 2118
2023-06-23 08:40:03 -07:00
CSIGS@microsoft.com
2052b597c9 LEGO: Merge pull request 2116
LEGO: Merge pull request 2116
2023-06-22 08:37:34 -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
Alex Ma
cef3564011 [Loc] update to xlfs 6-15-2023 (#2108) 2023-06-15 17:44:42 -07:00
CSIGS@microsoft.com
4016029e69 LEGO: Merge pull request 2106
LEGO: Merge pull request 2106
2023-06-15 08:35:21 -07:00
Alex Ma
7840cda4c7 [Loc] update to sr xlf (#2104) 2023-06-14 16:37:28 -07:00
Hai Cao
165d89b00e remove Linked Server Login node from OE (#2097) 2023-06-14 11:19:59 -07:00
CSIGS@microsoft.com
98ed1534d5 LEGO: Merge pull request 2103
LEGO: Merge pull request 2103
2023-06-14 08:38:52 -07:00
Cory Rivera
808172bc20 Retrieve Azure SLO details in Database Handler (#2094) 2023-06-12 11:44:17 -07:00
Alex Ma
94981d7bbe [Loc] xlf update for 6-8-2023 (#2092) 2023-06-08 10:18:28 -07:00
Alex Hsu
34adb8db95 LEGO: Merge pull request 2088
LEGO: Merge pull request 2088
2023-06-03 08:46:59 -07:00
Alex Hsu
4e108349cd LEGO: Merge pull request 2085
LEGO: Merge pull request 2085
2023-06-02 08:41:17 -07:00
Cory Rivera
d5cfc52ca7 Add object management handler for creating a database (#2071) 2023-05-31 12:55:12 -07:00
Alex Ma
036710e634 [Loc] Add ObjectType xlfs and resx files (#2066) 2023-05-15 14:42:05 -07:00
Alex Hsu
4d2d5c402d LEGO: Merge pull request 2064
LEGO: Merge pull request 2064
2023-05-15 08:42:38 -07:00
Alex Hsu
b1e9fdfe32 LEGO: Merge pull request 2063
LEGO: Merge pull request 2063
2023-05-14 08:47:11 -07:00
Alex Hsu
6346cc7c07 LEGO: Merge pull request 2062
LEGO: Merge pull request 2062
2023-05-13 08:42:29 -07:00
Hai Cao
d525e88672 Add securable search and permission setting to User Management (#2052) 2023-05-10 18:20:06 -07:00
Alex Ma
c5bc4ebc92 [Loc] update to xlfs and resx for 5-10-2023 (#2055) 2023-05-10 16:10:15 -07:00
Alex Hsu
1c6fd29cff LEGO: Merge pull request 2050
LEGO: Merge pull request 2050
2023-05-09 08:38:35 -07:00
Alex Hsu
4f1fce4f45 LEGO: Merge pull request 2044
LEGO: Merge pull request 2044
2023-05-07 08:41:22 -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
Alex Ma
6120b99a56 xlf update for 4-20-2023 (#2023) 2023-04-20 11:18:16 -07:00
Alex Hsu
051fad128d LEGO: Merge pull request 2022
LEGO: Merge pull request 2022
2023-04-20 08:37:43 -07:00
Alex Ma
3eba2ec62b xlf update for 4-19-2023 (#2018) 2023-04-19 17:24:16 -07:00
Charles Gagnon
efc8d8f0be Remove Hosting InternalsVisibleTo (#2009) 2023-04-17 12:34:04 -07:00
Alex Ma
7bf370a4a5 [Loc] update to xlfs for 4-10-2023 (#2000) 2023-04-10 11:32:45 -07:00
Alex Hsu
6398a49135 LEGO: Merge pull request 1999
LEGO: Merge pull request 1999
2023-04-09 08:45:37 -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
Alex Ma
d7940e0cc6 [Loc] update to xlfs and resx for 3-27-2023 (#1973) 2023-03-27 15:10:53 -07:00
Alex Hsu
e03effd88b LEGO: Merge pull request 1971
LEGO: Merge pull request 1971
2023-03-26 08:36:26 -07:00
Alex Hsu
abbedebdab LEGO: Merge pull request 1970
LEGO: Merge pull request 1970
2023-03-25 09:46:01 -07:00
Alex Ma
b7709c9e5b [Loc] update to xlfs for 3-24-2023 (#1966) 2023-03-24 10:51:49 -07:00
Alex Hsu
8b17d9ce5e LEGO: Merge pull request 1965
LEGO: Merge pull request 1965
2023-03-24 08:37:26 -07:00
Cheena Malhotra
3ef3a0f022 Secure enclave touch ups (#1964) 2023-03-23 20:59:38 -07:00
Alex Ma
5fce03f6cf [Loc] xlf update for 3-22-2023 (#1960) 2023-03-22 21:42:24 -07:00