Skip to content

feat: retry only the failed items of an operation - #115

Merged
nextestudios merged 2 commits into
mainfrom
feature/19-retry-failed-items
Sep 27, 2026
Merged

nextestudios merged 2 commits into
mainfrom
feature/19-retry-failed-items

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Summary

  • ItemResult now carries SourcePath and TargetFolder (init-only, no positional change) plus NeedsRetry (Failed, NotProcessed, or interrupted at a conflict).
  • FileOperationService tags every result with its source and intended target folder, and when an operation is cancelled or hits a fatal error it reports the items it never reached as NotProcessed (top level and inside folders). A folder cancelled at its own conflict is now reported too.
  • Result dialog and operation details offer Tentar de novo só as falhas (N). File operations build new requests from the failed/not-processed items only, grouped by target folder (nested items go back into their subfolder) and run as one operation; a move's source folder that only stayed behind because something inside failed is not redone whole, it is removed at the end if it only holds empty folders (FileOperationRequest.LeftoverSourceFolders, never deletes files or links).
  • Extraction: retries only the failed/not-processed entries, into the destination the first run actually used (no new dedicated folder). Entries blocked for security are never retried.
  • The new result lists only the retried items. Guide (EN/pt-BR) and both changelogs updated.

Tests

  • CI (Windows):
    • Retry_failed_items_copies_only_the_locked_file_into_its_subfolder: folder copy with one locked file, retry failed items; only that file is copied into Destino/Pasta, the already-copied file is not touched (a conflict would hang the test), and the new result has a single item.
    • Retry_failed_items_of_a_cancelled_extraction_only_extracts_what_was_left: cancel at a conflict, retry; only the interrupted and not-processed entries run.
    • Cancelling_at_a_conflict_reports_the_remaining_items_as_not_processed_with_their_sources (engine).
  • Manual: none (no controller-specific behavior).

Closes #19

🤖 Generated with Claude Code

@nextestudios
nextestudios force-pushed the feature/19-retry-failed-items branch 3 times, most recently from 2aa346b to 1c1267f Compare September 27, 2026 02:57
nextestudios and others added 2 commits September 26, 2026 23:59
Item results now carry their source and target folder, and interrupted
file operations report the remaining items as not processed. The result
dialog and operation details offer "Tentar de novo só as falhas", which
builds new requests from Failed/NotProcessed items only (extraction:
same destination, selected entries only). Succeeded items are never redone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nextestudios
nextestudios force-pushed the feature/19-retry-failed-items branch from 1c1267f to 1d9e07d Compare September 27, 2026 02:59
@nextestudios
nextestudios merged commit faa18f1 into main Sep 27, 2026
1 check passed
@nextestudios
nextestudios deleted the feature/19-retry-failed-items branch September 27, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: retry only the failed items of an operation

1 participant