Remove DisableForeignKeysAndTriggers from our test suite in coder/coder
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 3
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
`DisableForeignKeysAndTriggers` was added to punt some of the work getting our tests running with Postgres instead of the in-memory database (which didn't support foreign key constraints and triggers).
Some of the uses, like in `dbauthz` should get replaced by the mock database, others should get fixed up to satisfay Postgres.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start by locating every use of DisableForeignKeysAndTriggers in the test suite, with particular attention to dbauthz, and review how the mock database is used. Done means removing the helper, replacing applicable uses with the mock database, and fixing the remaining tests so they satisfy Postgres constraints and triggers.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- postgresql
- Ambito
- databases, testing
- Tipo di issue
- Refactoring
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100