fix: before approving, the panel learns that a file cannot be a final and says to treat the art (DTF-WEB-11)
All checks were successful
Build and deploy / Validate source (push) Successful in 8s
Build and deploy / Integration suite on a real stack (push) Successful in 7m15s
Build and deploy / Secret scan and release gate (push) Successful in 9s
Build and deploy / Publish images (push) Successful in 2m28s

The panel offered the customer's correction (or an original) as ready to
approve, and the server refused it as not a transparent 300 DPI PNG,
an error for Sentry. POST /orders/{id}/final-check reads the header of
the order's own files with the same check as the approval and answers
200 with the problems; "Aprovar arquivo final" asks it first and, when a
file cannot be a final, says why and to use "Tratar a arte".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-23 11:52:01 -03:00
parent 6e05dd93c2
commit d51fe24eea
4 changed files with 65 additions and 6 deletions

View File

@@ -280,6 +280,16 @@ def run():
assert red[3] == 255 and red[0] > 200 and red[1] < 60, red
print('PASS: PDF artwork drawn into the PNG print file at 300 DPI')
# Before approving, the panel asks whether the files can be finals: the
# generated PNG can, the customer's PDF original cannot, and the answer
# says why without a refusal (Sentry DTF-WEB-11). Another order's file is
# not read.
check = client.call('/operator/orders/' + pdf_order['id'] + '/final-check',
{'uploads': [str(pdf_row['upload_id']), pdf_upload, str(row['upload_id'])]}, operator=True)
assert [p['upload_id'] for p in check['problems']] == [pdf_upload], check
assert '300 DPI' in check['problems'][0]['message'], check
print('PASS: the panel learns before approving that a file cannot be a final')
# The proof card (Dropstar, 2026-10-30 and 2026-11-03): an order above
# 10 m gets a child card "Prova"; the order waits outside the queue until
# the card in Revisão gets its answer.