[bug] PR Time to Merge should use average, not greatest
@lukaszgryglicki is already working on this.
Since Jan 17, 2025.
Assessment
This issue has not been assessed yet.
Description
When looking at larger intervals of time, Kubernetes PR-Time-To-Merge uses this calculation:
greatest(percentile_disc(0.5) within group (order by open_to_lgtm asc), 0) as m_o2l_a,
This is wrong; it leads to having a greater value the larger your time interval is, which is deceptive. For aggregating a median, there's two reasonable possibilities: a median of medians, or an average of medians. In practice, those two values are rarely that divergent, and an average is faster to calculate.
Therefore it should be:
avg(percentile_disc(0.5) within group (order by open_to_lgtm asc), 0) as m_o2l_a,
This mistake exists across all cacluations in this view.
Assigning to myself, will submit a PR later.
/assign
- Dominant language
- Shell
- Stars
- 130
- Forks
- 58
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cncf/devstats
-
[feature request] Use new LFX API for affiliation versus using gitdm dataMay be free again @lukaszgryglicki claimed this 322 days ago, and no pull request is open. Openenhancement
-
[feature request] Add Agentgateway Linux Foundation projectMay be free again @lukaszgryglicki claimed this 365 days ago, and no pull request is open. Openblocked enhancement
-
[feature request] take to account none-code contributionsMay be free again @lukaszgryglicki claimed this 615 days ago, and no pull request is open. Openblocked enhancement
-
[feature request] Kubernetes feature gates statistics and dashboardsMay be free again @lukaszgryglicki claimed this 751 days ago, and no pull request is open. Openblocked enhancement help wanted needs-decision question
-
[feature request] Add filter for country in the company-tableMay be free again @lukaszgryglicki claimed this 844 days ago, and no pull request is open. Openblocked enhancement question
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
unixorn/awesome-zsh-plugins#2285 ·
Maintainers usually reply within 1 day
-
documentation priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
snapotter-hq/SnapOtter#1863 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nasa-jpl/bespokebpv7#51 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
area/rules
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
usnistgov/macos_security#836 ·
Maintainers usually reply within 1 day