Productivity Analytics: Trendline chart not loading because 'status' undefined

Problem to solve

In Productivity Analytics, the "Trendline" chart is not rendering - the load spinner is displayed indefinitely. In the JS console there is an error: "Uncaught (in promise) TypeError: Cannot read property 'status' of undefined".

Replication instructions

  1. Go to gitlab's Productivity Analytics page.
  2. Modify the date range.
  3. Scroll down to the "Trendline" section and watch the spinner spinning.
  4. Allow yourself to become hypnotized by the beautiful spinner. Hope that a friend or family member eventually finds you and shakes you awake again. Tell them you're fine.
  5. Open the JS console and look for red text.

Screenshot

Screen_Shot_2020-06-01_at_1.47.21_PM

Edited by Dan Jensen