Allow force running of --once if current.sql has not changed
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- postgresql, sql, typescript
Direzione di ricerca
Inizia tracciando la gestione di --once e la logica che rileva se current.sql è cambiato. Determina come un’opzione force dovrebbe interagire con quel controllo, quindi verifica il comportamento con i test di migrazione esistenti o con gli entry point dei test che trovi; il lavoro è completato quando un current.sql invariato può essere eseguito ripetutamente se forzato esplicitamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Feature description
Often we use tricks like select n and increment the number or change current.sql in another way to get it to run.
It would be handy to have a flag to force run --once if the file hasn't changed.
Motivating example
When testing a data migration, it is often very handy to have an idempotent migration that can get run multiple times as you add/change data in your application.
Typical workflow for me in a data migration involves
- Keep the original data I am moving in place (if possible)
- Run the migration, check for base functionality, compare against existing
- Add more data to test the migration and run it again (rinse and repeat as needed)
- Once tested, add code to cleanup the original data, test again, and ship
Though workarounds are simple as described in the feature description, I think it would be a nice add.
Breaking changes
n/a
Supporting development
I [tick all that apply]:
- am interested in building this feature myself
- am interested in collaborating on building this feature
- [ x ] am willing to help testing this feature before it's released
- am willing to write a test-driven test suite for this feature (before it exists)
- [ x ] am a Graphile sponsor ❤️
- [ x ] have an active support or consultancy contract with Graphile
- Lingua principale
- TypeScript
- Stelle
- 836
- Fork
- 71
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun 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 graphile/migrate
-
Partition migrations folderAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
🐛 bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
Tutte le issue di graphile/migrate
Issue simili
-
foreground-up-signals-live: delivery-repair cell expects a spawn suggestion status no longer printsApertabug triage:owned
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
e2e-failure ready-to-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
redhat-developer/rhdh-plugin-export-overlays#4905 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
directus/directus#28558 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
review: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
1lck/Lithe-IDEA#2432 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
cloudflare/workers-sdk#17189 ·
I maintainer di solito rispondono entro 1 giorno