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

Aberta Para iniciantes
#485 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
1/5
Tempo estimado
Menos de uma hora
Facilidade para iniciantes
86/100
Tipo de issue
Documentação
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
cpp, rust
Domínio
documentation

Direção de pesquisa

O requisito se chama comp_req__kvs__value_get_api; a issue não identifica o arquivo. Comece pesquisando esse requisito no repositório e leia o texto atual junto com o comportamento descrito para Kvs::GetValue e Rust get_value. Atualize o requisito para corresponder ao acordo da equipe mencionado e, em seguida, confirme que ele não diz mais que get value retorna o valor padrão quando uma chave não foi gravada.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Python
Estrelas
6
Forks
49
Merge médio
1d 21h
PRs com merge (30d)
63

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

  • Sem Dockerfile nem arquivo Docker Compose
  • Tem um modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de eclipse-score/reference_integration

Todas as issues de eclipse-score/reference_integration

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.