mirror of
https://github.com/Corsinvest/cv4pve-admin.git
synced 2026-04-26 05:15:51 +03:00
[PR #192] chore: Core misc improvements — BuildInfo.IsInContainer, SyncRolesAsync, EditDialog cleanup #185
Labels
No labels
bug
bug
enhancement
feedback
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-admin#185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/Corsinvest/cv4pve-admin/pull/192
State: closed
Merged: Yes
Summary
BuildInfo.IsInContainerproperty (readsDOTNET_RUNNING_IN_CONTAINER) and use it inHelpMenuinstead ofApplicationHelper.IsInContainerUserManager.SyncRolesAsyncextension — bidirectional role sync (removes obsolete roles, adds new ones atomically)EfCoreExtensionsto usescope.GetRequiredService()shorthandServiceScopeExtensions.GetDbContextAsync()to expression bodyEditDialognull-checks with null-conditional operators, remove redundantifblocksCookieThemeServiceinEmptyLayoutApplicationHelper,PveSearchProvider,ResourceUsageGaugeStackedTest plan
SyncRolesAsyncadds and removes roles correctly[PR #192] [MERGED] chore: Core misc improvements — BuildInfo.IsInContainer, SyncRolesAsync, EditDialog cleanupto [PR #192] chore: Core misc improvements — BuildInfo.IsInContainer, SyncRolesAsync, EditDialog cleanup