A user has reported encountering an error when trying to view their data in Tidepool Web. The QA team helps us investigate this and found a reproducible error when using the reporting user's data. We were unable to reproduce this error with other accounts.
The user having this issue can be found in the Zendesk request: https://tidepoolsupport.zendesk.com/agent/tickets/14699
"rollbar.umd.min.js:1 TypeError: Cannot read property 'insufficientData' of undefined"
Steps to reproduce:
access affected account via email@example.com , you will be directed to the basics view
click on any date under the BG readings calendar section (for consistency you may use oct 23rd)
before the daily view finishes loading quickly click on the basics view.
repeat step 2 until you get this error.
User can load all views for their account and view data without receiving errors.
For when this gets prioritized:
At a quick glance, it seems the only time we try to read the value of something with an insufficientData property is in viz/src/utils/stat.js → getStatAnnotations line:360 and using _.get could alleviate the error, but wouldn’t necessarily give us insight into why we’re trying to execute getStatAnnotations on and undefined value which would require more than a quick glance.