arch: move MasterDataSet out of LageBuch.Persistence so AppLogic stops referencing the infrastructure assembly
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with src/LageBuch.AppLogic/LageBuch.AppLogic.csproj and src/LageBuch.Persistence/MasterData/MasterDataSet.cs, then trace the listed view-models, service interfaces, and Services/IncidentStore.cs dependencies. The proposal leaves the destination undecided (Domain or a new Contracts project) and allows moving IncidentStore to either app heads or a new Infrastructure project. Follow AGENTS.md and keep docs/master-data.example.json in sync; done when AppLogic no longer references Persistence and the dependent code builds and tests pass.
由索引模型根据 Issue 内容生成。
描述
From the 2026-09-09 architecture review of main (35d86e1).
LageBuch.AppLogic references LageBuch.Persistence (src/LageBuch.AppLogic/LageBuch.AppLogic.csproj:6) for one reason: MasterDataSet and IncidentSettings (src/LageBuch.Persistence/MasterData/MasterDataSet.cs) are defined in the infrastructure assembly, and 14 view-model files plus the service interfaces IMasterDataProvider, IMasterDataFileService and IIncidentHostController using LageBuch.Persistence.MasterData. The records themselves are plain data with no SQLite in them. The only concrete Persistence use in AppLogic is Services/IncidentStore.cs.
Proposal
- Move
MasterDataSet,IncidentSettings,AnonymizedExampleDataand the small record types they use toLageBuch.Domain(they are dependency-free records) or a newLageBuch.Contractsproject. - Keep
MasterDataJsonandMasterDataStorein Persistence. - Move
IncidentStore(theIIncidentStoreimplementation overIncidentRepository) to the app heads or a smallLageBuch.Infrastructureproject, soAppLogicno longer references Persistence at all.
Keep docs/master-data.example.json in sync per AGENTS.md if any field moves.
- 主要语言
- C#
- 星标
- 1
- 派生
- 3
- 平均合并
- 4 小时 34 分钟
- 30 天内合并 PR
- 182
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CodeForFire/lagebuch 的其他 Issue
-
bug ux
难度 2/5 1-3 小时 新手友好度 78/100
CodeForFire/lagebuch#714 ·
维护者通常 1 天内回复
-
bug ux
难度 2/5 1-3 小时 新手友好度 75/100
CodeForFire/lagebuch#713 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
CodeForFire/lagebuch#405 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
CodeForFire/lagebuch#349 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
CodeForFire/lagebuch#348 ·
维护者通常 1 天内回复
查看 CodeForFire/lagebuch 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
KnifeLemon/Filee#363 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
-
area-Native untriaged
难度 2/5 1-3 小时 新手友好度 76/100
dotnet/machinelearning#7837 ·
维护者通常 2 天内回复