bug(versioned): Fix how we (de)serialize enums in the tracking status
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 crates/stackable-versioned/tests/person.rs 中失败的往返测试开始,该测试在 tracking status 枚举上发生 panic。找到这些枚举派生 serde 的位置,并检查 crate 如何对它们应用 serde 属性。将 serde_with 的 with::singleton_map_recursive 应用于(反)序列化,然后重新运行 PersonSpec 往返测试。当往返测试通过且没有 Tagged 枚举错误时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Discovered in #1294.
By default, yaml_serde/serde_yaml (de)serialize enums as a custom YAML tag instead of a map. The error looks like this:
thread 'PersonSpec_roundtrip_down_up' (600819) panicked at crates/stackable-versioned/tests/person.rs:45:1:
called `Result::unwrap()` on an `Err` value: Error("invalid type: map, expected a Value::Tagged enum")
To fix this, we need to serialize and deserialize using with::singleton_map_recursive. I'm interested to work on this.
- 主要语言
- Rust
- 星标
- 169
- 派生
- 20
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 18
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stackabletech/operator-rs 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
stackabletech/operator-rs#1273 · 1 条评论 ·
维护者通常 1 天内回复
-
type/bug
难度 3/5 1-2 天 新手友好度 48/100
stackabletech/operator-rs#1302 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
stackabletech/operator-rs#1077 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
stackabletech/operator-rs#1063 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
stackabletech/operator-rs#1028 ·
维护者通常 1 天内回复
查看 stackabletech/operator-rs 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
jmcnamara/rust_xlsxwriter#205 · 4 条评论 ·
-
agent:triaged bug bughunt pm:pipenv priority:p1
难度 2/5 1-3 小时 新手友好度 78/100
SocketDev/socket-patch#1608 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
adorsys/status-list-server#698 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
nannou-org/egui_graph#92 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 半天 新手友好度 72/100
sujithputta02/Esapay#13 ·