-
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
UI Changes for Configuring Proxy-Cache Speed Limit #20862
Conversation
Signed-off-by: kunal-511 <[email protected]>
Signed-off-by: kunal-511 <[email protected]>
@@ -246,6 +246,7 @@ | |||
"TOGGLED_SUCCESS": "Toggled project successfully.", | |||
"FAILED_TO_DELETE_PROJECT": "Project contains repositories or replication rules or helm-charts cannot be deleted.", | |||
"INLINE_HELP_PUBLIC": "When a project is set to public, anyone has read permission to the repositories under this project, and the user does not need to run \"docker login\" before pulling images under this project.", | |||
"PROXY_CACHE_BANDWIDTH":"Set the maximum network bandwidth to pull image from upstream for proxy-cache. For unlimited bandwidth, please enter -1. ", |
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.
this string needs to be added to all language files. (Put it in the english version), for later translation.
Its than easier to pick it up by others and translate
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.
Added this line to all the language files
Signed-off-by: kunal-511 <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #20862 +/- ##
===========================================
+ Coverage 45.36% 69.02% +23.65%
===========================================
Files 244 800 +556
Lines 13333 100469 +87136
Branches 2719 0 -2719
===========================================
+ Hits 6049 69352 +63303
- Misses 6983 27320 +20337
- Partials 301 3797 +3496
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: kunal-511 <[email protected]>
Signed-off-by: kunal-511 <[email protected]>
Verified the UI, the payload is wrong:
It should be in this format
|
@kunal-511 could please refer to this PR stonezdj@e39f73e to update your code. |
Signed-off-by: kunal-511 <[email protected]>
@stonezdj Updated my PR |
@kunal-511 Please resolve the code conflicts. |
Resolved the code conflicts |
need to update other language json files ?? |
Please update the language json file to add this line.
|
Need to add this to all language json files? |
Yes |
Signed-off-by: kunal-511 <[email protected]>
Added |
@@ -1,6 +1,9 @@ | |||
#severity-blk div { | |||
display: inline-block; | |||
} | |||
.mr-10 { |
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.
The current UI change is only limit to create project, why change the CSS of the project policy config?
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.
The current UI change is only limit to create project, why change the CSS of the project policy config?
It was initially told by @zyyw that we need to make changes to both the create project and also to the project policy-config page
Please squash all commit into one @kunal-511 |
Yes I will do this |
(value <= 0 && value !== -1) | ||
) { | ||
this.bandwidthError = | ||
'Please enter -1 or an integer greater than 0.'; |
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.
Remove extra white space between word 'integer' and 'greater'
"OF": "共計", | ||
"COUNT_QUOTA": "數量配額", | ||
"STORAGE_QUOTA": "儲存配額限制", | ||
"COUNT_QUOTA_TIP": "請輸入介於 '1' 和 '100,000,000' 之間的整數,'-1' 表示無限制。", | ||
"STORAGE_QUOTA_TIP": "儲存配額上限只接受整數,上限為 '1024TB'。輸入 '-1' 表示無限配額。", | ||
"QUOTA_UNLIMIT_TIP": "專案所能使用的最大邏輯空間。輸入 '-1' 表示無限制配額。", | ||
"BANDWIDTH": "Bandwidth", | ||
"SPEED_LIMIT_TIP": "Please enter -1 or an integer greater than 0. ", |
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.
remove the extra indent
> | ||
<div class="flex"> | ||
<input | ||
class="clr-input width-164 mr-10" |
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.
why does the [(ngModel)] not configured for the input element?
<div class="clr-select-wrapper mr-10"> | ||
<select name="" id=""> | ||
<option value="kbps" selected>kbps</option> | ||
<option value="Mbps">Mbps</option> |
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.
[(ngModel)] is not configured for select. why?
@kunal-511 could you please fix the review comment issue before the FC date(Sept 22)? |
Thank you for contributing to Harbor!
proxy-cache bandwidth limit UI change
Comprehensive Summary of your change
This pull request addresses the UI changes required for configuring the proxy-cache speed limit, as outlined in Issue #20589. The changes include the addition of a bandwidth field for setting the speed limit in both the proxy-cache creation page and the project configuration page
Issue being fixed
Fixes #20811
Please indicate you've done the following: