GitLab page container for Insights graphs, resolve potential conflicts with legacy charts.js dependency

We will most likely have a sub menu item for insights at the project and group level where the graphs are enabled.

Goal

  • Identify easiest path way to render charts inside GitLab
  • Create a new space under projects named insights
  • All navigation to sub graphs at the project level happens under https://gitlab.com/<project>/insights
  • Resolve dependency with current older version of charts.js

Plan

  1. Replace old charts.js with new gitlab-ui charts Right now we have a couple of places in GL (If i remember correctly ~5, but will collect them asap here also) were a really old chart.js is used. So we can't upgrade to the newer version of charts.js that gitlab-insights is using. The idea is to replace first those instances with the new gitlab-ui charts (as those are the long term solution)
  2. Bring in the current gitlab-insights with new charts.js So then we should be able to move forward and bring in your existing code and add the new charts.js version as dependency in GL.
  3. Replace on the long/medium run gitlab-insights charts.js charts with gitlab-ui charts Screen_Shot_2019-01-11_at_4.14.00_PM
Edited by Mek Stittri