Skip to content

Retain certificate PDF versions and delivery history during regeneration - #829

Merged
TThanos3000 merged 2 commits into
devfrom
fix/dev-certificate-pdf-versions-20261025
Oct 25, 2026
Merged

TThanos3000 merged 2 commits into
devfrom
fix/dev-certificate-pdf-versions-20261025

Conversation

@TThanos3000

@TThanos3000 TThanos3000 commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Updating selected certificate PDFs previously cleared the existing file before generation, so a renderer failure could break an issued public link. PDF refresh also reset the email delivery record, making an already delivered participant eligible for another email.

Track the batch that produced the stored PDF separately from its pending job. Keep the old file available while regeneration is queued or fails, then replace bytes and provenance atomically on success. Preserve the original sent timestamp, filters and duplicate-send protection across individual downloads, ZIP refreshes, selected refreshes and retries; the worker refuses another email for an already delivered certificate. Journal responses distinguish PDF update errors from mail failures.

Migration 0031 backfills provenance without changing existing files, tokens, delivery state or dates. Final head 9e461ae passes full PostgreSQL CI 40214171911: 1420 backend tests plus 39 locking/contract tests. Standard CI 40214167549 and lint pass. Deployment 40216388686 successfully applies the migration and verifies matching web/worker images and Celery health. Native local failure/retry checks retain the old public link and delivery date without email; live dev program 6 confirms current individual PDFs, selected ZIP and participant-card download after frontend #509/#510. No participant mail was sent by acceptance checks.

@TThanos3000 TThanos3000 changed the title fix(certificates): сохранять выданный PDF до успешного обновления Retain certificate PDF versions and delivery history during regeneration Oct 25, 2026
@TThanos3000
TThanos3000 merged commit ee0d9cc into dev Oct 25, 2026
3 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