Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ DESCRIPTION >
- `forksPrevious365Days` column is the count of forks in the previous 365 days (365-730 days ago).
- `activeContributorsPrevious365Days` column is the unique count of active contributors in the previous 365 days (365-730 days ago).
- `activeOrganizationsPrevious365Days` column is the unique count of active organizations in the previous 365 days (365-730 days ago).
- `status` column is the current status of the project (e.g., 'active', 'archived').

TAGS "Project insights", "Metrics"

Expand All @@ -38,6 +39,7 @@ SCHEMA >
`slug` String,
`logoUrl` String,
`isLF` UInt8,
`status` String,
`contributorCount` UInt64,
`organizationCount` UInt64,
`softwareValue` UInt64,
Expand Down
6 changes: 4 additions & 2 deletions services/libs/tinybird/pipes/health_score_retention.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ SQL >
SELECT segmentId, groupUniqArray(memberId) AS currentQuarterMembers
FROM activityRelations_deduplicated_cleaned_bucket_union
WHERE
memberId != '' AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
memberId != ''
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
AND (type, platform) IN (SELECT activityType, platform FROM activityTypes_filtered)
{% if defined(endDate) %}
AND timestamp >= toStartOfQuarter(
Expand Down Expand Up @@ -85,7 +86,8 @@ SQL >
SELECT segmentId, groupUniqArray(memberId) AS previousQuarterMembers
FROM activityRelations_deduplicated_cleaned_bucket_union
WHERE
memberId != '' AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
memberId != ''
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
AND (type, platform) IN (SELECT activityType, platform FROM activityTypes_filtered)
{% if defined(endDate) %}
AND timestamp >= toStartOfQuarter(
Expand Down
4 changes: 3 additions & 1 deletion services/libs/tinybird/pipes/project_insights.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ DESCRIPTION >
- `pageSize`: Optional integer for result limit, defaults to 10
- `page`: Optional integer for pagination offset calculation, defaults to 0
- Response: Project records with all insights metrics including achievements as array of (leaderboardType, rank, totalCount) tuples
TAGS ""Insights, Widget", "Project""

TAGS "Insights, Widget", "Project"

NODE project_insights_endpoint
SQL >
Expand All @@ -23,6 +24,7 @@ SQL >
slug,
logoUrl,
isLF,
status,
contributorCount,
Comment on lines 24 to 28
organizationCount,
softwareValue,
Expand Down
5 changes: 4 additions & 1 deletion services/libs/tinybird/pipes/project_insights_copy.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SQL >
segmentId,
logoUrl,
isLF,
status,
contributorCount,
Comment on lines 11 to 14
organizationCount,
softwareValue,
Expand All @@ -23,6 +24,7 @@ SQL >
segmentId,
logoUrl,
isLF,
status,
contributorCount,
organizationCount,
softwareValue,
Expand Down Expand Up @@ -101,6 +103,7 @@ SQL >
base.slug AS slug,
base.logoUrl AS logoUrl,
base.isLF AS isLF,
base.status AS status,
base.contributorCount AS contributorCount,
base.organizationCount AS organizationCount,
base.softwareValue AS softwareValue,
Expand Down Expand Up @@ -132,4 +135,4 @@ SQL >
TYPE COPY
TARGET_DATASOURCE project_insights_copy_ds
COPY_MODE replace
COPY_SCHEDULE 0 2 * * *
COPY_SCHEDULE 0 3 * * *
Loading