Skip to content

Set created_by and updated_by on all database operations#2310

Merged
hiroshinishio merged 1 commit intomainfrom
wes
Feb 23, 2026
Merged

Set created_by and updated_by on all database operations#2310
hiroshinishio merged 1 commit intomainfrom
wes

Conversation

@hiroshinishio
Copy link
Collaborator

Summary

  • Audited every Supabase insert/update/upsert operation and fixed 7 missing audit trail fields
  • insert_usage: added created_by using user_id:user_name format
  • insert_installation: added created_by using user_id:user_name format
  • upsert_user: fixed created_by from str(user_id) to user_id:user_name format
  • update_issue_url: added updated_by parameter
  • update_stripe_customer_id: added updated_by parameter
  • clear_old_content: added updated_by="system" for system/cron operations
  • chat_with_claude / insert_llm_request: made created_by a required parameter and passed it through the call chain
  • Updated all 8 test files to match new function signatures (103 tests passing)

@hiroshinishio hiroshinishio self-assigned this Feb 23, 2026
…erations

Audited every Supabase operation and fixed 7 missing audit trail fields:
- insert_usage: added created_by (user_id:user_name format)
- insert_installation: added created_by
- upsert_user: fixed created_by format from str(user_id) to user_id:user_name
- update_issue_url: added updated_by parameter
- update_stripe_customer_id: added updated_by parameter
- clear_old_content: added updated_by="system"
- chat_with_claude/insert_llm_request: made created_by required and passed through
@hiroshinishio hiroshinishio merged commit 9d46ca9 into main Feb 23, 2026
1 check passed
@hiroshinishio hiroshinishio deleted the wes branch February 23, 2026 02:16
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.

1 participant