diff --git a/services/libs/tinybird/datasources/project_insights_copy_ds.datasource b/services/libs/tinybird/datasources/project_insights_copy_ds.datasource index fd1554607e..0a692c5d76 100644 --- a/services/libs/tinybird/datasources/project_insights_copy_ds.datasource +++ b/services/libs/tinybird/datasources/project_insights_copy_ds.datasource @@ -16,6 +16,10 @@ DESCRIPTION > - `organizationDependencyPercentage` column is the combined contribution percentage of dependent organizations. - `achievements` column is an array of tuples (leaderboardType, rank, totalCount) representing project achievements. - `healthScore` column is the overall health score for the project (0-100). + - `contributorHealthScore` column is the health score percentage for the contributors category (0-100). + - `popularityHealthScore` column is the health score percentage for the popularity category (0-100). + - `developmentHealthScore` column is the health score percentage for the development category (0-100). + - `securityHealthScore` column is the health score percentage for the security category (0-100). - `firstCommit` column is the timestamp of the first commit in the project. - `starsLast365Days` column is the count of stars in the last 365 days. - `forksLast365Days` column is the count of forks in the last 365 days. @@ -43,6 +47,10 @@ SCHEMA > `organizationDependencyPercentage` Float64, `achievements` Array(Tuple(String, UInt64, UInt64)), `healthScore` Nullable(Float64), + `contributorHealthScore` Nullable(Float64), + `popularityHealthScore` Nullable(Float64), + `developmentHealthScore` Nullable(Float64), + `securityHealthScore` Nullable(Float64), `firstCommit` Nullable(DateTime64(3)), `starsLast365Days` UInt64, `forksLast365Days` UInt64, diff --git a/services/libs/tinybird/pipes/project_insights.pipe b/services/libs/tinybird/pipes/project_insights.pipe index a73d3be3fb..789a53c468 100644 --- a/services/libs/tinybird/pipes/project_insights.pipe +++ b/services/libs/tinybird/pipes/project_insights.pipe @@ -1,6 +1,6 @@ DESCRIPTION > - `project_insights.pipe` serves project insights data for a specific project. - - Returns comprehensive metrics including project metadata (name, logoUrl, isLF), health score, contributor count, software value, contributor and organization dependency metrics, leaderboard achievements, and activity metrics for both current and previous 365-day periods. + - Returns comprehensive metrics including project metadata (name, logoUrl, isLF), health score with category breakdowns (contributors, popularity, development, security), contributor count, software value, contributor and organization dependency metrics, leaderboard achievements, and activity metrics for both current and previous 365-day periods. - Parameters: - `slug`: Optional string for a single project slug (e.g., 'kubernetes') - `slugs`: Optional array of project slugs for multi-project query (e.g., ['kubernetes', 'tensorflow']) @@ -27,6 +27,10 @@ SQL > organizationDependencyPercentage, achievements, healthScore, + contributorHealthScore, + popularityHealthScore, + developmentHealthScore, + securityHealthScore, firstCommit, starsLast365Days, forksLast365Days, diff --git a/services/libs/tinybird/pipes/project_insights_copy.pipe b/services/libs/tinybird/pipes/project_insights_copy.pipe index 21509fb2ad..2ac9f6dff8 100644 --- a/services/libs/tinybird/pipes/project_insights_copy.pipe +++ b/services/libs/tinybird/pipes/project_insights_copy.pipe @@ -39,7 +39,11 @@ SQL > contributorDependencyCount, contributorDependencyPercentage, organizationDependencyCount, - organizationDependencyPercentage + organizationDependencyPercentage, + contributorPercentage, + popularityPercentage, + developmentPercentage, + securityPercentage FROM health_score_copy_ds NODE project_insights_copy_achievements @@ -106,6 +110,10 @@ SQL > COALESCE(dep.organizationDependencyPercentage, 0) AS organizationDependencyPercentage, COALESCE(ach.achievements, []) AS achievements, base.healthScore AS healthScore, + dep.contributorPercentage AS contributorHealthScore, + dep.popularityPercentage AS popularityHealthScore, + dep.developmentPercentage AS developmentHealthScore, + dep.securityPercentage AS securityHealthScore, base.firstCommit AS firstCommit, l365.starsLast365Days AS starsLast365Days, l365.forksLast365Days AS forksLast365Days,