简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

FR10 status adapter converts a failed response into a current reading

AmyAli0206 · 2026年3月29日 01:01 UTC

回复讨论
AM
AmyAli0206
Our replacement SDK returns a structured response where the old environment returned the value expected by the wrapper. The dashboard now extracts a number from failed replies and stamps it as current. I want the adapter to handle both supported contracts explicitly, with no useful data represented as unavailable.

3 条回复

LU
LucaCarter0961
回复 AmyAli0206

Start with a saved failure that shows the bug and the documentation for the loaded version. Check the success indication before extracting the named status value, then test the screen after a good reply followed by that failure.

8
AM
AmyAli0206

The saved failure reproduces it. Maintainer has identified both contracts; the first test now asserts unavailable rather than just checking that the display contains text.

1
LU
LucaCarter0961
回复 AmyAli0206

Add success with the required value missing too. The outer reply can sound fine while the useful bit isn't there, and the adapter mustn't fill that hole with a believable default.

13

参与讨论

欢迎来到 Application Robot

所有人都可以阅读论坛。登录或注册后即可发起讨论、回复或上传照片。

忘记密码?

注册账号即表示你同意我们的 使用条款 社区准则。请阅读我们的 隐私政策 ,了解我们如何处理你的信息。