[comp] Production Deploy

Merged
GI
5mo ago
+131-86

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.


Summary by cubic

Make policy PDF upload and delete operate on a specific version, defaulting to the latest draft. Blocks changes to published or pending versions and clarifies API behavior.

  • Bug Fixes
    • Upload: use provided versionId or pick the latest draft; return 400 if none. Store with versioned S3 keys (v{version}-timestamp-filename). Update policyVersion.pdfUrl and mirror to policy.pdfUrl/displayFormat=PDF in a transaction. Delete the old object if replaced.
    • Delete: same version selection and checks; disallow published/pending. Delete the S3 object and clear policyVersion.pdfUrl plus policy.pdfUrl, setting displayFormat=EDITOR.
    • API docs: clearer @ApiOperation, @ApiBody, and @ApiQuery descriptions for versionId, defaults, and error cases.