Add method for metadata keys to be unset back to their default values

Aperta
#650 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
json
Ambito
api

Direzione di ricerca

Start by reading how PUT currently updates metadata in baseDeltas.json and whether it supports empty-string or null values. The issue does not name implementation files or tests; identify the existing update mechanism and clarify how removing a key should restore its default. Done means a defined, safe way to unset metadata keys.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

This is about manipulating metadata (baseDeltas.json) using PUT.

Currently, there is no mechanism to unset a key. This limits our ability to set metadata keys back to their default values once the key is present in baseDeltas.json.

For example:
We can, for a given path meta, use PUT to update displayName and:

  1. Create/update the key with a given string value
  2. We can set the value to an empty string ''
  3. We can (not sure if supported yet) set value to null to indicate no value should be use

But we cannot remove the key, which would effectively unset the key and have said metadata key go back to its default value.

I think sk could have plugin that exposes metadata keys using a thread save jsonPatch mechanism, or do we already have something similar?

Lingua principale
JavaScript
Stelle
105
Fork
72
Merge medio
11h 49m
PR unite (30g)
5

Preparare l'ambiente

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 SignalK/specification

Tutte le issue di SignalK/specification

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.