Skip to content

fix(inbox): correct backfill advice and keep going on a storage error - #1389

Open
spalinger wants to merge 1 commit into
splattner:mainfrom
spalinger:spalinger/inbox-backfill-warning
Open

spalinger wants to merge 1 commit into
splattner:mainfrom
spalinger:spalinger/inbox-backfill-warning

Conversation

@spalinger

Copy link
Copy Markdown
Contributor

Summary

Two fixes to openzev_inbox_backfill:

  • Wrong closing advice. It said skipped documents "stay reachable through the live invoice and credit note endpoints". Since 1.31.0 they don't: a skipped document is missing from the participant's inbox. The command now says so and tells the operator to restore or generate the missing PDFs, fix delivery errors and run it again.
  • One storage error stopped the whole run. The file-exists check was outside the error handling. Now that document is listed as failed and the run continues.

Linked spec

  • Spec: docs/specs/2026-11-participant-document-inbox.md (§6.6 updated; release-gate wording removed from §7.3 and §8)
  • ADR (if architecture decision changed): none
  • No spec needed because: n/a

Validation

  • Backend tests run: ruff check ., python manage.py check, python -m pytest -q (SQLite and PostgreSQL), all passed; two new storage-error tests
  • Frontend build run: n/a (backend only)
  • Frontend tests run: n/a (backend only)
  • Manual checks: none
  • Screenshots: n/a (no UI change)

Checklist

  • Spec updated/linked for larger or risky changes
  • N/A: ADR (no architecture decision)
  • N/A: backend and frontend together (no API contract change)

Since the phase 6b cut-over, participants no longer reach live invoices or
credit notes, so the closing line saying skipped documents stay reachable
there was wrong. Tell the operator what to do instead, and drop the
cut-over gate wording from the docstring and the spec.

The storage existence check ran outside the per-document try, so one
storage error aborted the whole run. It is now listed as failed like any
other delivery error.

This branch has not been deployed

No deployments
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.

1 participant