Skip to content

Test the foreign key index coverage lint#1

Merged
olirice merged 1 commit intomainfrom
or/tests-for-fkey-index-lint
Feb 13, 2024
Merged

Test the foreign key index coverage lint#1
olirice merged 1 commit intomainfrom
or/tests-for-fkey-index-lint

Conversation

@olirice
Copy link
Collaborator

@olirice olirice commented Feb 13, 2024

What kind of change does this PR introduce?

Adds tests for single column and multi-column indexes for the unindexed foreign keys lint

@olirice olirice merged commit 64697e0 into main Feb 13, 2024
@olirice olirice deleted the or/tests-for-fkey-index-lint branch February 13, 2024 21:06
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