Skip to content

fix: align org page critical projects scoring with spec (IN-1174)#4324

Merged
joanagmaia merged 8 commits into
mainfrom
fix/org-page-pipes
Jul 14, 2026
Merged

fix: align org page critical projects scoring with spec (IN-1174)#4324
joanagmaia merged 8 commits into
mainfrom
fix/org-page-pipes

Conversation

@joanagmaia

@joanagmaia joanagmaia commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Narrow activityCount / contributorCount in critical projects list to code-only activity types (drop isCollaboration) — aligns with technicalScore inputs and dbt model
  • Widen activity window from 365 → 730 days (24 months) — aligns with technicalScore window and dbt model
  • Raise maintainers score from 3.0 → 10.0 — aligns with dbt gold_organization_dashboard_project_organizations_technical_influence_tr model

Verified against Microsoft org: k8s gap narrowed from 8.1 → 1.1 pts vs Snowflake scores.

🤖 Generated with Claude Code


Note

Medium Risk
Changes precomputed org-page project rankings and activity/contributor counts users see; no auth or write-path impact, but product-facing metrics shift until the nightly copy refreshes.

Overview
Aligns the org page critical projects nightly precompute and read pipe with the technical-influence spec and dbt model.

Activity inputs: activityCount and contributorCount now count code-only activity types (isCodeContribution only), dropping collaboration types so they match the code-activity nodes used for technicalScore.

Time window: The contribution rollup window widens from 365 to 730 days (24 months) in both the copy pipe and the public pipe description.

Scoring: The maintainers component of technicalScore increases from 3.0 to 10.0 when the org has at least one active maintainer in the 24-month window.

Expect different project ordering and displayed counts on organization pages after the next copy run; display columns from org_dash_metric_copy_ds are unchanged.

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

- narrow activity/contributor counts to code-only types (drop isCollaboration)
- widen activity window from 365 to 730 days (24 months)
- raise maintainers score from 3.0 to 10.0 to match dbt model

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
Copilot AI review requested due to automatic review settings July 10, 2026 13:37

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

Aligns organization-page critical-project metrics with the 24-month technical-influence specification.

Changes:

  • Counts only code-contribution activity over 730 days.
  • Raises the active-maintainer score from 3 to 10 points.

Reviewed changes

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

File Description
org_page_projects.pipe Updates the documented activity window.
org_page_projects_copy_pipe.pipe Adjusts activity filtering, lookback window, and scoring.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread services/libs/tinybird/pipes/org_page_projects_copy_pipe.pipe Outdated
Comment thread services/libs/tinybird/pipes/org_page_projects_copy_pipe.pipe Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
Copilot AI review requested due to automatic review settings July 13, 2026 14:36
joanagmaia and others added 2 commits July 13, 2026 15:36
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.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 2 out of 2 changed files in this pull request and generated no new comments.

@joanagmaia
joanagmaia requested a review from gaspergrom July 13, 2026 15:25
Copilot AI review requested due to automatic review settings July 13, 2026 15:39

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 2 out of 2 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 13, 2026 17:07

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 2 out of 2 changed files in this pull request and generated no new comments.

@gaspergrom gaspergrom 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.

lgtm

Copilot AI review requested due to automatic review settings July 14, 2026 10:08
@cursor

cursor Bot commented Jul 14, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Changes how org-page project lists are ranked and scored (activity window, activity-type filter, scoring weights), which can shift visible results but does not touch auth or data writes outside analytics precompute.

Overview
Updates the org page critical projects Tinybird precompute so list metrics and technicalScore match the dbt spec.

The nightly copy pipe now counts activity and contributors using code-only activity types (isCodeContribution), not collaboration types, and rolls them up over 730 days instead of 365. The read pipe description is updated to match that window.

technicalScore raises the active-maintainer component from 3.0 to 10.0 points when the org has at least one maintainer in the 24-month window; contributor/commit/PR share formulas are unchanged.

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

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 2 out of 2 changed files in this pull request and generated no new comments.

@joanagmaia
joanagmaia merged commit b14d417 into main Jul 14, 2026
15 checks passed
@joanagmaia
joanagmaia deleted the fix/org-page-pipes branch July 14, 2026 10:29
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.

3 participants