api: attribute activity rows to api_key.created_by for per-user WAU#54
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Ready to review this PR? Stage has broken it down into 4 individual chapters for you: Chapters generated by Stage for commit ee68d68 on May 12, 2026 9:24pm UTC. |
ReviewWhat's Good
Issues & Suggestions1. Missing DB migration confirmation The query 2. Minor: 3. id, ok := raw.(uuid.UUID)
// ...
return &idThis is correct Go — 4. No test coverage for If Overall this is a solid, focused change. Main things before merging: confirm the migration has run everywhere, add a note on |
activity.actor_id was always NULL. Middleware now reads api_key.created_by and threads it into both activity log helpers so each row gets the profile id of the api-key creator. System events (reaper, build_completed) stay NULL by design.