fix: add missing health score v2 category columns to project_repo_insights pipe - #4511
Conversation
…ights pipe (CM-IN-1239) project_repo_insights.pipe (backs the Insights collection detail page's project/repo list) was missing maintainerHealthScoreV2, securitySupplyChainScoreV2, and developmentActivityScoreV2 in its SELECT list, even though its sibling project_insights.pipe already exposed them. This left the collection page's Health Score tooltip category breakdown showing placeholder values instead of real numbers. Already validated and deployed to staging and production. Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
PR SummaryLow Risk Overview This fixes the Insights collection detail project/repo list, where the Health Score tooltip category breakdown was showing dashes because the API response omitted those fields even though they exist on Reviewed by Cursor Bugbot for commit d06f747. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
There was a problem hiding this comment.
Pull request overview
Exposes missing Health Score v2 category values through the combined project/repository Insights endpoint.
Changes:
- Adds three category score columns to the endpoint.
- Documents their ranges and nullability.
- One documentation accuracy issue was identified.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| - `page`: Optional integer for pagination offset calculation, defaults to 0 | ||
| - Response: Project and repository records with insights metrics | ||
| - `healthScoreV2`, `healthLabel`, `lifecycleLabel`, `impactScore`, `impactLabel` are the Akrites-methodology fields (see `project_insights_copy_ds` for band definitions); may be null when the record has no linked package data. `healthScoreV2` is distinct from the legacy `healthScore` field. | ||
| - `maintainerHealthScoreV2` (0-40), `securitySupplyChainScoreV2` (0-35), `developmentActivityScoreV2` (0-25) are the rollup of the Health Score v2 category breakdown (IN-1212) — the three categories that sum to `healthScoreV2`. Null when the record has no value for that category. |
Summary
project_repo_insights.pipe(backs Insights' collection detail page project/repo list) was missingmaintainerHealthScoreV2,securitySupplyChainScoreV2, anddevelopmentActivityScoreV2in its SELECT list, even though the siblingproject_insights.pipealready exposed them.JIRA: IN-1239
Deploy status
Already validated and deployed to staging and production via
tb push.Test plan
curlagainst the collection project-repos endpoint that the 3 columns now return real values (e.g. PixiJS: 37/12/22)