Skip to content

Fix broken API::Dora::Metrics speсs

Vladimir Shushlin requested to merge 326799-api-dora-metrics-spes-broken into master

What does this MR do?

By default dora4 metrics controller returns data for last 3 months

We use 2021-01-01 as fixture date in specs.

So controllers stoped returning this data on 2021-04-02

Also, max range was calculated as 91 days, while it's actually possible to have 92 days in 3 months. I caught this trying to fix the issue

Screenshots (strongly suggested)

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 #326799 (closed)

Edited by Aleksei Lipniagov

Merge request reports