Skip to content

Performance improvements for productivity analytics scatterplot

What does this MR do?

Improves performance when computing the median line data for the scatterplot on the Productivity Analytics page by leveraging the utility methods getScatterPlotDataNew and getMedianLineDataNew introduced in !18314 (merged)

With this improvement we will group MRs by date on the scatterplot, i.e., MRs which got merged on the same date will be stacked on the y axis since we now use date instead of dateTime on the x axis. In addition, we now compute the median line only per date and don't need to loop over all dateTimes.

This is behind the productivity_analytics_scatterplot feature flag.

Closes #33346 (closed)

Screenshots

Before After
scatterplot_before scatterplot_after

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Martin Wortschack

Merge request reports