[PM-29956] Add logging to sponsorship redemption flow#19947
Conversation
|
Companion PR: bitwarden/server#7381 |
Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR adds client-side console logging to the Families for Enterprise sponsorship redemption flow in No security, correctness, or breaking change issues were identified. No sensitive data (tokens, PII) is logged -- only internal IDs, enum values, status codes, and server-provided error messages. The removal of the Code Review DetailsNo findings to report. The changes are well-scoped diagnostic logging with appropriate log levels and no risk of data exposure. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #19947 +/- ##
==========================================
- Coverage 46.92% 46.92% -0.01%
==========================================
Files 3909 3909
Lines 118268 118283 +15
Branches 18093 18096 +3
==========================================
- Hits 55502 55501 -1
- Misses 58593 58609 +16
Partials 4173 4173 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Great job! No new security vulnerabilities introduced in this pull request |
…sponsorship-redeem-logging # Conflicts: # apps/web/src/app/admin-console/organizations/sponsorships/families-for-enterprise-setup.component.ts
3c29ff5
|
* [PM-29956] Add client-side logging to sponsorship redemption flow * Fix prettier formatting




🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-29956
📔 Objective
Add client-side console logging to the Families for Enterprise sponsorship redemption flow to capture diagnostic information when users encounter errors.
Changes:
families-for-enterprise-setup.component.ts— logs viaLogService(browser console) at each step: token presence/length, pre-validation result, organization creation success, redeem start, redeem success, and on failure the fullErrorResponseincludingstatusCode,message, andvalidationErrorsAll logs are prefixed with
[Sponsorship]for easy filtering in DevTools. No PII is logged — only internal IDs, enum values, status codes, and server-provided error messages.This is the client-side companion to the server-side logging PR. Together they cover model state validation failures (client captures the response) and business logic failures (server logs the specific gate that rejected the request).