Skip to content

Commit cd2685e

Browse files
authored
fix: remove is contribution from queryActivities pipe (#3566)
1 parent d5bef20 commit cd2685e

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

services/libs/tinybird/pipes/activities_relations_filtered.pipe

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ DESCRIPTION >
22
- `activities_enriched.pipe` provides a filtered and optionally paginated view of activity relations, then enriches those rows with content fields from the activities dataset.
33
- This pipe powers endpoints that need both relation metadata and activity content (url/body/title) without performing a full join on large tables.
44
- It filters from `activityRelations_deduplicated_ds` by project segment, time ranges, repositories, platforms, and activity types, then joins only the small, filtered set against `activities_deduplicated_ds`.
5-
- By default, this pipe returns only contribution activities (`isContribution = 1`) unless explicitly overridden with `onlyContributions = 0`.
65
- Security / scoping: if you use a `segments_filtered` pipe in your environment, replace the `segmentId` filter to read from it (see comment in Node 1).
76
- Parameters:
87
- `segments`: Optional array of segment IDs (e.g., ['7c3f6874-b10e-499b-a672-00281ab6c510']). If you use `segments_filtered`, remove this and rely on that pipe.
@@ -36,7 +35,6 @@ SQL >
3635
SELECT
3736
ar.activityId AS id,
3837
ar.channel,
39-
ar.isContribution,
4038
ar.memberId,
4139
ar.organizationId,
4240
ar.platform,
@@ -48,9 +46,6 @@ SQL >
4846
FROM activityRelations_deduplicated_ds AS ar
4947
WHERE
5048
ar.segmentId IN {{ Array(segments, 'String') }}
51-
{% if not defined(onlyContributions) or String(onlyContributions) == '1' or Int8(
52-
onlyContributions, 1
53-
) == 1 %} AND ar.isContribution = 1 {% end %}
5449
{% if defined(startDate) %}
5550
AND ar.timestamp > parseDateTimeBestEffort({{ String(startDate) }})
5651
{% end %}
@@ -381,7 +376,6 @@ SQL >
381376
SELECT
382377
ar.id,
383378
ar.channel,
384-
ar.isContribution,
385379
ar.memberId,
386380
ar.organizationId,
387381
ar.platform,
@@ -428,7 +422,6 @@ SQL >
428422
SELECT
429423
fr.id,
430424
fr.channel,
431-
fr.isContribution,
432425
fr.memberId,
433426
fr.organizationId,
434427
fr.platform,

0 commit comments

Comments
 (0)