Skip to content

Commit 575b8ef

Browse files
authored
fix: missing status field on the oss index pipes (#3750)
Signed-off-by: Efren Lim <elim@linuxfoundation.org>
1 parent 68482c7 commit 575b8ef

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

services/libs/tinybird/pipes/category_groups_oss_index.pipe

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ DESCRIPTION >
3131
Returns only columns which we need from insights projects table
3232

3333
SQL >
34-
SELECT id, name, logoUrl, description, healthScore
34+
SELECT id, name, logoUrl, description, healthScore, status
3535
FROM insights_projects_populated_ds
36-
GROUP BY id, name, logoUrl, description, healthScore
36+
GROUP BY id, name, logoUrl, description, healthScore, status
3737

3838
NODE category_groups_oss_index_collections_deduplicated
3939
DESCRIPTION >
@@ -75,7 +75,8 @@ SQL >
7575
pd.name AS projectName,
7676
pd.logoUrl AS projectLogo,
7777
pd.description AS description,
78-
pd.healthScore AS healthScore
78+
pd.healthScore AS healthScore,
79+
pd.status as status
7980
FROM category_groups_oss_index_projects_ranked_by_category_group topProjects
8081
JOIN category_groups_oss_index_projects_deduplicated pd ON pd.id = topProjects.projectId
8182
WHERE topProjects.rn <= 5
@@ -159,7 +160,8 @@ SQL >
159160
softwareValue,
160161
avgScore,
161162
healthScore,
162-
description
163+
description,
164+
status
163165
)
164166
) AS topProjects
165167
FROM category_groups_oss_index_projects

services/libs/tinybird/pipes/collections_oss_index.pipe

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ DESCRIPTION >
3838
Returns only needed columns from insights projects
3939

4040
SQL >
41-
SELECT id, name, slug, logoUrl, description, healthScore
41+
SELECT id, name, slug, logoUrl, description, healthScore, status
4242
FROM insights_projects_populated_ds
43-
GROUP BY id, name, slug, logoUrl, description, healthScore
43+
GROUP BY id, name, slug, logoUrl, description, healthScore, status
4444

4545
NODE collections_oss_index_projects_ranked_by_collection
4646
DESCRIPTION >
@@ -76,7 +76,8 @@ SQL >
7676
pd.slug AS projectSlug,
7777
pd.logoUrl AS projectLogo,
7878
pd.description,
79-
pd.healthScore
79+
pd.healthScore,
80+
pd.status
8081
FROM collections_oss_index_projects_ranked_by_collection topProjects
8182
JOIN collections_oss_index_projects_deduplicated pd ON pd.id = topProjects.projectId
8283
WHERE topProjects.rn <= 5
@@ -109,7 +110,8 @@ SQL >
109110
avgScore,
110111
healthScore,
111112
description,
112-
projectSlug
113+
projectSlug,
114+
status
113115
)
114116
) AS topProjects
115117
FROM collections_oss_index_projects

0 commit comments

Comments
 (0)