Skip to content

fix(registry): correct parameter in upload status query#22574

Merged
chlins merged 1 commit into
goharbor:mainfrom
chlins:fix/chunk-progress
Nov 19, 2025
Merged

fix(registry): correct parameter in upload status query#22574
chlins merged 1 commit into
goharbor:mainfrom
chlins:fix/chunk-progress

Conversation

@chlins

@chlins chlins commented Nov 18, 2025

Copy link
Copy Markdown
Member

This pull request includes a small fix in the PushBlobChunk method of the client type in src/pkg/registry/client.go. The change ensures that the correct variable (url instead of location) is passed to the getUploadStatus function when handling errors during a blob chunk push.

Thank you for contributing to Harbor!

Comprehensive Summary of your change

Issue being fixed

Fixes #(issue)

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

@chlins
chlins requested a review from a team as a code owner November 18, 2025 08:17
@chlins chlins added the release-note/update Update or Fix label Nov 18, 2025
@chlins
chlins enabled auto-merge (squash) November 18, 2025 08:17
@chlins chlins assigned wy65701436 and unassigned OrlinVasilev Nov 18, 2025
@codecov

codecov Bot commented Nov 18, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 65.84%. Comparing base (c8c11b4) to head (37a1095).
⚠️ Report is 595 commits behind head on main.

Files with missing lines Patch % Lines
src/pkg/registry/client.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main   #22574       +/-   ##
===========================================
+ Coverage   45.36%   65.84%   +20.47%     
===========================================
  Files         244     1073      +829     
  Lines       13333   116095   +102762     
  Branches     2719     2931      +212     
===========================================
+ Hits         6049    76442    +70393     
- Misses       6983    35415    +28432     
- Partials      301     4238     +3937     
Flag Coverage Δ
unittests 65.84% <0.00%> (+20.47%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/pkg/registry/client.go 42.88% <0.00%> (ø)

... and 986 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wy65701436 wy65701436 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.

lgtm

@chlins
chlins merged commit 26f6310 into goharbor:main Nov 19, 2025
13 of 14 checks passed
vg006 pushed a commit to vg006/harbor that referenced this pull request Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/update Update or Fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants