Tags: brandochn/LightQueryProfiler
Tags
Add DPAPI-based password encryption (#41) * ``` Add DPAPI-based password encryption service and tests - Introduced `IPasswordProtectionService` interface for encrypting and decrypting sensitive data. - Implemented `DpapiPasswordProtectionService` using Windows DPAPI. - Added unit tests for `DpapiPasswordProtectionService` to ensure encryption, decryption, and fallback behavior. - Updated solution to include new `LightQueryProfiler.WinFormsApp.UnitTests` project. - Incremented version to `1.2.0-dev.5` for the WinForms app. ``` * ``` Skip test execution for WinForms tests on non-Windows platforms DPAPI dependency makes these tests Windows-specific. ```
Hide database field for Windows authentication (#38) Bump WinForms app version to 1.2.0-dev.4. Update MainView.cs and the VS Code webview providers (profiler-panel-provider.ts and profiler-view-provider.ts) to add a databaseGroup id and DOM logic to manage the database input when Windows auth is selected.
Capture client hostname in events and UI (#37) Add client_hostname to Default and Azure session templates so events include the client host. Expose hostname in shared view template and the VS Code extension (model, panel, and view) and add a Host column. Also include small WinForms fixes: show InitialCatalog in recent connections, format AuthenticationMode display, and bump WinForms app version.
Azure SQL: Use username; include DB for uniqueness (#34) Use sqlserver.username (instead of nt_username) and remove server_principal_name in the Azure SQL profiler template. Also include InitialCatalog when checking/recording connection uniqueness so connections are distinct per database. Add unit tests for both behaviors.
Enhance search, Azure SQL support, and refactor WinForms app (#28) * Enhance search functionality and add clipboard copy feature * Add DatabaseEngineType and Azure SQL auth support Introduce DatabaseEngineType enum and Azure SQL authentication mode. Add Azure SQL profiler template, template factory, and engine detector service. Update Connection model, repositories, WinForms UI/resources and Sqlite migration to add EngineType and AuthenticationMode columns for existing DBs. Add unit tests for enums, templates, connections and detector. * Refactor launch and task configurations for WinForms application * Add app icon and Azure SQL DB validation Bump WinForms app version to 1.2.0-dev.1 and set File/AssemblyVersion to 1.2.0. Register Icons\light-query-profiler.ico in the csproj and copy it to output; load the icon at runtime from the output folder. Map SqlException 4060/40615 to a new localized resource key AzureSqlDatabaseConnectionError for clearer user guidance. Minor VSCode tasks.json formatting fixes * Load app icon from embedded resource on Shown Embed the icon in the assembly and load it in the form's Shown event so the taskbar icon appears correctly on .NET 10. Add Resources.ApplicationIcon and update the csproj to include the ICO as an EmbeddedResource. * Add .zed tasks for build, test and publish * Migrate unit tests from NUnit to xUnit Convert NUnit attributes ([TestFixture], [Test], [SetUp], [TestCase]) to xUnit ([Fact], [Theory], [InlineData]) and replace NUnit assertions with xUnit Assert APIs. Update test projects to remove NUnit packages and add xunit.v3/xunit.runner.visualstudio. Replace global using for NUnit with global using Xunit. Use constructors and readonly fields for test setup where appropriate.
1.1.0 (#26) * Add event key generation and filtering tests Implement ProfilerEvent.GetEventKey using event_sequence, attach_activity_id and a timestamp/name/session fallback. Add ProfilerService.IsProfilerGeneratedEvent to filter profiler-origin events (client_app_name, batch_text, statement). Introduce EventsPollingIntervalMs constant, add unit/integration tests and Moq test dependency * Enhance row filtering and selection in ProfilerGridView for improved user experience * Upgrade target framework to .NET 10 across all projects * Update WinForms project version to 1.1.0 and enhance build tasks in VS Code * Refactor CI workflow for .NET setup and update to version 10.0.x
PreviousNext