Fix oasis network show [entity id hash]
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- go
- 领域
- blockchain, cli
调研方向
从 cmd/network/show.go 中引用的 status 和 pretty-print 处理开始,然后阅读 registry.Backend.GetNode 和 GetNodeStatus 的行为。使用已过期的节点描述符和其他查找错误测试 network show 入口点;完成标准是两个 status 都能独立报告,且不会出现误导性的提前返回或错误输出。
由索引模型根据 Issue 内容生成。
描述
For additional context see https://github.com/oasisprotocol/cli/pull/706#discussion_r3544676120.
Problems
- Status / pretty print should never return eagerly as they are used for debugging.
- Misleading output as error can also happen because of other reasons: https://github.com/oasisprotocol/cli/blob/7e8b7e032cecb47a2f3f00b0b23cae0b92a40dd3/cmd/network/show.go#L98
registry.Backend.GetNodereturnregistry.NoSuchErroras soon as the node descriptor has expired, however descriptor actually stays, just likeregistry.Backend.GetNodeStatusstill returns until debonding period expires.
Solution
Probably best to use switch for both statuses and print them independently (currently we mix them).
- 主要语言
- Go
- 星标
- 80
- 派生
- 23
- 平均合并
- 59 分钟
- 30 天内合并 PR
- 1
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
oasisprotocol/cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 67/100
oasisprotocol/cli#709 ·
-
Allow /proc and /sys bind mounts in ROFL Compose validation可能已有人在做 @martintomazic 于 11 天前认领。 未关闭
oasisprotocol/cli#717 · 已指派 1 人 ·
-
rofl
难度 4/5 3-5 天 新手友好度 48/100
oasisprotocol/cli#716 ·
-
难度 3/5 1-2 天 新手友好度 58/100
oasisprotocol/cli#704 ·
-
rofl
难度 3/5 1-2 天 新手友好度 62/100
oasisprotocol/cli#703 ·
查看 oasisprotocol/cli 的全部 Issue
相似的 Issue
-
enhancement low priority
难度 2/5 1-3 小时 新手友好度 85/100
eugenioenko/ttt#674 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
GoogleCloudPlatform/k8s-config-connector#13462 ·
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 85/100
vavallee/bindery#2793 · 1 条评论 ·
维护者通常 1 天内回复