Project pages database test fails when the local database already has a page
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 84/100
Direzione di ricerca
Apri supabase/tests/database/15_project_pages.test.sql e leggi il test 6 intorno alla riga 107, dove is_empty controlla l'intera tabella public.project_pages. Nota gli id di progetto fixture creati prima nello stesso file, poi restringi la sottoquery con where project_id in (...) a soli quegli id. Esegui supabase test db supabase/tests/database/15_project_pages.test.sql contro un database locale che ha già una pagina — fatto quando il test 6 passa lì e continua a fallire se un progetto fixture ottiene erroneamente una pagina.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
supabase/tests/database/15_project_pages.test.sql test 6 asserts that public.project_pages is empty across the whole table (line 107: select is_empty($$ select project_id from public.project_pages $$, ...)). On a local database where someone has turned on a project page, the table already holds a row, so the test fails even though nothing is wrong:
# Failed test 6: "project_pages: creating projects creates no page"
# Unexpected records:
# (af80a27a-901c-495b-aa74-9e4bb1d9836e)
Reproduced at d831c95 (integration/demo-2026-11) with supabase test db supabase/tests/database/15_project_pages.test.sql against the shared local stack. Found while working on #245; the file is untouched there.
Fix
Scope the assertion to the projects the test creates (where project_id in (...) with its fixture ids), so it proves the rule without depending on the rest of the database. CI is unaffected today only because it starts from an empty database.
Acceptance criteria
- Test 6 passes on a local database that already has project pages, and still fails if creating the fixture projects creates a page.
Model: anthropic/claude-opus-5-5 | Reasoning effort: unknown
- Lingua principale
- TypeScript
- Stelle
- 1
- Fork
- 1
- Merge medio
- 6h 56m
- PR unite (30g)
- 136
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di eddiejaoude/StackDash
-
area: docs documentation priority: P3 size: S
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
eddiejaoude/StackDash#462 ·
I maintainer di solito rispondono entro 1 giorno
-
area: web bug priority: P3 size: XS
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
eddiejaoude/StackDash#432 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: database bug priority: P3 size: S
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eddiejaoude/StackDash#419 ·
I maintainer di solito rispondono entro 1 giorno
-
area: docs bug priority: P2 size: XS
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
eddiejaoude/StackDash#418 ·
I maintainer di solito rispondono entro 1 giorno
-
accessibility area: timeline bug priority: P3 size: XS
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
eddiejaoude/StackDash#389 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di eddiejaoude/StackDash
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
open-webui/tether#52 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
voidzero-dev/void#835 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
AykutSarac/jsoncrack.com#616 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
melgarafael/DeskcommCRM#4679 ·
I maintainer di solito rispondono entro 1 giorno