test(database): scope two pgTAP assertions to their own fixtures
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
- 75/100
Direzione di ricerca
Apri supabase/tests/database/15_project_pages.test.sql e leggi prima il test 6: seleziona ogni riga da public.project_pages, quindi deve essere filtrato sull'id del progetto che il test inserisce. Poi leggi il test 25 in supabase/tests/database/16_public_share_surfaces.test.sql e restringi la ricerca del contatore alle chiavi che quel test scrive. Esegui supabase test db su entrambi i file contro il tuo database locale popolato; fatto quando entrambi riportano zero fallimenti senza un reset.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
Against the shared local database (the one npm run dev uses), npm run test:db fails two assertions that read rows the database already holds rather than only the test's own fixtures:
15_project_pages.test.sqltest 6, "project_pages: creating projects creates no page":select project_id from public.project_pagesis empty only on a fresh database.16_public_share_surfaces.test.sqltest 25, "purge_public_rate_limit_counters: the current minute's counters are kept".
Found while verifying #414, whose migration touches neither object. A fresh database (CI) may well pass; a developer's local run does not, so the suite's result depends on what else is in the database.
Plan
Scope both assertions to the rows each test inserts (its own workspace or project ids, its own counter keys).
Acceptance criteria
- Both files pass against a local database that holds other workspaces' project pages and rate limit counters
- No e2e change needed: database tests only
Files and areas
supabase/tests/database/15_project_pages.test.sql, supabase/tests/database/16_public_share_surfaces.test.sql.
Verification
supabase test db supabase/tests/database/15_project_pages.test.sql supabase/tests/database/16_public_share_surfaces.test.sql -> currently 1 failure in each.
Model: anthropic/claude-opus-5-5 | Reasoning effort: not reported by the harness
- 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: 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
-
area: integrations bug priority: P3 size: S
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
eddiejaoude/StackDash#386 ·
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 72/100
AykutSarac/jsoncrack.com#616 ·
-
nip27: long hashtag swallows the rest of the content, lone # gives an empty hashtagForse già presa @bardrop l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
nbd-wtf/nostr-tools#578 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
backnotprop/plannotator#3427 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
microsoft/Power-CAT-Copilot-Studio-Kit#942 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument pageApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
AOSSIE-Org/DebateAI#801 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno