Critical Data Migration & Loader Activity Tracking
2026-01-04
Fixed critical workspace owner detection bug after Redis hash migration, added workspace access validation to loader tracking, and integrated automatic activity tracking for game joins.
Key Highlights
Fixed critical owner detection bug caused by string/number type mismatch after Redis migration
Added workspace access validation to loader tracking - only workspace members can track activity
Integrated automatic activity tracking for game joins - tracks the specific player who joined
All Changes
•Fixed workspace owner detection using proper type conversion (number comparison)
•Updated WorkspaceMetadata interface to support string|number union types for numeric fields
•Added comprehensive workspace access validation to loader track endpoint
•Integrated automatic activity tracking when players join games via loader
•Added activity tracking on both join and leave events for accurate engagement metrics
•Enhanced loader track endpoint with better error handling and logging
•Workspace access now verified via owner status, manual access, or group membership
•Fixed all type conversion issues across auth routes, middleware, and API endpoints
•Group membership checks now use stored access tokens for validation
•Improved JSON parse error handling in loader track endpoint