Skip to content

Commit bb918e0

Browse files
authored
feat: add maturity field to tinybird project data IN-1098 (#4083)
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
1 parent 5ad2fd2 commit bb918e0

5 files changed

Lines changed: 10 additions & 2 deletions

File tree

frontend/.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
node_modules
33
dist
44

5+
.claude
6+
*.local.md
7+
58
# local env files
69
.env*
710
.env.local
@@ -137,4 +140,4 @@ dmypy.json
137140
# pytype static type analyzer
138141
.pytype/
139142
# Cython debug symbols
140-
cython_debug/
143+
cython_debug/

services/libs/tinybird/datasources/insights_projects_populated_ds.datasource

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ DESCRIPTION >
2323
- `contributorCount` and `organizationCount` are computed contributor and organization statistics (UInt64).
2424
- `healthScore` is the overall project health score (Float64).
2525
- `status` is the status of the project ex: active or archived
26+
- `maturity` is the project maturity stage (e.g. Sandbox, Incubating, Graduated). Empty string when not set.
2627
- `lastVulnerabilityScanStatus` is the aggregated vulnerability scan status across all project repositories (`LowCardinality(Nullable(String))`). Possible values: `'success'` (all scans passed), `'no_packages_found'` (no dependency packages detected), `'failure'` (at least one scan failed), `'running'` (scan in progress). NULL when no scan records exist for the project's repositories.
2728

2829
TAGS "Project metadata", "Analytics enrichment"
@@ -63,7 +64,8 @@ SCHEMA >
6364
`communityKeywords` Array(String),
6465
`communityLanguages` Array(String),
6566
`status` String,
66-
`lastVulnerabilityScanStatus` LowCardinality(Nullable(String))
67+
`maturity` LowCardinality(String),
68+
`lastVulnerabilityScanStatus` Nullable(String)
6769

6870
ENGINE MergeTree
6971
ENGINE_PARTITION_KEY toYear(createdAt)

services/libs/tinybird/datasources/segments.datasource

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ SCHEMA >
3737
`description` String `json:$.record.description` DEFAULT '',
3838
`sourceId` String `json:$.record.sourceId` DEFAULT '',
3939
`sourceParentId` String `json:$.record.sourceParentId` DEFAULT '',
40+
`maturity` LowCardinality(String) `json:$.record.maturity` DEFAULT '',
4041
`createdAt` DateTime64(3) `json:$.record.createdAt`,
4142
`updatedAt` DateTime64(3) `json:$.record.updatedAt`
4243

services/libs/tinybird/pipes/insightsProjects_filtered.pipe

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ SQL >
3434
insights_projects_populated_ds.communityKeywords,
3535
insights_projects_populated_ds.communityLanguages,
3636
insights_projects_populated_ds.status,
37+
insights_projects_populated_ds.maturity,
3738
insights_projects_populated_ds.lastVulnerabilityScanStatus
3839
FROM insights_projects_populated_ds
3940
where

services/libs/tinybird/pipes/insights_projects_populated_copy.pipe

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ SQL >
231231
any (insights_projects_populated_copy_mentions.communityKeywords) as communityKeywords,
232232
any (insights_projects_populated_copy_mentions.communityLanguages) as communityLanguages,
233233
any (segments.status) as status,
234+
any (segments.maturity) as maturity,
234235
any (last_vulnerability_scan_status.lastVulnerabilityScanStatus) as lastVulnerabilityScanStatus
235236
FROM insightsProjects FINAL
236237
LEFT JOIN

0 commit comments

Comments
 (0)