Skip to content

Store added and removed lines in MR metrics

What does this MR do?

This change stores line metrics (removed, added) within merge_request_metrics table. The change is behind an FF: store_merge_request_line_metrics.

Migration output:

== 20200402123926 AddLineMetricsToMrMetrics: migrating ========================
-- add_column(:merge_request_metrics, :added_lines, :integer)
   -> 0.0011s
-- add_column(:merge_request_metrics, :removed_lines, :integer)
   -> 0.0004s
== 20200402123926 AddLineMetricsToMrMetrics: migrated (0.0056s) ===============

Does this MR meet the acceptance criteria?

Conformity

Availability 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

Related to #197312 (closed).

Edited by Dan Jensen

Merge request reports