Init: possible confusion if base+modified schemas already exist but local project dir doesn't
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 50/100
Direzione di ricerca
Esamina il flusso di inizializzazione in cui db-sync scarica il progetto Mergin Maps e traccia il modo in cui gli schemi di base e modificati esistenti vengono letti dal database. Controlla l’ID del progetto prima del download; il lavoro è completato quando un ID incompatibile produce un errore invece di tentare il download.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Seen the following case:
- configuration file "base" and "modified" schemas already exist in the database
- the project directory does not exist yet
In this scenario, db-sync will download the MM project at a particular version, but it does not check project ID first. This is a potential problem, because db-sync may try to download a project that is incompatible with the data already stored in the database - this can result in trying to fetch project at e.g. version 1234, but project may not even exist in such version, so the project download will fail.
The fix should be to check project ID before project's download, and fail with error if they do not match.
- Lingua principale
- Python
- Stelle
- 53
- Fork
- 24
- Merge medio
- 1m
- PR unite (30g)
- 1
Preparare l'ambiente
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 MerginMaps/db-sync
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
MerginMaps/db-sync#184 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
MerginMaps/db-sync#185 · 1 commento ·
-
db-sync enters an infinite drop/recreate loop when geodiff init fails on invalid source geometriesAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
MerginMaps/db-sync#182 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
MerginMaps/db-sync#181 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
MerginMaps/db-sync#179 · 3 commenti ·
Tutte le issue di MerginMaps/db-sync
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
PedestrianDynamics/pyFDS-Evac#199 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
521xueweihan/HelloGitHub#3790 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
sandialabs/atlas-ui-3#978 ·
I maintainer di solito rispondono entro 1 giorno
-
area: tests perceived difficulty: 2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Nitjsefnie-Harness-Commons/daedalus#1255 ·
I maintainer di solito rispondono entro 1 giorno
-
hf-audiolm-qwen: `generate_until` hardcodes `.to("cuda")` and aborts on non-CUDA acceleratorsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
EleutherAI/lm-evaluation-harness#4256 ·
I maintainer di solito rispondono entro 1 giorno