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
5 changes: 4 additions & 1 deletion frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
node_modules
dist

.claude
*.local.md

# local env files
.env*
.env.local
Expand Down Expand Up @@ -137,4 +140,4 @@ dmypy.json
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
cython_debug/
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ DESCRIPTION >
- `contributorCount` and `organizationCount` are computed contributor and organization statistics (UInt64).
- `healthScore` is the overall project health score (Float64).
- `status` is the status of the project ex: active or archived
- `maturity` is the project maturity stage (e.g. Sandbox, Incubating, Graduated). Empty string when not set.
- `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.

Comment on lines 25 to 28
TAGS "Project metadata", "Analytics enrichment"
Expand Down Expand Up @@ -63,7 +64,8 @@ SCHEMA >
`communityKeywords` Array(String),
`communityLanguages` Array(String),
`status` String,
`lastVulnerabilityScanStatus` LowCardinality(Nullable(String))
`maturity` LowCardinality(String),
`lastVulnerabilityScanStatus` Nullable(String)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidentally removed LowCardinality from lastVulnerabilityScanStatus type

Low Severity

The lastVulnerabilityScanStatus column type was changed from LowCardinality(Nullable(String)) to Nullable(String), accidentally dropping the LowCardinality wrapper. The documentation on line 27 still references the original type LowCardinality(Nullable(String)), confirming this was unintentional. This column has only ~5 distinct values, making LowCardinality an appropriate and meaningful optimization that was lost during the maturity field addition.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a7d5677. Configure here.


ENGINE MergeTree
ENGINE_PARTITION_KEY toYear(createdAt)
Expand Down
1 change: 1 addition & 0 deletions services/libs/tinybird/datasources/segments.datasource
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ SCHEMA >
`description` String `json:$.record.description` DEFAULT '',
`sourceId` String `json:$.record.sourceId` DEFAULT '',
`sourceParentId` String `json:$.record.sourceParentId` DEFAULT '',
`maturity` LowCardinality(String) `json:$.record.maturity` DEFAULT '',
`createdAt` DateTime64(3) `json:$.record.createdAt`,
`updatedAt` DateTime64(3) `json:$.record.updatedAt`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ SQL >
insights_projects_populated_ds.communityKeywords,
insights_projects_populated_ds.communityLanguages,
insights_projects_populated_ds.status,
insights_projects_populated_ds.maturity,
insights_projects_populated_ds.lastVulnerabilityScanStatus
FROM insights_projects_populated_ds
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ SQL >
any (insights_projects_populated_copy_mentions.communityKeywords) as communityKeywords,
any (insights_projects_populated_copy_mentions.communityLanguages) as communityLanguages,
any (segments.status) as status,
any (segments.maturity) as maturity,
any (last_vulnerability_scan_status.lastVulnerabilityScanStatus) as lastVulnerabilityScanStatus
FROM insightsProjects FINAL
LEFT JOIN
Expand Down
Loading