Rollback Last Import #39

Open
opened 2026-02-25 19:29:02 +00:00 by Vylpes · 0 comments
Owner

Epic: #7


As a seller,
I want to roll back the last import,
so that I can recover if a bad CSV file corrupted my listing data.

Blocked by: STORY-5.4 (Import Completes with Summary), STORY-5.5 (View Import History)

Acceptance criteria:

  • A "Rollback" action is available for the most recent import only
  • User is shown a confirmation dialog explaining what will be reverted
  • On confirm, all records created or updated by the last import are reverted to their pre-import state
  • Records that were manually edited after the import are handled safely (either: block rollback with a warning, or rollback with a clear notice of which records were skipped)
  • After rollback, the import history entry is marked as rolled back
  • An audit log entry is created for the rollback

Subtasks:

  • Implement per-import rollback by storing a snapshot or tracking created/updated record IDs
  • Revert created records and restore previous field values for updated records
  • Handle records with subsequent manual edits (block rollback or warn and skip those records)
  • Mark the import history entry as "rolled back" on completion
  • Create audit log entry for the rollback action
  • Write automated tests (integration: import → rollback → verify all records reverted)
  • Write/update documentation
Epic: #7 --- **As a** seller, **I want to** roll back the last import, **so that** I can recover if a bad CSV file corrupted my listing data. **Blocked by:** STORY-5.4 (Import Completes with Summary), STORY-5.5 (View Import History) **Acceptance criteria:** - A "Rollback" action is available for the most recent import only - User is shown a confirmation dialog explaining what will be reverted - On confirm, all records created or updated by the last import are reverted to their pre-import state - Records that were manually edited after the import are handled safely (either: block rollback with a warning, or rollback with a clear notice of which records were skipped) - After rollback, the import history entry is marked as rolled back - An audit log entry is created for the rollback **Subtasks:** - [ ] Implement per-import rollback by storing a snapshot or tracking created/updated record IDs - [ ] Revert created records and restore previous field values for updated records - [ ] Handle records with subsequent manual edits (block rollback or warn and skip those records) - [ ] Mark the import history entry as "rolled back" on completion - [ ] Create audit log entry for the rollback action - [ ] Write automated tests (integration: import → rollback → verify all records reverted) - [ ] Write/update documentation
Vylpes added this to the (deleted) milestone 2026-02-25 19:29:02 +00:00
Vylpes modified the milestone from (deleted) to 0.3.0 2026-03-02 17:26:45 +00:00
Sign in to join this conversation.
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
RabbitLabs/droplet-next#39
No description provided.