FR10 status adapter converts a failed response into a current reading

AmyAli0206 · 29 Mar 2026, 01:01 UTC

Reply to discussion
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 replies

LU
LucaCarter0961
Replying to 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 points
AM
AmyAli0206
Replying to LucaCarter0961

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 points
LU
LucaCarter0961
Replying to 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 points

Add to the discussion

Welcome to Application Robot

Everyone can read the forum. Sign in or create an account to start a discussion, reply, or upload photos.

Forgot your password?

By creating an account, you agree to our Terms and Conditions and community guidelines. Read our Privacy Policy for how your information is handled.