Commit Graph

81 Commits

Author SHA1 Message Date
Cheena Malhotra
cadd14e9d0 Upgrade SqlClient library to v3.1.1 (#1646) 2022-08-18 10:26:22 -07:00
Hai Cao
be649e6d65 Fix table designer reloading after only descriptions being updated (#1644) 2022-08-17 11:48:40 -07:00
Kim Santiago
6b33b43d2d update Microsoft.SqlServer.Migration.Assessment to 1.0.20220816.40 to lower System.ComponentModel.Composition dependency to 4.6.0 tfix sql project build failing in ADS (#1642) 2022-08-16 21:37:41 -07:00
Hai Cao
fc955ad6cf DacFx vbump (#1632) 2022-08-12 16:14:38 -07:00
Raymond Truong
091f2c942e [SQL Migration] Update assessment NuGet version, removing the need to check in content files into STS (#1617)
* Update NuGet version and remove metadata

* Remove Content Include from csproj

* Remove unnecessary PrivateAssets tag

* Use official NuGet build

* Remove reference in IntegrationTests
2022-08-08 11:17:38 -07:00
Sai Avishkar Sreerama
1342a8a085 Object Types are getting from DacFx ObjectTypes (#1574)
* Include Object Types are getting from DacFx

* All tests are passing now with excludObjectType casting

* Test fix with new ExccvludeObjectType change

* Added test case for the include objects types

* Updated  name to objectTypesDictionary and objectType getName from Display attribute

* code Review updates

* Removing Exclude word logic here as the options were updated on DacFx

* updating the null check

* DacFx vBump

* code updates according to review comments
2022-08-05 15:28:39 -05:00
Kim Santiago
3316c0f9c2 update DacFx version to get schema compare fix (#1599) 2022-07-22 18:47:42 -07:00
Vladimir Chernov
2ae0d99900 SqlAssessment update to 1.1.9 (#1593)
* Sql Assessment version update to 1.1.9

* Unit test fix

* integration test fix
2022-07-19 15:19:39 -07:00
Charles Gagnon
779339723f Revert "Sql Assessment version update to 1.1.9 (#1584)" (#1592)
This reverts commit 23531f8421.
2022-07-19 11:24:38 -07:00
Vladimir Chernov
23531f8421 Sql Assessment version update to 1.1.9 (#1584) 2022-07-19 08:56:21 -07:00
Alan Ren
591d308205 new dacfx version (#1587)
* pre-load database model

* revert pre-loading
2022-07-18 16:34:25 -07:00
Charles Gagnon
82118f6431 Add code coverage reporting (#1585)
* Add code coverage

* fix and add publishTestResults

* Use PublishTestResults

* Add coverlet.msbuild

* Generate report

* Update coverage report location

* Add one more
2022-07-18 15:31:47 -07:00
Alan Ren
0b3c86cde8 add parse t-sql script handler (#1561)
* add parse t-sql script handler

* handle error
2022-06-30 11:05:38 -07:00
Lewis Sanchez
b24202a762 Updating Newtonsoft package to version 13.0.1 (#1559)
* Forcing newtonsoft to version 13.0.1

* Updates addin Newtonsoft.Json package version to 13.0.1

* Update Newtonsoft.Json package version to 13.0.1
2022-06-27 11:01:49 -07:00
Charles Gagnon
b182e9fe53 Bump SMO to 161.47021.0 (#1538) 2022-06-10 13:02:49 -07:00
Kim Santiago
f01b82db5e update DacFx version to get table designer fixes (#1533) 2022-06-08 11:31:45 -07:00
Kim Santiago
88a762014d update dacfx to bring in update project and table designer fixes (#1532) 2022-06-03 19:21:24 -07:00
Alan Ren
63bef2b904 enable table designer for sqlproj (#1511)
* enable table designer for sqlproj

* return issues and new table info on initialization

* vbump dacfx

* Revert "vbump dacfx"

This reverts commit f59768b41f67866bd7620e06b141e8bfdb1523aa.
2022-06-01 14:17:04 -07:00
Raymond Truong
0c37dc50f9 [SQL Migration] Update assessment NuGet version + mark GAed VM SKUs as non-preview (#1510)
* Update assessment NuGet version and metadata

* Consider Eb VM SKUs without preview flag as they are now GAed

* Update assessment NuGet to 1.0.20220527.33
2022-05-31 14:54:29 -07:00
Hai Cao
262fd00afd fix memory optimized option inconsistent state (#1503)
* disable mem optimized instead of removing options

* bump DacFx
2022-05-23 13:27:18 -07:00
Karl Burtram
a70402fe60 Revert SMO bump (#1492) 2022-05-11 15:34:15 -07:00
Hai Cao
24910c5b5c [Table Designer] api change for insert and move col (#1477)
* make api change for insert and move col
* bump DacFx
2022-05-06 15:00:34 -07:00
Charles Gagnon
6c97f41f7b Bump SMO + SqlClient (#1478) 2022-04-26 16:01:55 -07:00
Nemanja Milovančević
881c335cdf Backup/Restore Managed Instance (#1428)
* Enabled backup to and restore from URL

* Created RPC, but when process tries to load Microsoft.Azure.Storage.Blob.dll, it crashes

* Added create shared access token

* Code refactor

* Minor changes

* Changed RPC path

* Moved createSas RPC to the newly created BlobService, fixed PR comments

* Added sas expiration date parameter to the RPC

* Added copyright headers

* Removed ConnectionInstance property from BlobService

* Removed unhelpful comment

* Removed unused using statements

* Changed copy/paste comments

* Disposable objects fix

* Small formatting fix

* Changed backup to/restore from url supported device types

* Added backup to url integration test

* Created restore integration test. Test are now getting azure blob params from env variables instead of file.

* Culture invariant epiration date param, fixed comment, and typo

* Updated headers

* PR comments fix

* Changed supported device type logic

* string localization fix

* String formatting fix

* build failure fix

* Typo

* Updated supported restore device types
2022-04-20 14:01:13 -07:00
Alan Ren
c39a41af0c vbump dacfx to bring in a fix for table designer (#1465) 2022-04-13 10:57:29 -07:00
Alan Ren
0882bf07bd bring in table designer fixes (#1463) 2022-04-12 12:58:03 -07:00
Hai Cao
71830ee5f9 A few table designer improvements (#1456)
* add AdvancedType related contract & lib call

* use type list from col

* add description support to all view models

* remove desc for edge constraint

* bump DacFx to 160.6093.0-preview

* nit
2022-04-08 11:42:55 -07:00
Alan Ren
7a326b2487 new table designer features (#1420)
* support graph table types

* more fixes

* refresh view upon edit

* support temporal tables

* temporal and memory table

* primary key and default constraint

* bug fixes

* dispose table designer

* vbump dacfx

* update string
2022-03-08 18:52:51 -08:00
Neetu Singh
d704a84740 Update Assessment package. Change Description from PR - https://msdata.visualstudio.com/Database%20Systems/_git/sql-migrate-asmt/pullrequest/747674 (#1407)
Updated the E-series VM IOPS, throughput capability based on ms doc as rest endpoint giving very low number on throughput particularly.

Updated only for SKUs with local disk.
Haven't checked if D-series has similar problem, however it wouldn't cause problem as we are not showing any Dev-test recommendation for ADS.
Note : Mostly, any other mismatches wouldn't be relevant for prod recommendations.
msdoc reference : https://docs.microsoft.com/en-us/azure/virtual-machines/edv5-edsv5-series
2022-02-11 17:31:38 -08:00
Raymond Truong
1693843ab0 [Feature] SKU recommendations in SQL migration extension (#1399)
* Initial check in for SQL migration SKU recommendation feature (#1362)

Co-authored-by: Raymond Truong <ratruong@microsoft.com>

* Integration test for Get SKU Recommendation. (#1377)

* Integration test for Get SKU Recommendation.

* Addressing comments -
1) Moving sample files to data folder.
2) Changed Assert for Positive Justification. Ideally for MI we are expecting ~6 justifications but this might change so sticking with 'recommendation should have atleast one positive justification'.

* Implement start/stop perf data collection (#1369)

* Add SqlInstanceRequirements to SKU recommendation output (#1378)

* test for data collection start and stop (#1395)

* improve error handling, add RefreshPerfDataCollection  (#1393)

* WIP - refresh data collection

* Capture messages before logging

* Update Microsoft.SqlServer.Migration.Assessment NuGet version (#1402)

* Update NuGet version to 1.0.20220208.23, update assessment metadata

* Update SKU recommendation metadata

* Include preview SKUs

* Clear message/error queue after refreshing

* Clean up

* Add 'IsCollecting' to RefreshPerfDataCollection (#1405)

Co-authored-by: Neetu Singh <23.neetu@gmail.com>
2022-02-10 19:02:27 -08:00
Alan Ren
d3b17187b5 new sql parser (#1397) 2022-02-08 13:39:10 -08:00
Alan Ren
6b1b2720f2 enable AAD auth for Table Designer (#1396) 2022-02-08 12:56:43 -08:00
Charles Gagnon
75749a405f Update System.Text.Encodings.Web to 4.7.2 (#1383)
* Update System.Text.Encodings.Web to 4.7.2

* cleanup
2022-02-03 09:03:09 -08:00
Alan Ren
3c93d57730 table designer - support second level entities (#1381)
* support secondary entities

* new table info for existing table scenario

* delete column confirmation

* vbump Dacfx
2022-02-02 13:40:45 -08:00
Alan Ren
01ab08fd6d vbump Dacfx (#1361) 2022-01-18 15:47:07 -08:00
Alex Ma
18ca177767 Remove XElite for now (#1349)
* Revert "Revert "Revert "Update to XElite (#1287)" (#1334)" (#1337)"

This reverts commit 196364e81e.

* Add changed sr.xlf
2021-12-22 11:04:45 -08:00
Alan Ren
5ca4054582 support save/script/report operations for table designer (#1348)
* save changes

* rename

* new version of dacfx
2021-12-21 15:31:44 -08:00
Alex Ma
196364e81e Revert "Revert "Update to XElite (#1287)" (#1334)" (#1337)
This reverts commit 0d7a3b4168.
2021-12-17 12:33:57 -08:00
Alan Ren
0d7a3b4168 Revert "Update to XElite (#1287)" (#1334)
This reverts commit 822a6459ce.
2021-12-08 10:49:23 -08:00
Alex Ma
822a6459ce Update to XElite (#1287)
* added Xevent.xelite to packages

* WIP on XELite conversion

* added wip changes

* added streaminfo class for preserving streams

* added list for profilerService

* added cancelXelStreamRequest.cs

* added test configuration for profilerservice

* added request handler using startprofilingrequest

* fix start profiling result

* added small connection string

* WIP branch for XElite (not functional)

* added hardcoded string with working stream

* added check for buildconnectionstring

* added back HandleXEvent

* added profilerservice eventsavailable test

* WIP change for profilersessionmonitor

* added more changes to profilersessionmonitor

* changed HandleXEvent

* added more additions to profielrSessionMonitor

* added startmonitoringstream

* added startmonitoringsession

* added startmonitoringstream to IProfilerSessionMonitor

* switch to monitoringStream

* added assignment of connectioninfo

* added conninfo

* added conninfo to iProfilerSessionMonitor.cs

* added isStreaming flag

* added token list

* added XEventSession name.

* removed polling lock

* test adding filters

* removed old profile filter as its incompatible

* added wip cancel feature in removesession

* moved cancellationtoken outside

* added backIsStreaming

* moved isstreaming around

* added  multiple events in list

* added timeout to handleXEvent

* removed timeout

* remove eventList count check

* remove old events filter

* returned eventlist

* remove old events filter

* renamed xelite handle function

* restored sqlclient version

* removed original handlestartprofilingrequest

* added monitoring stream to handlecreatexeventsessionrequest

* removed unnecessary sections from monitor

* Revert "removed unnecessary sections from monitor"

This reverts commit 91cadeebeeedfe99cec2e9c42944ba6716d95a61.

* added xevent actions to profileEvent

* removed polling lock for processStreams

* added filter for oldevents

* removed unused methods

* removed comment

* removed unnecessary class

* removed unnecessary requests

* removed outdated methods

* added work in progress cancellation task

* added profilersessionmonitor changes

* added small changes

* renamed startMonitoringStream

* more changes related to feedback

* made changes to code

* removed more polling code

* fixed tests

* added connectioninfo to testxeventsessions

* changed functions

* added back else

* small formatting fix

* more changes made

* added changes to XEventSession

* update to strings

* added changes to accomodate tests

* more changes

* added profilerservicetest for stopprofiling

* added TestStoppedSessionNotification test

* added session missing details handler

* simplified error message

* restored strings and added changes

* added auto-getter setter for IsStreaming

* added more changes

* removed unnecessary lines from test

* added more debugging messages

* made last changes

* added error message for handlestopprofilingrequest

* added more debug messages

* added back an s

* added verbose
2021-12-07 14:11:42 -08:00
Alan Ren
0599de2de7 foreign keys and constraints (#1318)
* foreign keys and constraints

* revert sdk change
2021-11-19 16:44:52 -08:00
Hai Cao
ffbc8a5c1a Bump DacFx version to include table designer service (#1295) 2021-11-11 16:26:36 -08:00
Sai Avishkar Sreerama
eda47bc0a4 STS version updates to support DacFx_160 (#1277)
* STS version updates to support DacFx_160

* Updated the mismatched version for sqlparser
2021-11-04 19:28:40 -05:00
Aasim Khan
e246bc5325 Adding star expression expansion (#1270) 2021-10-27 16:59:05 -07:00
Sai Avishkar Sreerama
4f12820757 MDS and DacFx Nuget versions update (#1268) 2021-10-12 17:05:22 -05:00
Aasim Khan
6f5cac4cb5 Adding a flag for migration blocker flag in sql assessment and switching to new APIs (#1242)
* Adding a flag for migration blocker in sql assessment and switching to new APIs

* Fixing var names
2021-09-08 15:15:56 -07:00
Kim Santiago
b1653b25e4 Insert sql bindings into Azure Functions (#1224)
* getting table name from a script

* add InsertSqlInputBindingOperation

* cleanup

* move azure functions stuff out of dacfx service

* cleanup

* add tests

* add another test

* cleanup

* add comments and connection string setting

* addressing comments

* change name to use add instead of insert
2021-08-04 13:02:52 -07:00
Christopher Suh
0032cc684b Update Assessment Nuget Package (#1221)
* update nuget package

* point to new assessment nuget version

* cleanup
2021-07-15 15:28:34 -07:00
Justin M
1f7da97e6c Added AzureMonitor to Microsoft.Kusto.ServiceLayer (#1208)
* Added AzureMonitor to Microsoft.Kusto.ServiceLayer.

* Added Intellisense for AzureMonitor. Moved Intellisense logic from KustoIntellisenseClient to IntellisenseClientBase.

* Added ServiceName as a command parameter for starting Kusto.

* Added check to return null if connectionInfo is not in the connectionService.

* Added support for Dashboard in MetadataService and AdminService.

* Removed workspace id from databaseName for Monitor. Added logic for MetadataService and AdminService to return different information for AzureMonitor.

* Moved providerName and providerDescription to DataSourceFactory.

* Changed DatabaseName to include Name and Id. Changed ProviderName to LOGANALYTICS in DataSourceFactory

* Fixed unit tests

* Changed logic to use ServiceName instead of server to determine DataSourceType

* Code review feedback and reverted changes to ObjectExplorerService.

* Removed unused reference from HostLoader

* Changed Parallel.Invoke to await Task.Run

* Moved Kusto datasource and supporting classes to separate directory.

* Removed unused datasourceFactory from ConnectionService. Added GetDatabases and GetDatabaseInfo to IDataSource and child classes

* Renamed Instance variables in ObjectExplorerService. Removed unused attribute on TSqlFormatterService. Removed invalid comment in ConnectionService.

* Fixed warnings in build.

* Moved SizeInMB to DatabaseMetadata. Refactored ConvertToDatabaseInfo

* Fixed unit test
2021-06-25 21:40:45 -07:00
Christopher Suh
ae9ec03018 Update Assessment Nuget to Enable Logging (#1215)
* wip

* updated nuget package

* removed unused nuget

* updated assessment nuget to add logging

* added logs filepath'

* updated assessment nuget

* updated nuget
2021-06-15 10:49:20 -07:00