chore: User profile repository refactor for UUID (#206) #214

Closed
opened 2026-02-16 15:01:42 +00:00 by egullickson · 0 comments
Owner

Relates to #206

Milestone 4: User profile repository refactor

Change user-profile.repository.ts methods from auth0Sub parameter to UUID id parameter. Keep getByAuth0Sub for auth plugin.

Files

  • backend/src/features/user-profile/data/user-profile.repository.ts

Key Changes

  • Keep getByAuth0Sub for auth plugin JWT resolution
  • Add getById for UUID-based lookups
  • Change 15+ methods: update, updateSubscriptionTier, deactivateUser, etc.
  • Update hardDeleteUser to query by UUID
  • Update listAllUsers cross-table joins

Acceptance Criteria

  • getByAuth0Sub works for auth plugin
  • All other methods accept UUID id parameter
  • hardDeleteUser deletes all user data correctly
  • listAllUsers joins work with UUID columns
Relates to #206 ## Milestone 4: User profile repository refactor Change user-profile.repository.ts methods from auth0Sub parameter to UUID id parameter. Keep getByAuth0Sub for auth plugin. ### Files - `backend/src/features/user-profile/data/user-profile.repository.ts` ### Key Changes - Keep getByAuth0Sub for auth plugin JWT resolution - Add getById for UUID-based lookups - Change 15+ methods: update, updateSubscriptionTier, deactivateUser, etc. - Update hardDeleteUser to query by UUID - Update listAllUsers cross-table joins ### Acceptance Criteria - [ ] getByAuth0Sub works for auth plugin - [ ] All other methods accept UUID id parameter - [ ] hardDeleteUser deletes all user data correctly - [ ] listAllUsers joins work with UUID columns
egullickson added the
status
backlog
type
chore
labels 2026-02-16 15:02:04 +00:00
egullickson added this to the Sprint 2026-02-02 milestone 2026-02-16 15:02:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: egullickson/motovaultpro#214