middlewarehq / middleware

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

Deployment frequency calculated incorrectly #375

Closed titpetric closed 4 months ago

titpetric commented 4 months ago

Description:

The deployments are calculated incorrectly.

Actual behavior:

image

For an interval of 30 days and 9 deployments, 2 deployments / month are calculated.

This should either be 2 deployments / week, or 9 deployments / month.

jayantbh commented 4 months ago

Thanks for the report @titpetric! This should be sorted super soon. :)

jayantbh commented 4 months ago

Hey again @titpetric! 👋🏽 This issue has been fixed! ✨🎉 Someone from the team will reach out shortly about further details. :)

amoghjalan commented 4 months ago

Hi @titpetric,

Thanks for bringing the issue with the date range calculations to our attention. We identified the problem and it was related to how the logic extrapolates data for weeks and months.

I've made an adjustment to the calculations, and it should be working correctly now. To confirm the fix, could you please pull the latest image and let me know if the issue is resolved for you as well?

jayantbh commented 4 months ago

The instructions to do so can be found here for your convenience.