mirror of
https://github.com/Corsinvest/cv4pve-admin.git
synced 2026-04-25 12:55:57 +03:00
[PR #153] [MERGED] refactor: remove redundant ModuleType from Widget and simplify GetModuleWidget #147
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#147
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?
📋 Pull Request Information
Original PR: https://github.com/Corsinvest/cv4pve-admin/pull/153
Author: @franklupo
Created: 2/17/2026
Status: ✅ Merged
Merged: 2/17/2026
Merged by: @franklupo
Base:
main← Head:refactor/dashboard-remove-module-type📝 Commits (1)
eda3cb1refactor: remove redundant ModuleType from Widget and simplify GetModuleWidget📊 Changes
6 files changed (+165 additions, -45 deletions)
View changed files
📝
src/Corsinvest.ProxmoxVE.Admin.Module.Dashboard/Components/Dashboard.razor.cs(+0 -1)➕
src/Corsinvest.ProxmoxVE.Admin.Module.Dashboard/Migrations/20260217125654_RemoveWidgetModuleType.Designer.cs(+128 -0)➕
src/Corsinvest.ProxmoxVE.Admin.Module.Dashboard/Migrations/20260217125654_RemoveWidgetModuleType.cs(+32 -0)📝
src/Corsinvest.ProxmoxVE.Admin.Module.Dashboard/Migrations/ModuleDbContextModelSnapshot.cs(+2 -12)📝
src/Corsinvest.ProxmoxVE.Admin.Module.Dashboard/Models/Widget.cs(+3 -5)📝
src/Corsinvest.ProxmoxVE.Admin.Module.Dashboard/dashboards.json(+0 -27)📄 Description
Summary
ModuleTypeproperty fromWidgetmodel —ModuleWidgetType(C# FullName) already uniquely identifies a widget globallyGetModuleWidgetto search across all modules usingSelectManyinstead of first resolving the module by typeModuleTypeassignment inDashboard.razor.cswhen creating new widgetsRemoveWidgetModuleTypeto drop theModuleTypecolumn fromdashboard.Widgetstabledashboards.jsondefault template accordinglyTest plan
ModuleTypecolumn is dropped🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.