Remove XML-to-JSON data migration #3

Merged
clayschaad merged 1 commit from remove-xml-migration into main 2026-10-22 12:11:34 +00:00
Owner

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

  • dotnet build --no-incremental: no warnings
  • dotnet test: 62/62 pass

🤖 Generated with Claude Code

## 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)
clayschaad added 1 commit 2026-10-22 12:06:06 +00:00
All data folders are migrated, so drop DataMigrator, its tests and the
startup call, plus the old-layout year-folder filter in GetMandators.
Bank-statement XML import is unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clayschaad merged commit 883f424fd7 into main 2026-10-22 12:11:34 +00:00
clayschaad deleted branch remove-xml-migration 2026-10-22 12:11:34 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: clayschaad/AccountingNext#3
No description provided.