1625e8a2578b2cc06c9bd60cc37d8a4a217c00bd
The FIX 4 test asserted a full new 201 emission after the only document under an idempotency key was soft-deleted. That over-reached: the surviving FiscalIdempotencyKey (never soft-deleted, by design) still collides on the UNIQUE(product_id, idempotency_key), and the camada-2 winner lookup — now filtered by deleted_at IS NULL — returns None and re-raises. Re-emission under a burned key is a future CANCEL feature (no soft-delete path exists in F2), out of scope for this MINOR. The fix's real contract is narrow: a replay must not RETURN a soft-deleted document. Test now proves exactly that on the query (seeded on a separate session so it doesn't pollute the app's shared db_session — the source of the MissingGreenlet the end-to-end POST hit). Detection proven: filter removed -> FAILED; restored -> passed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Description
Serviço fiscal compartilhado SowAI: emissão NF-e (e futuramente NFS-e/NFC-e) multi-produto via REST. Embute a lib sowai-fiscal; dono de documentos/certificados/séries. F2+ do plano Estágio 2.
280 KiB
Languages
Python
96.9%
Makefile
2.2%
Dockerfile
0.6%
Mako
0.3%