Skip to content

Community Health Score Dashboard#4189

Draft
functionzz wants to merge 5 commits into
mozilla:mainfrom
functionzz:chs_dashboard
Draft

Community Health Score Dashboard#4189
functionzz wants to merge 5 commits into
mozilla:mainfrom
functionzz:chs_dashboard

Conversation

@functionzz

Copy link
Copy Markdown
Collaborator

WIP.

Community Health for Pontoon is manually managed via a series of scripts and Google Sheets by TPMs. This dashboard is meant to offload manual script running and give clearer pictures on community health.

The backend consists of a cron job that creates a snapshot of the current CHS state, with several variables tracked. This automation is run monthly, on the first of each month.

The snapshot, called LocaleChsSnapshot is then displayed thru various formats, namely the CHS Dashboard, Insights (per locale) and Global Insights (all locales).

TODO

  • Implement cron job with full data parity to existing scripts
  • Implement dashboard (confirm visuals with team)
  • Consider edge cases of various forms
  • Implement Insights and Global Insights extensions

Comment thread pontoon/insights/chs.py Outdated
MANAGER_PEOPLE_THRESHOLD = 1
TRANSLATOR_PEOPLE_THRESHOLD = 2
CONTRIBUTOR_PEOPLE_THRESHOLD = 2
CONTRIBUTOR_200_APPROVED_PEOPLE_THRESHOLD = 2

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't seem particularly scalable to have a variable threshold, then hardcode the value in the variable name.

You could use ACTIVE_CONTRIBUTORS and ALL_CONTRIBUTORS, mapping to C1 and C2 in the spreadsheet and original formula.

Wouldn't it make sense to structure these as dictionaries? e.g.

MANAGER = {
    strings_threshold: 500,
    count: 1,
    points: 20.0,
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could make them into dictionaries, or I could also add them as environment variables in settings.

Comment thread pontoon/insights/chs.py Outdated
Comment thread pontoon/insights/chs.py Outdated
Comment thread pontoon/insights/chs.py Outdated
@functionzz functionzz changed the title Community Health Dashboard Community Health Score Dashboard Jun 4, 2026
functionzz and others added 4 commits June 4, 2026 14:49
Co-authored-by: Francesco Lodolo <flod@lodolo.net>
Co-authored-by: Francesco Lodolo <flod@lodolo.net>
Co-authored-by: Francesco Lodolo <flod@lodolo.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants