TypeError Cannot read property of undefined

Description

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

Error:
"rollbar.umd.min.js:1 TypeError: Cannot read property 'insufficientData' of undefined"

Steps to reproduce:

  • access affected account via support@tidepool.org , 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.

Done Criteria

User can load all views for their account and view data without receiving errors.

Design Specifications:

None

Accessibility Specifications

None

Test Strategy

None

Environment

Production

Activity

Show:
Chris McGee
November 12, 2020, 10:27 PM

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.

Priority

None

Assignee

Unassigned

QA Assignee

None

Reporter

Dave Cintron

Requested By (External)

None

Fix versions

None

T-Shirt Size

None

Risk Level

None

User Experience Assessment Level

3

UEA: Issue Volume

7P + 3A + (1) + (2) + D = 3

UEA: Category

Access Inhibited

Components

None

Design Review Required?

None

Design Approved By:

None

QA done during validation of another ticket?

None

Accessibility Review Required?

None

Accessibility Review Approved By

None

Approved for Production By:

None

Marketing Comms

None

Support Follow Up

Yes

KB Update

None

Pull Request Needed

None

Resolved Build #

None

Reason for Deferral

None
Configure