0.487.0
·
14 commits
to main
since this release
Release : pillar2-frontend 0.487.0
Last commit sha : c7a11fb
Last commit author : James Miller
Last commit time : 2026-02-27T10:58:28Z
PIL-2624 - Update BTN to handle raw response from ETMP (#639)
This PR implements the frontend portion of the BTN Audit refactoring
(PIL-2624).
Key Changes:
- Raw Response Handling: The
BTNConnectorandBTNServicenow
return the rawHttpResponsefrom thepillar2backend, which is
acting as a transparent proxy. - Enhanced Auditing: The
BtnSubmissionServicehas been updated to
capture the exact status code and response body from the downstream ETMP
service. - Audit Model Updates: Added
ApiResponseData.fromHttpResponseto
correctly parse raw responses for audit events. - Error Handling: Logic for handling success (201) vs failure
(non-201) has been moved here from the backend. - Test Updates: Comprehensive updates to
BTNConnectorSpec,
BTNServiceSpec,BtnSubmissionServiceSpec, and
CheckYourAnswersControllerSpecto mock and verifyHttpResponse
objects and ensure compilation success.
Motivation:
To improve visibility into downstream errors and ensure the audit trail
accurately reflects the raw response from ETMP.