Skip to content

Add filter controls to the Merge Request Analytics page

What does this MR do?

This MR adds filter controls to the Merge Request Analytics (aka. throughput) page.

Screenshots

Before: After:
Screen_Shot_2020-09-02_at_13.22.14 Screen_Recording_2020-09-02_at_13.06.59

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

To test this out enable this feature flag in rails c with Feature.enable(:project_merge_request_analytics) and navigate to this URL and see that all filters are applied:

To get MRs to show up you can run the following in the rails c:

project = Project.find_by_full_path("flightjs/flight")
project.merge_requests.each {|mr| print mr.update!(state_id: 3) }
project.merge_requests.each {|mr| print mr.metrics.update!(merged_at: Time.now) }

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 #229266 (closed) Closes #230287 (closed)

Edited by Michael Lunøe

Merge request reports