Skip to content

Conversation

@chrisdburr
Copy link
Collaborator

No description provided.

  The one-time Django→Prisma data migration is complete on all environments.
  This removes:

  - Data migration scripts (prisma/scripts/01-04*.ts)
  - Helper scripts (check-user.ts, legacy-team-cleanup.ts)
  - Migration notification data (duplicate-user-notifications.json)
  - tsx, postgres, dotenv dependencies from Docker image
  - Complex migration logic from docker-entrypoint.sh

  The entrypoint now simply runs `prisma migrate deploy` and starts the server.
  Bug #1: After detaching children to sandbox, orphaned elements weren't
  showing in the reattach dialog until page reload. Fixed by updating
  handleDetachAndDelete to populate orphanedElements state immediately
  after detaching children (including nested subtrees).

  Bug #2: After reattaching an element with children, the children weren't
  rendering on the canvas until page reload. Fixed by replacing client-side
  state manipulation with server refetch approach (refetchCaseData) that
  fetches the complete tree with all children.

  Removed ~270 lines of unused client-side state manipulation functions
  that were replaced by the simpler server refetch approach.
…pdate

   The reset identifiers API was successfully updating the database but the UI
   wasn't refreshing because no SSE event was emitted. Added emitSSEEvent()
   call after successful update.

   Note: userId is intentionally not passed to emitSSEEvent() so the triggering
   user also receives the event (the frontend doesn't update optimistically
   for this operation).

   Closes: AssurancePlatform-dov
JWT-only auth has been stable for 30+ days. Remove the RefreshToken
infrastructure that is no longer used:

- Delete lib/auth/refresh-token-service.ts and lib/auth/feature-flags.ts
- Simplify validate-session.ts to use getServerSession directly
- Remove session token fields from NextAuth types
- Remove RefreshToken model from Prisma schema
- Update middleware to check only session.user.id
- Update auth-options.ts to remove token creation code
- Update client components to pass empty string for token parameter
- Update test files to remove session token expectations

Database migration included to drop refresh_tokens table.
@chrisdburr chrisdburr merged commit e6ca614 into main Jan 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants