Skip to content

Introduce API for Change Failure Rate DORA metric

What does this MR do and why?

Introduces 4th DORA metric which calculates the rate between incidents and deployments.

Database information

== 20220322143441 AddDoraIncidentsCount: reverting ============================
-- remove_column(:dora_daily_metrics, :incidents_count, :integer)
   -> 0.0098s
== 20220322143441 AddDoraIncidentsCount: reverted (0.0121s) ===================

== 20220322143441 AddDoraIncidentsCount: migrating ============================
-- add_column(:dora_daily_metrics, :incidents_count, :integer)
   -> 0.0082s
== 20220322143441 AddDoraIncidentsCount: migrated (0.0083s) ===================

Select query: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/9370/commands/33136#visualize-depesz

Screenshots or screen recordings

image image

These are strongly recommended to assist reviewers and reduce the time to merge your change.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #299407 (closed)

Edited by Pavel Shutsin

Merge request reports