feat: organization page tinybird pipe improvements (IN-1204)#4359
feat: organization page tinybird pipe improvements (IN-1204)#4359joanagmaia wants to merge 9 commits into
Conversation
- org_page_kpis_copy_pipe: expand active contributors and critical projects windows from 365d to 730d (2 years); shift trend comparison window to 730-1460d; expand maintainer roles to include roles active in the last 730d (not just currently active) - org_page_projects: sort by contributorCount DESC (was technicalScore) - org_page_activities/contributors_timeseries_copy_pipe: switch fixed 2016-01-01 cutoff to rolling last 10 years - leaderboards_organizations: join organizations_populated_slug to expose real org slug for leaderboard row links Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
PR SummaryMedium Risk Overview Org KPIs ( Yearly charts ( Org projects list ( Leaderboards ( Reviewed by Cursor Bugbot for commit b3d2752. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Pull request overview
Updates Tinybird pipes supporting IN-1204 organization-page improvements.
Changes:
- Expands KPI windows to two years and timeseries to a rolling ten years.
- Sorts projects by contributor count.
- Adds organization slugs to leaderboard results.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
org_page_projects.pipe |
Changes project ordering. |
org_page_kpis_copy_pipe.pipe |
Expands KPI windows. |
org_page_contributors_timeseries.pipe |
Updates timeseries description. |
org_page_contributors_timeseries_copy_pipe.pipe |
Adds rolling ten-year cutoff. |
org_page_activities_timeseries.pipe |
Updates timeseries description. |
org_page_activities_timeseries_copy_pipe.pipe |
Adds rolling ten-year cutoff. |
leaderboards_organizations.pipe |
Adds organization slugs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… IN-1204 Both org_page_activities_timeseries_copy_pipe and org_page_contributors_timeseries_copy_pipe previously counted all activity types. Add INNER JOIN on activityTypes WHERE isCodeContribution so the charts reflect only code contributions, matching the 'Contributions' label in the UI. Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
…indow IN-1204 Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
…es only IN-1204 Apply isCodeContribution filter to both current and previous contributor nodes so the Active Contributors KPI counts only code contributors, consistent with its UI definition and the contributor chart. Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
… only IN-1204 Aligns org_page_kpis_critical_projects with org_page_projects_copy_pipe which already filters to isCodeContribution. KPI and list now use the same population. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
Summary
Tinybird pipe changes backing the organization page improvements in IN-1204.
org_page_kpis_copy_pipe— expand active contributors and critical projects windows from 365d → 730d (2 years); shift trend comparison baseline from 365–730d to 730–1460d; expand maintainer roles to include roles active at any point in the last 730d (was: only currently active roles with no end date)org_page_projects— sort bycontributorCount DESC(wastechnicalScore DESC)org_page_activities_timeseries_copy_pipe— replace fixed2016-01-01cutoff with rollingtoStartOfYear(now() - toIntervalYear(10)); add INNER JOIN onactivityTypes WHERE isCodeContributionso the chart counts only code contributions (commits, PRs, code reviews), consistent with the 'Contributions' UI labelorg_page_contributors_timeseries_copy_pipe— same rolling 10-year window and code-only filter; counts only contributors active via code contribution activity typesleaderboards_organizations— joinorganizations_populated_slugto expose real org slug; fix'' as slughardcode so Top 100 Organizations leaderboard rows link to/organization/{slug}org_page_kpis.pipe— update description to reflect 730-day trend windowRelated
UI changes: linuxfoundation/insights#2015
Test plan
tb pushand nightly COPY runs: KPI active contributors count reflects 2-year window/organization/{slug}🤖 Generated with Claude Code