Refactor component CI/CD Analytics directories

Description

The components that are related to the CI/CD analytics dashboards are placed in different directories, making it hard to trace their dependencies, they should be collected to a single place.

This is the list of directories and files used by the CI/CD analytics area:

  • app/assets/javascripts/projects/pipelines/charts
  • ee/app/assets/javascripts/analytics/group_ci_cd_analytics
  • ee/app/assets/javascripts/dora/components
  • app/assets/javascripts/vue_shared/components/ci_cd_analytics
  • ee/app/assets/javascripts/api/dora_api.js
    • this one is imported by ee/app/assets/javascripts/rest_api.js, which should be cleaned up

We currently have a natural home for them at:

  • ee/app/assets/javascripts/analytics/ (and we would create app/assets/javascripts/analytics/ for CE components)

Related discussion

The following discussion from !187156 (merged) should be addressed:

  • @fernando-c started a discussion: (+1 comment)

    Does it make sense to extract this out to a utility function. I think we had app/assets/javascripts/lib/utils/number_utils.js