File tree Expand file tree Collapse file tree
services/libs/tinybird/pipes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11NODE insights_projects_populated_copy_collections_slugs
22DESCRIPTION >
3- Returns collection slugs per project
3+ Returns collection slugs per project, for both curated (ssoUserId IS NULL) and
4+ community (ssoUserId IS NOT NULL) collections. Community collections were previously
5+ excluded here, which left their slugs out of collectionsSlugs and caused
6+ collection_insights_aggregate to report 0 contributors / no health for them (IN-1195).
7+ Downstream leaderboard/insightsProjects_filtered pipes only apply the collectionsSlugs
8+ filter when an explicit collectionSlug param is passed, so including community slugs does
9+ not change any un-scoped listing.
410
511SQL >
612 SELECT cip.insightsProjectId, groupArray(c.slug) AS "collectionsSlugs"
713 FROM collectionsInsightsProjects cip FINAL
814 JOIN collections c FINAL ON c.id = cip.collectionId
9- WHERE isNull (c.deletedAt) AND isNull (c.ssoUserId) AND isNull ( cip.deletedAt)
15+ WHERE isNull (c.deletedAt) AND isNull (cip.deletedAt)
1016 GROUP BY cip.insightsProjectId
1117
1218NODE insights_projects_populated_copy_segment_id_mapping
You can’t perform that action at this time.
0 commit comments