Skip to content

auth.users is exposed through public schema#2

Merged
olirice merged 2 commits intomainfrom
or/auth_users_exposed
Feb 14, 2024
Merged

auth.users is exposed through public schema#2
olirice merged 2 commits intomainfrom
or/auth_users_exposed

Conversation

@olirice
Copy link
Collaborator

@olirice olirice commented Feb 13, 2024

What kind of change does this PR introduce?

Tests if the auth.users schema is potentially being exposed through the public schema.

@olirice olirice merged commit 270f1d2 into main Feb 14, 2024
@olirice olirice deleted the or/auth_users_exposed branch February 14, 2024 14:14
caimanoliveira pushed a commit to caimanoliveira/splinter that referenced this pull request Mar 20, 2026
Fix supabase#1 - useLeads.ts: remove busca de todas as reuniões no select
principal. Agora faz uma segunda query indexada (idx_meetings_lead_date)
buscando somente reuniões futuras dos leads retornados, eliminando
o filtro client-side que processava todos os registros em JS.

Fix supabase#2 - RPCs transacionais: cria migration com 4 funções Postgres
que executam lead+interaction e meeting+interaction em transação
única, eliminando race conditions onde o segundo insert podia falhar
sem rollback do primeiro.

- create_lead_with_interaction
- update_lead_with_interaction
- create_meeting_with_interaction
- move_lead_stage (kanban drag)

Adiciona índice composto meetings(lead_id, date) para suportar Fix supabase#1.

https://claude.ai/code/session_0118ojZM3u7GeunLzKgKKvHa
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