middlewarehq / middleware

✨ Open-source DORA metrics platform for engineering teams ✨
https://middlewarehq.com
Apache License 2.0
1.14k stars 96 forks source link

Deployments Frequency not calculated correctly #593

Open pal-tgiannakopoulos opened 2 weeks ago

pal-tgiannakopoulos commented 2 weeks ago

Description:

Deployments Frequency not calculated correctly

Steps to reproduce:

This is happening on 15th of October

  1. Add a new team
  2. Add a new repository deployed via workflow. My Repository has 2 deployments in the last 30 days one in the 18th of September one on the 1st of October
  3. Select the workflow that marks the deployment
  4. Go to "DORA metrics"
  5. Select the time range (initially from 15th Sep to 15th Oct)

Expected behavior:

I will see in the Deployment Frequency recognising there's two deployments per month

Actual behavior:

It identifies the number of deployments that happened within the selected time frame but the rate is incorrectly calculated this is on the time range 15th Sept to 15th Oct. image

this is on the time range 1 Oct to 15th Oct image

this is on the time range 1 Sept to 30 Sept image

Server Setup Information:

middleware v0.1.5

jayantbh commented 2 weeks ago

Thanks for reporting the issue, @pal-tgiannakopoulos. I believe this might have something to do with how the "monthly" count is being shown on the card, and may not affect your underlying Dora score, or the insights/data shown in the "See Details" page.

This'll get checked. :)