Skip to content

feat(job): add status counts to job list, drop operation counts#40

Merged
retr0h merged 1 commit intomainfrom
feat/job-status-counts
Mar 7, 2026
Merged

feat(job): add status counts to job list, drop operation counts#40
retr0h merged 1 commit intomainfrom
feat/job-status-counts

Conversation

@retr0h
Copy link
Collaborator

@retr0h retr0h commented Mar 7, 2026

Summary

  • Add StatusCounts field to ListJobsResponse and JobList to surface per-status job totals alongside paginated results
  • Remove unused OperationCounts field from QueueStatsResponse and QueueStats
  • Update API spec, generated client, and documentation accordingly

Test plan

  • just test passes (unit tests, lint, vet)
  • Verify StatusCounts is populated in job list responses
  • Verify OperationCounts removal has no downstream consumers

🤖 Generated with Claude Code

@github-actions
Copy link

github-actions bot commented Mar 7, 2026

Thank you for contributing to this project! 😊🕹️

@codecov
Copy link

codecov bot commented Mar 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #40   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         1722      1722           
=========================================
  Hits          1722      1722           
Files with missing lines Coverage Δ
pkg/osapi/job_types.go 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 439e543...2ebc108. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Add StatusCounts to ListJobsResponse and JobList so callers get
per-status totals alongside paginated results. Remove the unused
OperationCounts field from QueueStats and the API spec.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
@retr0h retr0h force-pushed the feat/job-status-counts branch from 4e154cf to 2ebc108 Compare March 7, 2026 19:24
@retr0h retr0h merged commit 857786c into main Mar 7, 2026
7 checks passed
@retr0h retr0h deleted the feat/job-status-counts branch March 7, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant