feat: add customer support PIN for owner identity verification#1026
Merged
Conversation
Add a randomly generated 6-digit support PIN to each Owner that customers provide to a support agent to verify their identity. - New support_pin field on Owner (shared) with migration 0075 that backfills a distinct random PIN per existing owner - regenerateSupportPin GraphQL mutation (current owner) and supportPin exposed on the Me type for display - Django admin: support_pin in the Owner list view plus a staff-gated "Regenerate support PIN" action
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1026 +/- ##
==========================================
+ Coverage 91.89% 91.90% +0.01%
==========================================
Files 1318 1322 +4
Lines 50724 50790 +66
Branches 1625 1625
==========================================
+ Hits 46612 46678 +66
Misses 3806 3806
Partials 306 306
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
3 tasks
calvin-codecov
approved these changes
Jun 8, 2026
# Conflicts: # apps/codecov-api/codecov_auth/admin.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
support_pinto eachOwner(shared model) so customers can verify their identity to a support agent.0075_owner_support_pinadds the field and backfills a distinct random PIN per existing owner.regenerateSupportPinGraphQL mutation (current owner) and exposesupportPinon theMetype for display.support_pinin theOwnerlist view and add a staff-gated "Regenerate support PIN" action.Test plan
RegenerateSupportPinInteractortests (unauthenticated rejected; PIN regenerated, 6-digit, numeric, changed)regenerateSupportPinGraphQL mutation tests (unauthenticated + authenticated)OwnerAdmintests (regenerate action across multiple owners, staff-only availability)0075and confirm existing owners receive distinct PINsNote: the matching frontend (Gazebo) changes are in a separate PR.
Made with Cursor