Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes-21021 Display proxy cache in project configuration page #21048

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

xuelichao
Copy link
Contributor

@xuelichao xuelichao commented Oct 15, 2024

Display proxy cache in project configuration page

Issue being fixed

Fixes #21021

This PR Only supports to display the values:
Screenshot 2024-10-15 at 17 55 09

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.

@xuelichao xuelichao added the release-note/docs Docs changes(made and needed) label Oct 15, 2024
@xuelichao xuelichao requested a review from a team as a code owner October 15, 2024 10:14
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.09%. Comparing base (c8c11b4) to head (f0201f6).
Report is 298 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main   #21048       +/-   ##
===========================================
+ Coverage   45.36%   66.09%   +20.72%     
===========================================
  Files         244     1049      +805     
  Lines       13333   114645   +101312     
  Branches     2719     2867      +148     
===========================================
+ Hits         6049    75776    +69727     
- Misses       6983    34727    +27744     
- Partials      301     4142     +3841     
Flag Coverage Δ
unittests 66.09% <ø> (+20.72%) ⬆️

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

see 1288 files with indirect coverage changes

Copy link
Contributor

@bupd bupd left a comment

Choose a reason for hiding this comment

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

Hello @xuelichao, I tested the changes on my local environment, and I noticed that the bandwidth is the same for all proxy cache projects, showing -1. I’ve made some changes to fix this so that the bandwidth is displayed correctly for each proxy cache project instead of -1 across the board.

fix this

@@ -21,6 +22,7 @@ export class Project {
auto_scan: string | boolean;
auto_sbom_generation: string | boolean;
reuse_sys_cve_allowlist?: string;
bandwidth?: number | null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
bandwidth?: number | null;
proxy_speed_kb?: number | null;

Copy link
Contributor

@wy65701436 wy65701436 left a comment

Choose a reason for hiding this comment

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

lgtm

@xuelichao xuelichao merged commit 5ac9733 into goharbor:main Oct 17, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/docs Docs changes(made and needed)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to view the speed limit for proxy cache project
6 participants