bug(import): skipped file list is lost when import transitions to FAILED state #621
Reference in New Issue
Block a user
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?
Problem
When an import fails mid-run (e.g. spreadsheet not found, or an uncaught exception),
currentStatusis reset with an emptyskippedFileslist:Any files that were skipped (invalid PDF signature, read error) before the failure occurred are irretrievably discarded. The admin card only surfaces
skippedFilesin theDONEstate, so even if we preserved the list it would need a frontend change to show it on failure.Expected behaviour
If 3 files were skipped before an internal error aborted the import, the admin should still be able to see those 3 skipped files in the status card — either in the FAILED state display, or in a persistent log.
Acceptance criteria
skippedFilescontains the 2 already-skipped entriesImportStatusCardshows the skipped section forFAILEDstate whenskipped > 0Notes
The simplest backend fix is to pass the in-progress
skippedFileslist through to the FAILED status constructors rather thanList.of(). The frontend change is a one-line{#if}condition addition.Surfaced during review of #618.