CA must reject invalid metadata updates.
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 49/100
Direzione di ricerca
Start by tracing Attribute.update_meta and the CA transport metadata update path described in the issue; the payload does not name specific files or tests. Check how invalid metadata currently fails and how the attribute and records metadata are updated. Done means a rejected update leaves both metadata values in sync.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Following #440, which introduces thorough metadata handling, an update to an attributes metadata will be reflected with an update to the CA records metadata. However, if this update is not valid (such as the shape of an array), this is still attempted and will fail.
After this failure, the attribute is left with new metadata that does not reflect the actual records metadata.
A possible solution for this would be to create a validator function on the CA transport and add a _update_meta_validators list to Attribute. Transports can then register their function to this list via an add_update_meta_validator method, which allows Attribute.update_meta to reject updates before they go through.
Acceptance Criteria
- Attributes and records metadata do not go out of sync when a failed metadata update occurs
- Lingua principale
- Python
- Stelle
- 6
- Fork
- 8
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un 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 DiamondLightSource/fastcs
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
DiamondLightSource/fastcs#443 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
DiamondLightSource/fastcs#437 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DiamondLightSource/fastcs#416 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
DiamondLightSource/fastcs#345 ·
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 62/100
DiamondLightSource/fastcs#341 ·
Tutte le issue di DiamondLightSource/fastcs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
its-me-prash/vwgroup-connect-ha#2019 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
KonstantinStarovoytov/kitden#21 ·
I maintainer di solito rispondono entro 1 giorno
-
RefactorAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ehmatthes/gh-profiler#166 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
smart-on-fhir/smart-fetch#73 ·
-
good first issue help wanted
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
RizgarOzan/playcal#13 ·