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
-
难度 2/5 1-3 小时 新手友好度 75/100
hugohe3/ppt-master#366 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 89/100
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
521xueweihan/HelloGitHub#4716 ·
-
难度 1/5 1 小时以内 新手友好度 84/100
pcqpcq/open-source-android-apps#619 ·
维护者通常 1 天内回复
-
contribution Windows 主机
难度 2/5 1-3 小时 新手友好度 72/100
Lee-xeo/Claude-Cage#1519 ·
维护者通常 1 天内回复