Generate a spec-scoped PDF extract and post its link on linked issues #29
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thierryade/backend#29
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Third and last slice of the Forgejo issue <-> spec link feature (see thierryade/backend#26/#28 for the first two, and the plan discussed in chat).
Scope (PR 3 of 3):
PdfExportJob.spec(FK, nullable, exclusive withproject_version): a third export target alongside "this validated version" and "the project's current state" -- "this one spec's live subtree" (rooted at the spec's place, same shape as every other export, just lower in the tree).apps.exports.snapshot.build_current_context()takes an optionalroot_placeto render it.PdfExportJobViewSet/Celery task -- no new endpoint, justPOST /api/pdf-export-jobs/ {"spec": id}.SpecVersionIssueLinkon that spec gets it as itspdf_export_joband its confirmation comment (apps.specs.tasks.sync_confirmation_comment) is re-synced to fold in a "📄 Extrait PDF" download link -- edited into the same comment the spec-link PR already posts, never a separate one.Test plan
manage.py test-- 204/204 passing (7 new)pylint apps config-- 10.00/10autopep8 --diffcleanbandit -r apps config-- 0 issuesexportsandspecs, each depending on the other's prior state -- no cycle, Django ordered them fine)