Skip to content

fix deletion of failed document uploads - #3366

Merged
nicoloboschi merged 2 commits into
vectorize-io:mainfrom
koriyoshi2041:rios/fix-delete-failed-documents
Aug 11, 2026
Merged

fix deletion of failed document uploads#3366
nicoloboschi merged 2 commits into
vectorize-io:mainfrom
koriyoshi2041:rios/fix-delete-failed-documents

Conversation

@koriyoshi2041

Copy link
Copy Markdown
Contributor

Problem

Failed file conversions appear in the Documents table without a document row, so the normal document deletion path cannot remove them. They remain visible until operation retention expires.

Fixes #3328.

Fix

Keep the backing operation ID on pending upload rows and expose the existing terminal-operation delete action for failed conversions. After deletion, refresh the pending upload list so the row disappears immediately.

Test

  • npm test --workspace @vectorize-io/hindsight-control-plane -- --run (123 passed)
  • pre-commit lint and unused-code hooks passed
  • npx prettier --check hindsight-control-plane/src/components/documents-view.tsx

Risk

Low. The action is shown only for failed file-conversion operations and reuses the same delete-operation API already used by the Operations view. Processing uploads and successful document rows are unchanged.

koriyoshi2041 and others added 2 commits August 11, 2026 10:38
deleteFailedUpload only had try/finally, but fetchApi both toasts and
rethrows, and the handler is invoked from onClick without being awaited —
a failed delete left an unhandled promise rejection. Match the sibling
handlers in bank-operations-view, which catch and rely on the API client
interceptor for the user-facing error.
@nicoloboschi
nicoloboschi merged commit 78f1a0e into vectorize-io:main Aug 11, 2026
89 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.

Failed documents cannot be deleted

2 participants