No description
Find a file
Claudio Schaad 883f424fd7 Remove XML-to-JSON data migration (#3)
## Summary
All data folders are now migrated to JSON in the `{mandator}/{year}` layout, so the one-time migration from #2 is no longer needed.

- Remove `DataMigrator` and its 15 tests, its DI registration and the startup call in `Program.cs` (`Main` is back to a plain `app.Run()`).
- Remove the old-layout year-folder filter in `SettingsService.GetMandators` and the `DataFolders.IsYear` helper it used.
- Remove the migration notes from `CLAUDE.md` and code comments.
- Rename `.xml` paths to `.json` in a repository-cache test (cosmetic).

Bank-statement import (CAMT053 `.xml` in `StatementImport`) is unaffected.

**Note:** this version expects every data folder to be migrated already. An old-layout or XML data folder is no longer converted. The original XMLs remain in `backup/{mandator}/{year}/xml-<timestamp>/` and can be deleted manually.

## Test plan
- [x] `dotnet build --no-incremental`: no warnings
- [x] `dotnet test`: 62/62 pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Reviewed-on: #3
Co-authored-by: Claudio Schaad <c.schaad@pog.ch>
Co-committed-by: Claudio Schaad <c.schaad@pog.ch>
2026-10-22 12:11:33 +00:00
.idea/.idea.Accounting/.idea Add new blazor app 2025-05-04 20:00:42 +02:00
dlls Add new blazor app 2025-05-04 20:00:42 +02:00
Schaad.Accounting.Common Remove XML-to-JSON data migration (#3) 2026-10-22 12:11:33 +00:00
Schaad.Accounting.Db Remove XML-to-JSON data migration (#3) 2026-10-22 12:11:33 +00:00
Schaad.Accounting.Services Remove XML-to-JSON data migration (#3) 2026-10-22 12:11:33 +00:00
Schaad.Accounting.Tests Remove XML-to-JSON data migration (#3) 2026-10-22 12:11:33 +00:00
Schaad.Accounting.UI Remove XML-to-JSON data migration (#3) 2026-10-22 12:11:33 +00:00
.gitignore PR G: test project with xxxTestShould / DoThisWhenThat / Shouldly 2026-07-02 21:25:48 +02:00
Accounting.sln PR G: test project with xxxTestShould / DoThisWhenThat / Shouldly 2026-07-02 21:25:48 +02:00
CLAUDE.md Remove XML-to-JSON data migration (#3) 2026-10-22 12:11:33 +00:00
Directory.Build.props Cleanup: remove plan docs, update NuGet, centralize build config (#1) 2026-10-22 11:20:31 +00:00
Directory.Packages.props Cleanup: remove plan docs, update NuGet, centralize build config (#1) 2026-10-22 11:20:31 +00:00
global.json Cleanup: remove plan docs, update NuGet, centralize build config (#1) 2026-10-22 11:20:31 +00:00
LICENSE Create LICENSE 2025-05-14 21:46:47 +02:00