comp_req__kvs__value_get_api says get value returns the default value, but the team agreed it does not

Abierto Apto para principiantes
#485 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
86/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cpp, rust

Línea de trabajo

El requisito se llama comp_req__kvs__value_get_api; la issue no indica su archivo. Empieza buscando ese requisito en el repositorio y lee su texto actual junto con el comportamiento descrito para Kvs::GetValue y Rust get_value. Actualiza el requisito para que coincida con el acuerdo indicado por el equipo y luego confirma que ya no dice que get value devuelve el valor predeterminado cuando no se ha escrito una clave.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
6
Forks
49
Merge medio
1 d 21 h
PR fusionados (30 d)
63

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de eclipse-score/reference_integration

Todos los issues de eclipse-score/reference_integration

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.