comp_req__kvs__value_get_api says get value returns the default value, but the team agreed it does not
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 86/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- documentation
Direzione di ricerca
Il requisito si chiama comp_req__kvs__value_get_api; l’issue non ne indica il file. Inizia cercando il requisito nel repository e leggi il testo attuale insieme al comportamento descritto per Kvs::GetValue e Rust get_value. Aggiorna il requisito in modo che corrisponda all’accordo del team indicato, poi conferma che non dice più che get value restituisce il valore predefinito quando una chiave non è stata scritta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
The requirement comp_req__kvs__value_get_api says:
if a key was never written, get value returns its default value.
The team agreed on something else: get value returns an error, and the user reads the default value with get default value.
Both implementations work the way the team agreed. Please change the requirement text.
comp_req__kvs__value_get_api: The component shall provide a capability to retrieve the in-memory value associated with a key, returning the default value (see comp_req__kvs__value_default) when the key has not been explicitly written.
How it works today
If a key was never written, get value returns the error KeyNotFound.
This is also true when the key has a default value.
To get the default value, the user calls get default value.
C++ (Kvs::GetValue in score/kvs/kvs.cpp) and Rust (get_value in score/kvs/rust_kvs/kvs.rs) both work like this.
History
#417 (2026-09-18): removed the default value from get value in C++ and Rust
#383 (2026-10-02): in a review, Piotr asked if get value should return the default value. umaucher answered that the team agreed in the FT meeting that it should not: "the 'normal' get is not defining any error handling and the 'user' needs to decide ... so e.g. requesting the default instead".
#541 (2026-10-23): added the current requirement text. It brings the default value back, so it does not match #417 or the agreement.
Acceptance Criteria
Requirtement text should match the team agreement
- Lingua principale
- Python
- Stelle
- 6
- Fork
- 49
- Merge medio
- 1g 21h
- PR unite (30g)
- 63
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna 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 eclipse-score/reference_integration
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
eclipse-score/reference_integration#460 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
eclipse-score/reference_integration#430 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
eclipse-score/reference_integration#494 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
eclipse-score/reference_integration#458 ·
I maintainer di solito rispondono entro 1 giorno
-
os_images as a dev dependencyForse di nuovo libera @odra l’ha presa 43 giorni fa e non c’è nessuna pull request aperta. Aperta
eclipse-score/reference_integration#409 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di eclipse-score/reference_integration
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
hugohe3/ppt-master#366 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 89/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
521xueweihan/HelloGitHub#4716 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
pcqpcq/open-source-android-apps#619 ·
I maintainer di solito rispondono entro 1 giorno
-
contribution Windows 主机
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Lee-xeo/Claude-Cage#1519 ·
I maintainer di solito rispondono entro 1 giorno