comp_req__kvs__value_get_api says get value returns the default value, but the team agreed it does not
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 1/5
- 預估耗時
- 1 小時以內
- 新手友好度
- 86/100
- Issue 類型
- 文件
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
研究方向
這項需求名為 comp_req__kvs__value_get_api;issue 未指出其所在檔案。首先在 repository 中搜尋這項需求,並將其目前文字與針對 Kvs::GetValue 和 Rust get_value 所描述的行為一併閱讀。更新需求,使其符合所述的團隊共識,然後確認其中不再寫著:鍵尚未寫入時,get value 會傳回預設值。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- Python
- 星號
- 6
- 分支
- 49
- 平均合併
- 1 天 21 小時
- 30 天內合併 PR
- 63
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
eclipse-score/reference_integration 的其他 Issue
-
documentation
難度 2/5 1-3 小時 新手友好度 70/100
eclipse-score/reference_integration#460 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 78/100
eclipse-score/reference_integration#430 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 42/100
eclipse-score/reference_integration#494 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 35/100
eclipse-score/reference_integration#458 ·
維護者通常 1 天內回覆
-
os_images as a dev dependency可能重新可做 @odra 於 43 天前認領,目前沒有進行中的 PR。 未關閉
eclipse-score/reference_integration#409 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 eclipse-score/reference_integration 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
available bug good first issue tooling
難度 2/5 1-3 小時 新手友好度 88/100
Nixitov/Riptide-Native#816 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 83/100
SpikeInterface/spikeinterface#5008 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 70/100
teng-lin/notebooklm-py#2593 ·
維護者通常 1 天內回覆
-
claimed-by:collie role:small-fix status:running
難度 2/5 1-3 小時 新手友好度 82/100
Beovulfo/herd-sdlc#325 · 1 則留言 ·
維護者通常 1 天內回覆