* 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>
* Adding recommendations
* Adding raw graph type in execution plan graph contracts
* Fixing function name and concising string formatting
* Converting localized string to a function
* Using better names in contract props
Formatting names in a better way
* Getting rid of unnecessary getter, setters and private props
* Fixing localized strings, comments and imports
* Fixing some contracts
* Fixing csproj formatting
* Fixing var names
* Fixing xml comments
* Parsing nested properties in show plan nodes.
* Creating a base class for ExecutionGraphProp
Adding a simple test to see if the nested props are parsed correctly.
* Fixing doc comment
* simplifying class name
* 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
* Sending showplan graph over json rpc in Result updated event
Translating showplan graph into simple objects to be sent over JSON RPC
* Revert "Sending showplan graph over json rpc in Result updated event"
This reverts commit 2d63a625fd200d057bf6093e233f05dea440347c.
* Added string for localization
* Sending showplan graph over json rpc in Result updated event
Translating showplan graph into simple objects to be sent over JSON RPC
* Refactoring class
* Removing test warning
* Removing unused imports
Adding copyright
* Removing unused prop
* removing formatted string out .strings file
* Formatting files
Adding Errors in show plan graph
* Adding a separate event for execution plan
* Now sending mulitple graphs when a batch has more than one query.
* Added unit tests for AdminService. Added interface for IConnectionService.
* Kusto connection map to ConnectionManager (#1258)
* Created ConnectionManager and moved connectionMap. Changed references from ConnectionService to ConnectionManager.
* Changed creation of ConnectionManager to MEF instead of Instance creation
* added wip rename query
* added first rename test
* added missing query handling and two new tests
* removed ServiceDispose
* added change to owneruri.
* made fields private, used accessor methods
* added readonly flag back
* added didSave to sqltools.servicelayer
* fix for docsavecallbacks
* removed tryremove
* test disconnect in queryExecutionService
* removed debug message working query.
* added comment to handlerenamerequest
* added uri replacement function
* removed duplicate removemap function
* added minor fixes
* changed connectionOwnerUri to getter setter
* removed handledidsave and added setters
* removed additional save parts
* fixed space issues
* more fixes for spaces
* restored spaces
* fixed workspaceservice
* Update TextDocument.cs
* changed renameRequest into notification WIP
* restored textdocument
* restored textdocument.cs
* added rightwards arrow
* renamed rename to ChangeConnectionUri
* added more renames
* rename changeconnectionuri to changeuri
* renamed file names
* Revert "renamed file names"
This reverts commit 55228e65025b5179b15ae9a0adc095d95538723d.
* Revert "rename changeconnectionuri to changeuri"
This reverts commit 23f3813f609e3947f103e057f7c0919184075bdc.
* removed logging message and other small changes
* renamed class and method
* 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
* Added handling for deleting problematic rows
* minor formatting changes
* Null checks and executereader implemented
* minor formatting
* Fix for column deletion for text
* minor space format
* more format changes
* Removal of top 200 and change of text comparison
* space fix
* minor commit
* Added new tests for single clause
* simplified regex
* spacing fix
* some polish for RowEditBaseTests
* space fix
* loc update (#914)
* loc update
* loc updates
* Warning for multiple delete (#931)
* Fix for multiple delete bug
* minor space removal
* removed catch error in RowDelete
* small optimizations
* space adding
* WIP on creating test
* Some cleanup
* removed spaces
* Fix for verifytext
* Added check for command format correctness.
* tidying up
* added working test for command exception
* simplification of TestDbDataReader getint
* Corrections made
* spacing and naming issues
* minor space
* one more space issue
* Revert "Support ActiveDirectoryPassword authentication (#899)" (#915)
This reverts commit b786a14c03.
* revert changes to connectionService
* fix for asserts
* fix clauses
Co-authored-by: khoiph1 <khoiph@microsoft.com>
Co-authored-by: Amir Omidi <amir@aaomidi.com>
* 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
* adding network file validator contract
* updating to dotnet 5
* reverting change in pipeline
* updating target framework to 5.0
* updating srgen and using target framework var
* reverting srgen back to 3.1
* Adding dotnet 3.1 to build
* Fixing task def
* removing global json
* updating other 3.1 refs to 5.0
* removing netcore folder from build.cake
* Moving and renaming dotnet 3.1 task
* added other languages to ServiceLayer
* fixed travis and appveyor yaml, added other languages for localization
* added spanish and german strings to credentialslocalization, also WIP for coreservices test
* added WIP localization test for CoreServices
* Removed unit test for coreservices, need to work on those later.
* restored travis and appveyor
* added kusto string resource localization test
* added localization test and locale change for SqlToolsCredentials
* added locale command options to ResourceProvider
* revert resourceprovider test
* Localized SqlTools.Credentials
* added hosting localization
* replaced new with translation to be consistent with main service layer
* reverted external changes as it is unnecessary
* Translated ManagedBatchParser
* test culture value
* test culture change
* temporarily comment out service layer command options
* returned sr.cs
* temporarily remove bad tests
* restored tests and allowed for SR culture to change for dependencies (for future testing)
* localization for resourceprovider components added.
* Set LocaleSetter to public and also removed InternalsVisible for Kusto, Credentials and ResourceProvider
* removed unnecessary changes
* Removed CredentialsCommandOptions
* renamed pt-BR to pt-br
* Rename sr.pt-BR.xlf.template to sr.pt-br.xlf.template
* Rename src/Microsoft.SqlTools.ServiceLayer/Localization/LCL/pt-BR/sr.resx.lcl to src/Microsoft.SqlTools.ServiceLayer/Localization/LCL/pt-br/sr.resx.lcl
* Rename sr.pt-BR.xlf to sr.pt-br.xlf
* Rename sr.pt-BR.resx to sr.pt-br.resx
* Rename sr.pt-BR.resx to sr.pt-br.resx
* Rename sr.pt-BR.xlf to sr.pt-br.xlf
* Rename sr.pt-BR.resx to sr.pt-br.resx
* Rename sr.pt-BR.xlf to sr.pt-br.xlf
* Rename sr.pt-BR.resx to sr.pt-br.resx
* Rename sr.pt-BR.xlf to sr.pt-br.xlf
* Rename sr.pt-BR.resx to sr.pt-br.resx
* Rename sr.pt-BR.xlf to sr.pt-br.xlf
* Rename sr.pt-BR.xlf to sr.pt-br.xlf
* Rename sr.pt-BR.resx to sr.pt-br.resx
* Rename sr.pt-BR.xlf to sr.pt-br.xlf
* Rename sr.pt-BR.resx to sr.pt-br.resx
* restored newlines
* Update sr.pt-br.xlf.template
Removed newline
* removed newline
* fixing newlines for consistency
* removed unnecessary newline
* Filtering Schema Compare error from warnings
* SchemaCompare added comparison result error message validations to existing tests
* Extra semi-colon noticed and removed from the code
* Added new test case to validate warning message exclusions from SC result
* SC test asserions comment added
* Edge case scenario fixed and tests are 100% passed