super-productivity/e2e/tests/import-export
Johannes Millan 3bf1cc348f fix(export): read archiveYoung/archiveOld from ModelCtrl for export
The PfapiStoreDelegateService was reading archive data from NgRx store,
but archives are stored in ModelCtrl (pf database), not NgRx. The NgRx
archive state is only populated on loadAllData (import) and is never
updated when ArchiveService writes to ModelCtrl during finish day.

This caused exports to contain empty/stale archiveYoung data after
archiving tasks via "Finish Day", resulting in lost subtasks.

The fix reads archiveYoung and archiveOld from ModelCtrl (via
pfapiService.m.archiveYoung.load()) instead of NgRx selectors, since
that's where the actual archive data lives.

Includes E2E test to verify subtasks are preserved in archive after
legacy data import and finish day flow.
2025-12-26 18:43:46 +01:00
..
archive-subtasks.spec.ts fix(export): read archiveYoung/archiveOld from ModelCtrl for export 2025-12-26 18:43:46 +01:00