Skip to content

feat: organization page tinybird pipe improvements (IN-1204)#4359

Open
joanagmaia wants to merge 9 commits into
mainfrom
feat/organization-page-improvements-in-1174
Open

feat: organization page tinybird pipe improvements (IN-1204)#4359
joanagmaia wants to merge 9 commits into
mainfrom
feat/organization-page-improvements-in-1174

Conversation

@joanagmaia

@joanagmaia joanagmaia commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

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 by contributorCount DESC (was technicalScore DESC)
  • org_page_activities_timeseries_copy_pipe — replace fixed 2016-01-01 cutoff with rolling toStartOfYear(now() - toIntervalYear(10)); add INNER JOIN on activityTypes WHERE isCodeContribution so the chart counts only code contributions (commits, PRs, code reviews), consistent with the 'Contributions' UI label
  • org_page_contributors_timeseries_copy_pipe — same rolling 10-year window and code-only filter; counts only contributors active via code contribution activity types
  • leaderboards_organizations — join organizations_populated_slug to expose real org slug; fix '' as slug hardcode so Top 100 Organizations leaderboard rows link to /organization/{slug}
  • org_page_kpis.pipe — update description to reflect 730-day trend window

Related

UI changes: linuxfoundation/insights#2015

Test plan

  • After tb push and nightly COPY runs: KPI active contributors count reflects 2-year window
  • Critical Projects list sorts by contributor count descending
  • Activity and contributor charts show last 10 years of code contribution data only
  • Top 100 Organizations leaderboard rows link to /organization/{slug}

🤖 Generated with Claude Code

- 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>
Copilot AI review requested due to automatic review settings July 17, 2026 15:24
@cursor

cursor Bot commented Jul 17, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Changes nightly COPY definitions and metric definitions (windows, activity filters, sorting), so KPIs, charts, and leaderboard links will shift until pipes are pushed and COPY jobs run; no auth or write-path changes.

Overview
Updates Tinybird pipes that power the organization page and Top 100 Organizations leaderboard so metrics, charts, and links match the IN-1204 UI.

Org KPIs (org_page_kpis_copy_pipe) widen the rolling window from 365 days to 730 days for active contributors, critical projects, and maintainer roles. Contributor and project counts now use code contribution activity types only (isCodeContribution). Trend baselines shift from year-over-year (365 vs 365–730) to 730 vs 731–1460 days. Maintainer roles count assignments active at any point in the last 730 days, not only open-ended roles.

Yearly charts (org_page_activities_timeseries_copy_pipe, org_page_contributors_timeseries_copy_pipe) drop the fixed 2016-01-01 cutoff for a rolling last 10 years, and filter to code contributions for both activity volume and unique contributors. Read pipes’ descriptions now say “last 10 years” / “contributions.”

Org projects list (org_page_projects) sorts by contributorCount first, then technicalScore and activityCount.

Leaderboards (leaderboards_organizations) LEFT JOIN organizations_populated_slug so slug is populated instead of '', enabling /organization/{slug} links from leaderboard rows.

Reviewed by Cursor Bugbot for commit b3d2752. Bugbot is set up for automated code reviews on this repo. Configure here.

@joanagmaia joanagmaia changed the title feat: organization page tinybird pipe improvements feat: organization page tinybird pipe improvements (IN-1204) Jul 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread services/libs/tinybird/pipes/org_page_projects.pipe
Comment thread services/libs/tinybird/pipes/leaderboards_organizations.pipe
Comment thread services/libs/tinybird/pipes/org_page_activities_timeseries.pipe
Comment thread services/libs/tinybird/pipes/org_page_activities_timeseries_copy_pipe.pipe Outdated
… 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>
Copilot AI review requested due to automatic review settings July 17, 2026 15:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Comment thread services/libs/tinybird/pipes/org_page_kpis_copy_pipe.pipe
…indow IN-1204

Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
Copilot AI review requested due to automatic review settings July 17, 2026 15:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.

Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
Copilot AI review requested due to automatic review settings July 17, 2026 15:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Comment thread services/libs/tinybird/pipes/org_page_kpis_copy_pipe.pipe Outdated
…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>
Copilot AI review requested due to automatic review settings July 17, 2026 16:04
Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Comment thread services/libs/tinybird/pipes/org_page_kpis_copy_pipe.pipe
Comment thread services/libs/tinybird/pipes/org_page_kpis_copy_pipe.pipe Outdated
Copilot AI review requested due to automatic review settings July 17, 2026 16:08
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Comment thread services/libs/tinybird/pipes/org_page_kpis_copy_pipe.pipe
Comment thread services/libs/tinybird/pipes/org_page_kpis_copy_pipe.pipe Outdated
Comment thread services/libs/tinybird/pipes/org_page_kpis_copy_pipe.pipe Outdated
Copilot AI review requested due to automatic review settings July 17, 2026 16:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

… 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>
Copilot AI review requested due to automatic review settings July 17, 2026 16:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 17, 2026 16:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.

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