Skip to content

Commit 908b547

Browse files
committed
feat: filter org timeseries from 2005 and limit projects to 20
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
1 parent 78eea71 commit 908b547

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

services/libs/tinybird/pipes/org_page_activities_timeseries.pipe

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ SQL >
1212
count() AS activityCount
1313
FROM activityRelations_deduplicated_cleaned_bucket_union
1414
WHERE organizationId = {{ String(orgId, '', description="Organization ID", required=True) }}
15+
AND timestamp >= '2005-01-01'
1516
GROUP BY startDate, endDate
1617
ORDER BY startDate

services/libs/tinybird/pipes/org_page_contributors_timeseries.pipe

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ SQL >
1212
uniqExact(memberId) AS contributorCount
1313
FROM activityRelations_deduplicated_cleaned_bucket_union
1414
WHERE organizationId = {{ String(orgId, '', description="Organization ID", required=True) }}
15+
AND timestamp >= '2005-01-01'
1516
GROUP BY startDate, endDate
1617
ORDER BY startDate

services/libs/tinybird/pipes/org_page_projects.pipe

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ SQL >
1616
FROM org_page_projects_copy_ds FINAL
1717
WHERE organizationId = {{ String(orgId, '', description="Organization ID", required=True) }}
1818
ORDER BY activityCount DESC
19+
LIMIT 20

0 commit comments

Comments
 (0)