[comp] Production Deploy
Merged
GI
5mo ago+131+131+012345678901234567890123456789-86-86-01234567890123456789
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
versionIdor pick the latest draft; return 400 if none. Store with versioned S3 keys (v{version}-timestamp-filename). UpdatepolicyVersion.pdfUrland mirror topolicy.pdfUrl/displayFormat=PDFin a transaction. Delete the old object if replaced. - Delete: same version selection and checks; disallow published/pending. Delete the S3 object and clear
policyVersion.pdfUrlpluspolicy.pdfUrl, settingdisplayFormat=EDITOR. - API docs: clearer
@ApiOperation,@ApiBody, and@ApiQuerydescriptions forversionId, defaults, and error cases.
- Upload: use provided