Skip to content

feat(api): add OEM breakdown endpoint and group chart - #1571

Draft
Harsh63870 wants to merge 2 commits into
flatcar:mainfrom
Harsh63870:feat/oem-breakdown-api-chart
Draft

feat(api): add OEM breakdown endpoint and group chart#1571
Harsh63870 wants to merge 2 commits into
flatcar:mainfrom
Harsh63870:feat/oem-breakdown-api-chart

Conversation

@Harsh63870

Copy link
Copy Markdown

Summary

Fixes #1569.

Nebraska already stores instance OEM, and the UI already has a version distribution pattern. This adds the OEM equivalent end to end:

  • DB/API: GetGroupOEMBreakdown (empty OEM → unknown, same 1-day activity window)
  • OpenAPI: GET /api/apps/{app}/groups/{group}/oem_breakdown + regenerated codegen
  • Frontend: OEM/platform breakdown on the group card (reuses the version breakdown bar)

Test plan

  • cd backend && go test ./pkg/api/ -run TestGetGroupOEMBreakdown
  • Hit GET /api/apps/<app>/groups/<group>/oem_breakdown and confirm {oem,instances,percentage}
  • Open an applications list / group card and confirm the OEM chart renders beside version breakdown

Related

Expose per-group OEM/platform distribution via oem_breakdown API and show it on the group card next to version breakdown. Fixes flatcar#1569.

Signed-off-by: Harsh63870 <harshvardhanpandey372@gmail.com>
Copilot AI lite review requested due to automatic review settings August 12, 2026 10:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Signed-off-by: Harsh63870 <harshvardhanpandey372@gmail.com>
Copilot AI review requested due to automatic review settings August 12, 2026 10:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

frontend/api: no OEM distribution breakdown endpoint or group chart

2 participants