Skip to content

feat(api): add NumPackages to mirrors/repos/snapshots list responses#1559

Open
lesaux wants to merge 2 commits intoaptly-dev:masterfrom
linuxdataflow:feat/pls/api-package-count
Open

feat(api): add NumPackages to mirrors/repos/snapshots list responses#1559
lesaux wants to merge 2 commits intoaptly-dev:masterfrom
linuxdataflow:feat/pls/api-package-count

Conversation

@lesaux
Copy link
Copy Markdown

@lesaux lesaux commented Apr 11, 2026

Description of the Change

add API response wrappers with NumPackages derived from RefList length; keep show endpoint payloads unchanged for backward compatibility; add API tests for list endpoint NumPackages; update swagger response schemas for list endpoints

Checklist

  • allow Maintainers to edit PR (rebase, run coverage, help with tests, ...)
  • unit-test added (if change is algorithm)
  • functional test added/updated (if change is functional)
  • man page updated (if applicable)
  • bash completion updated (if applicable)
  • documentation updated
  • author name in AUTHORS

add API response wrappers with NumPackages derived from RefList length; keep show endpoint payloads unchanged for backward compatibility; add API tests for list endpoint NumPackages; update swagger response schemas for list endpoints
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 11, 2026

Codecov Report

❌ Patch coverage is 97.05882% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 76.68%. Comparing base (2ac4c75) to head (c370a48).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
api/mirror.go 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1559      +/-   ##
==========================================
- Coverage   76.96%   76.68%   -0.28%     
==========================================
  Files         160      161       +1     
  Lines       14757    14779      +22     
==========================================
- Hits        11358    11334      -24     
- Misses       2266     2317      +51     
+ Partials     1133     1128       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@neolynx neolynx requested a review from a team April 12, 2026 19:38
@neolynx neolynx self-assigned this Apr 12, 2026
@neolynx neolynx added needs rebase The PR needs to be rebased on master needs maintainer access and removed needs maintainer access labels Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase The PR needs to be rebased on master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants