Skip to content

Resolve focused build warnings - #901

Open
sfmskywalker wants to merge 2 commits into
mainfrom
codex/resolve-warnings-20260615
Open

Resolve focused build warnings#901
sfmskywalker wants to merge 2 commits into
mainfrom
codex/resolve-warnings-20260615

Conversation

@sfmskywalker

Copy link
Copy Markdown
Member

Summary

  • Fix non-null localization provider contract by falling back to the resource key.
  • Guard nullable login credentials before validator calls and remove an unused OAuth2 validator dependency.
  • Align trim annotations for backend API providers and workflow DI helpers.
  • Update MudBlazor label page attributes for v9 analyzer compatibility.

Verification

  • dotnet build Elsa.Studio.sln --nologo --no-restore -t:Rebuild
  • dotnet test src/modules/Elsa.Studio.Diagnostics.ConsoleLogs.Tests/Elsa.Studio.Diagnostics.ConsoleLogs.Tests.csproj --nologo --no-restore
  • dotnet test src/modules/Elsa.Studio.Workflows.Tests/Elsa.Studio.Workflows.Tests.csproj --nologo --no-restore
  • dotnet test src/modules/Elsa.Studio.AI.Tests/Elsa.Studio.AI.Tests.csproj --nologo --no-restore

Warning inventory

Forced solution rebuild warning lines reduced from 2,734 to 2,636. Remaining warnings are existing repository-wide XML documentation, trim analyzer, and nullable warnings outside this focused patch.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR focuses on reducing/avoiding focused build warnings by tightening nullability contracts, aligning trimming annotations for DI-resolved types, and updating MudBlazor component attributes to satisfy newer analyzers.

Changes:

  • Make localization provider contract non-null by falling back to the resource key when a translation is missing.
  • Guard nullable login credentials prior to validator invocation and simplify OAuth2 credentials validation dependencies.
  • Align trim annotations for backend API providers / workflow DI helpers and update MudBlazor attributes for analyzer compatibility.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/modules/Elsa.Studio.Workflows/Services/DisconnectedWorkflowInstanceObserver.cs Adjusts no-op observer event implementations (warning-related event initialization/contract handling).
src/modules/Elsa.Studio.Workflows.Core/Extensions/ServiceCollectionExtensions.cs Adds trim annotations to generic DI registration helpers to satisfy trimming analysis.
src/modules/Elsa.Studio.Login/Services/OAuth2CredentialsValidator.cs Removes unused options dependency from the OAuth2 credentials validator.
src/modules/Elsa.Studio.Login/Pages/Login/Login.razor.cs Makes username/password nullable and rejects missing credentials before validating.
src/modules/Elsa.Studio.Labels/UI/Pages/Labels.razor Updates MudButtonGroup attribute usage for MudBlazor v9 analyzer compatibility.
src/modules/Elsa.Studio.Labels/UI/Pages/Label.razor.cs Adds class XML summary to reduce documentation warnings.
src/modules/Elsa.Studio.Labels/UI/Pages/Label.razor Moves PanelClass to the tab panel to match updated MudBlazor API/analyzers.
src/modules/Elsa.Studio.Environments/Services/EnvironmentBackendApiClientProvider.cs Aligns trim annotations on GetApiAsync<T> implementation with the interface contract.
src/modules/Elsa.Studio.Diagnostics.ConsoleLogs.Tests/SignalRConsoleLogObserverTests.cs Aligns test stub provider signature with trim-annotated backend API provider contract.
src/modules/Elsa.Studio.Authentication.ElsaIdentity.UI/Pages/Login/Login.razor.cs Makes username/password nullable and rejects missing credentials before validating.
src/framework/Elsa.Studio.Translations/ResxLocalizationProvider.cs Makes GetTranslation non-null and falls back to the key when missing.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants