openmct icon indicating copy to clipboard operation
openmct copied to clipboard

Gauge displays NaN when telemetry not available

Open charlesh88 opened this issue 3 years ago • 3 comments

Summary

When a Gauge has a telemetry source, but that source isn't providing any data, the Gauge is displaying NaN. Screen Shot 2022-07-19 at 9 19 17 AM

Expected vs Current Behavior

The Gauge should display "---" and should not display the "out of range" indication.

Steps to Reproduce

  1. Add a telem source that doesn't have any data currently to a Gauge.

Environment

  • Open MCT Version: R 2.0.5
  • Deployment Type: /testathon
  • OS:
  • Browser:

Impact Check List

  • [ ] Data loss or misrepresented data?
  • [ ] Regression? Did this used to work or has it always been broken?
  • [ ] Is there a workaround available?
  • [x] Does this impact a critical component?
  • [x] Is this just a visual bug with no functional impact?
  • [ ] Does this block the execution of e2e tests?
  • [ ] Does this have an impact on Performance?

Additional Information

charlesh88 avatar Jul 19 '22 20:07 charlesh88

Testing Instructions

  1. Find a numeric telemetry source that is not emitting data, or set the Time Conductor such that the source won't retrieve any data.
  2. Alternately, create a Sine Wave Generator as a data source and set its Loading Delay to 5000 ms or more.
  3. Add your data source to a Gauge. Make sure that "Display current value" is enabled in the Gauge's properties.
  4. Verify that you don't see "NaN" in the Gauge numeric display, but instead see "--" as shown below.

image

charlesh88 avatar Oct 24 '23 23:10 charlesh88

Verified fixed

unlikelyzero avatar Nov 16 '23 22:11 unlikelyzero

Still broken in 3.3.0-next.

image

charlesh88 avatar Jan 29 '24 19:01 charlesh88