Skip to content

feat: file retry + editable error catalog - #131

Merged
Akash29g merged 5 commits into
mainfrom
feat/file-retry-error-catalog
Jul 28, 2026
Merged

feat: file retry + editable error catalog#131
Akash29g merged 5 commits into
mainfrom
feat/file-retry-error-catalog

Conversation

@g9shubh

@g9shubh g9shubh commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

What's changed

Feature 1 — File Retry

  • Added POST /api/v1/files/{id}/retry (Admin only)
  • Resets a Failed file back to Queued, keeps FileStepHistory intact
  • Updates Transaction counters (failed_count--, processing_count++) and recomputes batch state
  • Writes a FILE_RETRY ActivityLog entry for audit trail
  • Re-enqueues file into ExtractionQueue for reprocessing
  • Frontend: ↺ Retry button on File Details page (visible to Admins on Failed files only)

Feature 2 — Editable Error Catalog

  • Added GET /api/v1/error-catalog (all roles)
  • Added POST /api/v1/error-catalog (Admin only)
  • Added PUT /api/v1/error-catalog/{id} (Admin only)
  • Added DELETE /api/v1/error-catalog/{id} (Admin only)
  • Frontend: Error Catalog section in Admin page — list, inline edit, add, and delete entries

Notes

  • No DB migration needed — both features use existing tables
  • ErrorCatalog is global (not tenant-scoped) — intentional
  • Fixed test constructor updates for FileDetailsService (new IExtractionQueue + ICurrentUser deps)

@g9shubh
g9shubh requested a review from sumitgupta-cse July 28, 2026 07:45
@g9shubh
g9shubh requested a review from Akash29g as a code owner July 28, 2026 07:45
@Akash29g
Akash29g merged commit 03daf45 into main Jul 28, 2026
4 checks passed
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.

2 participants