Skip to content

Commit 8479c17

Browse files
authored
Merge branch 'main' into chore/partial-score-in-1248
2 parents 0f3ed0e + 342ac06 commit 8479c17

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

services/libs/tinybird/pipes/org_page_contributors.pipe

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ SQL >
9292
FROM activityRelations_deduplicated_cleaned_bucket_union
9393
WHERE
9494
organizationId = (SELECT id FROM org_slug_lookup)
95-
{% if defined(startDate) %} AND timestamp >= {{ DateTime(startDate) }} {% end %}
96-
{% if defined(endDate) %} AND timestamp < {{ DateTime(endDate) }} {% end %}
95+
{% if defined(startDate) %} AND timestamp >= {{ DateTime(startDate) }}
96+
{% end %}
97+
{% if defined(endDate) %} AND timestamp < {{ DateTime(endDate) }}
98+
{% end %}
9799
{% end %}
98100
{% else %}
99101
SELECT

services/libs/tinybird/pipes/project_insights_copy.pipe

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,14 @@ SQL >
186186
pm.forksPrevious365Days AS forksPrevious365Days,
187187
pm.activeContributorsPrevious365Days AS activeContributorsPrevious365Days,
188188
pm.activeOrganizationsPrevious365Days AS activeOrganizationsPrevious365Days,
189-
toUInt8(round(hv2.healthScoreV2)) AS healthScoreV2,
189+
-- shortcut: overall healthScoreV2/healthLabel forced NULL for korg (Linux Kernel, IN-1244)
190+
-- since its per-category scores are populated but the overall rollup isn't meaningful for it.
191+
-- revisit: generalize once the project-level rollup's null-vs-populated-categories mismatch
192+
-- is root-caused.
193+
if(base.slug = 'korg', NULL, toUInt8(round(hv2.healthScoreV2))) AS healthScoreV2,
190194
multiIf(
195+
base.slug = 'korg',
196+
NULL,
191197
hv2.healthScoreV2 IS NULL,
192198
NULL,
193199
hv2.healthScoreV2 >= 85,

services/libs/tinybird/pipes/project_insights_impact_breakdown_copy.pipe

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ SQL >
218218
) AS centralityBand,
219219
sonatypePopularityScore,
220220
if(
221-
sonatypePopularityScore IS NULL, NULL, round(100.0 * sonatypePopularityScoreRank / sonatypePopularityScoreTotalRanked, 2)
221+
sonatypePopularityScore IS NULL,
222+
NULL,
223+
round(100.0 * sonatypePopularityScoreRank / sonatypePopularityScoreTotalRanked, 2)
222224
) AS sonatypePopularityScoreTopPct,
223225
if(
224226
sonatypePopularityScore IS NULL,

0 commit comments

Comments
 (0)