cncf / devstats

📈CNCF-created tool for analyzing and graphing developer contributions
https://devstats.cncf.io
Apache License 2.0
66 stars 24 forks source link

[Feature Request] Extend Commit Activity Stats Timeframe Without Overloading Dashboard #58

Open onlydole opened 1 year ago

onlydole commented 1 year ago

Issue Description

https://all.devstats.cncf.io/d/53/projects-health-table?orgId=1

The current commit activity display compares commits in the last (n) months to the previous (n) months. This statistic is valuable for understanding trends in commit activity over time. However, extending this timeframe to cover a more extended period without overloading the dashboard would be beneficial.

Proposed Solution

  1. Implement a feature that allows users to select custom timeframes for commit activity comparison (e.g., last six months vs. previous six months, last 12 months vs. previous 12 months, etc.).
  2. Ensure that the extended commit activity stats do not clutter or overload the dashboard by optimizing the display or providing options for users to toggle between different timeframes.

Benefits

tegioz commented 7 months ago

Hi!

Should we transfer this issue to cncf/devstats?

/cc @lukaszgryglicki

lukaszgryglicki commented 4 months ago

We cannot support arbitrary "custom time range" we are pre-computing selected set of metrics and then UI only selects from already calculated values, we can eventually add a new set of possible selections - you would need to list them and eventually add a drop down allowing you to select one of them while hiding other ones. We need to keep this behaviour (pre-calculating all, not computing anyting on the fly from the raw data) to keep DevStats fast.

Also this kind of modification needs approval from @caniszczyk including approval of additional time-ranges and approach with drop-down to allow choosing which one should be displayed.