CA must reject invalid metadata updates.

Aperta
#445 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
49/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

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

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DiamondLightSource/fastcs

Tutte le issue di DiamondLightSource/fastcs

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.