Skip to content

fix: resolve all build warnings#1183

Merged
iammukeshm merged 2 commits into
developfrom
fix/resolve-build-warnings
Jan 25, 2026
Merged

fix: resolve all build warnings#1183
iammukeshm merged 2 commits into
developfrom
fix/resolve-build-warnings

Conversation

@iammukeshm
Copy link
Copy Markdown
Member

Summary

Resolves all 9 build warnings to achieve a clean build with 0 warnings, 0 errors.

Changes

SonarQube S1144 - Unused private setters (7 warnings)

Changed EF Core navigation property setters from private set to init in Identity domain entities:

  • GroupRole.cs: Group, Role properties
  • PasswordHistory.cs: Id, User properties
  • UserGroup.cs: User, Group properties
  • UserSession.cs: User property

Using init is EF Core compatible and eliminates the "unused private setter" warning since the setter is now an init accessor.

CS4014 - Un-awaited async calls (2 warnings)

Added await to InvokeAsync(StateHasChanged) calls in PlaygroundLayout.razor (lines 185, 195).

Build Verification

Build succeeded.
    0 Warning(s)
    0 Error(s)

jarvis added 2 commits January 25, 2026 17:34
…dHandler

Fixes #1179

The catch block was swallowing exceptions silently. While the behavior
is intentional (session creation failure shouldn't block login), the
exception should be logged for debugging purposes.

Changes:
- Added ILogger<GenerateTokenCommandHandler> dependency
- Log warning when session creation fails with exception details
- Change navigation property setters from 'private set' to 'init' for EF Core entities (fixes S1144)
  - GroupRole.cs: Group, Role properties
  - PasswordHistory.cs: Id, User properties
  - UserGroup.cs: User, Group properties
  - UserSession.cs: User property
- Add await to InvokeAsync(StateHasChanged) calls in PlaygroundLayout.razor (fixes CS4014)

Build now completes with 0 warnings, 0 errors.
@iammukeshm iammukeshm merged commit 4dfadf9 into develop Jan 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant