Skip to content

Commit 2fcbaac

Browse files
committed
fix: remove is contribution from queryActivities pipe
1 parent 4b0a05d commit 2fcbaac

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

services/libs/tinybird/pipes/activities_relations_filtered.pipe

Lines changed: 0 additions & 8 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,8 +35,6 @@ SQL >
3635
SELECT
3736
ar.activityId AS id,
3837
ar.channel,
39-
ar.isContribution,
40-
ar.memberId,
4138
ar.organizationId,
4239
ar.platform,
4340
ar.segmentId,
@@ -48,9 +45,6 @@ SQL >
4845
FROM activityRelations_deduplicated_ds AS ar
4946
WHERE
5047
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 %}
5448
{% if defined(startDate) %}
5549
AND ar.timestamp > parseDateTimeBestEffort({{ String(startDate) }})
5650
{% end %}
@@ -381,7 +375,6 @@ SQL >
381375
SELECT
382376
ar.id,
383377
ar.channel,
384-
ar.isContribution,
385378
ar.memberId,
386379
ar.organizationId,
387380
ar.platform,
@@ -428,7 +421,6 @@ SQL >
428421
SELECT
429422
fr.id,
430423
fr.channel,
431-
fr.isContribution,
432424
fr.memberId,
433425
fr.organizationId,
434426
fr.platform,

0 commit comments

Comments
 (0)