Skip to content

Fix Issues Analytics first-of-month loading error

Alex Pennells requested to merge 444265-fix-first-day-of-month into master

What does this MR do and why?

Fixes the loading error that occurs when attempting to load Issues analytics on the first day of any month.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
Screenshot_2024-03-04_at_3.40.03_PM Screenshot_2024-03-04_at_3.40.38_PM

How to set up and validate locally

  1. Navigate to issues analytics page for any group (ex. http://gdk.test:3000/groups/gitlab-org/-/issues_analytics)
  2. Mock the first-of-month behaviour by changing endDate on this line to: return new Date(2024, 3, 1);
  3. ...
  4. SUCCESS!

Related to #444265 (closed)

Merge request reports