-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this 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.
src/portal/src/app/base/project/project-config/project-policy-config/project.ts
Outdated
Show resolved
Hide resolved
@@ -21,6 +22,7 @@ export class Project { | |||
auto_scan: string | boolean; | |||
auto_sbom_generation: string | boolean; | |||
reuse_sys_cve_allowlist?: string; | |||
bandwidth?: number | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bandwidth?: number | null; | |
proxy_speed_kb?: number | null; |
...src/app/base/project/project-config/project-policy-config/project-policy-config.component.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Signed-off-by: xuelichao <[email protected]>
Display proxy cache in project configuration page
Issue being fixed
Fixes #21021
This PR Only supports to display the values:
Please indicate you've done the following: