Commit 49f1949
committed
fix: include community collections in collectionsSlugs (IN-1195)
collection_insights_aggregate reported 0 contributors and no health score
for community (non-LF) collections because insights_projects_populated_copy
excluded them via isNull(c.ssoUserId) when building collectionsSlugs. Drop
that filter so community collection memberships are populated too.
Downstream leaderboard and insightsProjects_filtered pipes only apply the
collectionsSlugs filter when an explicit collectionSlug param is passed, so
un-scoped listings are unaffected.
Claude-Session: https://claude.ai/code/session_014Fc86j8FLeWFAs3fDCQs38
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>1 parent 70a96d7 commit 49f1949
1 file changed
Lines changed: 8 additions & 2 deletions
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
4 | 10 | | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
9 | | - | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
0 commit comments