Skip to content

Instance Analytics: Add general count chart component

What does this MR do?

This MR adds a general count chart component for the instance statistics page to be used for the existing Pipelines chart, but now also for the Issues & Merge Requests chart.

Screenshots

Before: After:
Screen_Recording_2020-10-19_at_18.11.56 Screen_Recording_2020-10-19_at_18.07.31

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

To test this out run bundle exec rails c and run the following to enable the feature flag:

  • Feature.enable(:instance_statistics)

To ensure you have data to display in the chart run the following to seed the DB:

  • FILTER=instance_statistics bundle exec rake db:seed_fu

After that navigate here to see the page: http://localhost:3000/admin/instance_statistics

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

Related to #267538 (closed) and #246491 (closed)

Edited by Michael Lunøe

Merge request reports