Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions metrics/kubernetes/project_developer_stats.sql
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ from (
) sub
-- limit amount of data
where
(sub.metric = 'events' and sub.value >= 200)
(sub.metric = 'events' and sub.value >= 100)
or (sub.metric = 'active_repos' and sub.value >= 3)
or (sub.metric = 'contributions' and sub.value >= 30)
or (sub.metric = 'contributions' and sub.value >= 5)
or (sub.metric = 'commit_comments' and sub.value >= 10)
or (sub.metric = 'comments' and sub.value >= 20)
or (sub.metric = 'raw_reviews' and sub.value >= 15)
Expand Down Expand Up @@ -811,7 +811,7 @@ from (
where
(sub.metric = 'events' and sub.value >= 100)
or (sub.metric = 'active_repos' and sub.value >= 3)
or (sub.metric = 'contributions' and sub.value >= 15)
or (sub.metric = 'contributions' and sub.value >= 5)
or (sub.metric = 'commit_comments' and sub.value >= 5)
or (sub.metric = 'comments' and sub.value >= 15)
or (sub.metric = 'raw_reviews' and sub.value >= 10)
Expand Down
16 changes: 8 additions & 8 deletions metrics/shared/project_developer_stats.sql
Original file line number Diff line number Diff line change
Expand Up @@ -264,21 +264,21 @@ from (
) sub
-- limit amount of data
where
(sub.metric = 'events' and sub.value > 100 * {{project_scale}} * sqrt({{range}}/1450.0))
(sub.metric = 'events' and sub.value > 80 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'active_repos' and sub.value > 3 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'contributions' and sub.value > 10 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'commit_comments' and sub.value > 3 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'comments' and sub.value > 20 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'reviews' and sub.value > 15 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'issue_comments' and sub.value > 20 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'review_comments' and sub.value > 20 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'contributions' and sub.value > 5 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'commit_comments' and sub.value > 2 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'comments' and sub.value > 10 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'reviews' and sub.value > 5 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'issue_comments' and sub.value > 10 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric = 'review_comments' and sub.value > 10 * {{project_scale}} * sqrt({{range}}/1450.0))
or (sub.metric in (
'commits',
'pushes',
'issues',
'prs',
'merged_prs'
) and sub.value > 0.8 * {{project_scale}} * sqrt({{range}}/1450.0)
) and sub.value > 0.5 * {{project_scale}} * sqrt({{range}}/1450.0)
)
-- limit amount of data
union select 'hdev_' || sub.metric || ',' || sub.repo_group || '_All' as metric,
Expand Down