From c373dad394dd05a895537c3a4ef303f12f0bd6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Grom?= Date: Fri, 13 Mar 2026 10:21:21 +0000 Subject: [PATCH] feat: add status to insight project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gašper Grom --- .../tinybird/datasources/project_insights_copy_ds.datasource | 2 ++ services/libs/tinybird/pipes/project_insights.pipe | 1 + services/libs/tinybird/pipes/project_insights_copy.pipe | 5 ++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/services/libs/tinybird/datasources/project_insights_copy_ds.datasource b/services/libs/tinybird/datasources/project_insights_copy_ds.datasource index 0a692c5d76..0a48399a57 100644 --- a/services/libs/tinybird/datasources/project_insights_copy_ds.datasource +++ b/services/libs/tinybird/datasources/project_insights_copy_ds.datasource @@ -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" @@ -38,6 +39,7 @@ SCHEMA > `slug` String, `logoUrl` String, `isLF` UInt8, + `status` String, `contributorCount` UInt64, `organizationCount` UInt64, `softwareValue` UInt64, diff --git a/services/libs/tinybird/pipes/project_insights.pipe b/services/libs/tinybird/pipes/project_insights.pipe index 789a53c468..c0e23b4e95 100644 --- a/services/libs/tinybird/pipes/project_insights.pipe +++ b/services/libs/tinybird/pipes/project_insights.pipe @@ -18,6 +18,7 @@ SQL > slug, logoUrl, isLF, + status, contributorCount, organizationCount, softwareValue, diff --git a/services/libs/tinybird/pipes/project_insights_copy.pipe b/services/libs/tinybird/pipes/project_insights_copy.pipe index 2ac9f6dff8..2593d6782b 100644 --- a/services/libs/tinybird/pipes/project_insights_copy.pipe +++ b/services/libs/tinybird/pipes/project_insights_copy.pipe @@ -10,6 +10,7 @@ SQL > segmentId, logoUrl, isLF, + status, contributorCount, organizationCount, softwareValue, @@ -23,6 +24,7 @@ SQL > segmentId, logoUrl, isLF, + status, contributorCount, organizationCount, softwareValue, @@ -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, @@ -132,4 +135,4 @@ SQL > TYPE COPY TARGET_DATASOURCE project_insights_copy_ds COPY_MODE replace -COPY_SCHEDULE 0 2 * * * +COPY_SCHEDULE 0 3 * * *