FR10 status adapter converts a failed response into a current reading

AmyAli0206 · 29 Mar 2026, 01:01 UTC

Closed
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.

8points
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.

1points
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.

13points

Discussion closed

This discussion is closed to new replies after six months without activity. Last activity: .