Fangyuan Cheng
7f4dac2101
Merge pull request #6497 from pureshine/error-message
...
Modify the error message when deleting a signed images in harbor-helm
2018-12-11 11:29:47 +08:00
Mia ZHOU
e9a34224e4
Merge pull request #6499 from cd1989/retag-button-for-guest
...
Enable retag button to project guest
2018-12-11 10:55:50 +08:00
Mia ZHOU
53858fe2f1
Merge pull request #6482 from pureshine/default-version
...
Return unknow when about dialog cannot get harbor version
2018-12-11 10:30:40 +08:00
Mia ZHOU
4fc0716005
Merge pull request #6500 from pureshine/svg-format
...
Change the image in png format to the image in svg format
2018-12-11 10:24:04 +08:00
cd1989
fdddb37545
Enable retag button to project guest
...
Signed-off-by: cd1989 <chende@caicloud.io>
2018-12-10 15:46:48 +08:00
FangyuanCheng
892a76c27e
Modify the error message when deleting a signed images in harbor-helm
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-12-10 14:39:04 +08:00
FangyuanCheng
cce22d569d
Return unknow when about dialog cannot get harbor version
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-12-10 13:20:20 +08:00
FangyuanCheng
13686cbe83
Change the image in png format to the image in svg format
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-12-07 13:54:13 +08:00
Meina Zhou
073cacd9b3
fix helm chart did not get global label
...
The root cause is helm chart does not get glboal labels
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-12-07 12:33:25 +08:00
Mia ZHOU
f2a9e8ae9b
Merge pull request #6472 from pureshine/filter-tag
...
Remove the default label when filtering images by label
2018-12-07 08:24:43 +08:00
Wenkai Yin
bcd6947fcc
Merge pull request #6470 from cd1989/retag-problem
...
Give meaningful error messages when retag is forbidden
2018-12-06 18:47:58 +08:00
De Chen
60d65a9d86
Block retag requests in read-only mode ( #6457 )
...
Signed-off-by: cd1989 <chende@caicloud.io>
2018-12-06 18:35:22 +08:00
cd1989
caf07a96fe
Give meaningful messages when retag forbided
...
Signed-off-by: cd1989 <chende@caicloud.io>
2018-12-06 16:25:21 +08:00
FangyuanCheng
158fb92745
Remove the border of default label when filtering images by label
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-12-06 15:35:42 +08:00
Mia ZHOU
657ee8a150
Merge pull request #6469 from zhoumeina/fix_scan_log_viewer
...
fix #6432 modify scan log to use popup window
2018-12-06 15:11:03 +08:00
Meina Zhou
791646b8b0
fix #6432 modify scan log to use popup window
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-12-06 14:24:24 +08:00
Mia ZHOU
9100dfdb5f
Merge pull request #6468 from zhoumeina/fix_500_gc
...
#6440 fix gc will have 500 error when user try to put a new schedule
2018-12-06 14:22:43 +08:00
Wenkai Yin
746d58ceb4
Return the error message when changing password with wrong old password ( #6466 )
...
Return a meaningful error message when changing password but the a wrong old password is provided to render on UI
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-12-06 13:29:30 +08:00
Mia ZHOU
eeb6d4a9b9
Merge pull request #6456 from pureshine/add-user
...
Modify the error message when adding members
2018-12-06 12:53:44 +08:00
Mia ZHOU
2614306768
Merge pull request #6427 from pureshine/remove-am
...
Time display using 24-hour system
2018-12-06 12:52:52 +08:00
Mia ZHOU
a16c7b07a9
Merge pull request #6424 from pureshine/scan-now
...
Don't get the next available time while scan now
2018-12-06 12:44:56 +08:00
Meina Zhou
5db765ea10
#6440 fix gc will have 500 error when user try to put a new schedule
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-12-06 12:43:24 +08:00
Daniel Jiang
29d5b5da72
Return 409 when there is a scan all job running ( #6460 )
...
* Return 409 when user trigger another "scan all"
This commit fixes #6418 , that when multiple "scan all" jobs are
triggered, the API should not return 500.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
* Update swagger to add 409 to scanAll API
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-12-06 11:46:38 +08:00
FangyuanCheng
b866344310
Modify the error message when adding members
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-12-05 19:37:01 +08:00
FangyuanCheng
f09002a26c
Time display using 24-hour system
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-12-05 18:26:23 +08:00
Meina Zhou
87cf6527c7
fix #6421 javascript error when user input nothing in the filter logs
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-12-05 18:16:24 +08:00
Wenkai Yin
538082ceb6
Remove the permission checking for getcert API ( #6436 )
...
The Harbor root cert can be downloaded by all users now, so the permission checking is not needed anymore
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-12-05 12:15:23 +08:00
FangyuanCheng
2e0fcab6ee
Don't get the next available time while scan now
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-12-04 16:44:31 +08:00
peimingming
585d7b2b01
Add unit test for JobService Logger
...
Signed-off-by: peimingming <peimingming@corp.netease.com>
2018-12-03 16:20:03 +08:00
Daniel Jiang
ae240df031
Remove the Scan all in-memory marker ( #6399 )
...
Previously there was a in-memory marker to prevent user from frequently
calling the "scan all" API. This has become problematic in HA
deployment, and is no longer needed after enhancement in jobservice.
This commit removes the marker for "scan all" api, however, we need to
review the mechanism and rework to make it stateless.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-12-02 15:40:50 +08:00
Steven Zou
9c76c375ac
Merge pull request #6396 from steven-zou/unique_job
...
Support unique job constraints (both unique queue and running jobs)
2018-11-30 17:03:43 +08:00
Qian Deng
1de52e28ae
Merge pull request #6398 from ninjadq/fix_i18n_of_delete_project_failure_msg
...
Fix: i18n issues of deleting project failure info
2018-11-30 16:44:11 +08:00
Mia ZHOU
a90fb5219c
Merge pull request #6394 from ninjadq/fix_robot_cases_for_global_search
...
Fix xpath in go to project robot case
2018-11-30 16:43:55 +08:00
Mia ZHOU
42fe0ec30a
Merge pull request #6397 from ninjadq/fix_helm_chart_api_in_ui
...
Fix: helmchart api change caused problems
2018-11-30 16:43:19 +08:00
Wenkai Yin
a81346a4ba
Merge pull request #6386 from heww/session
...
change session cookie name to sid
2018-11-30 16:13:45 +08:00
Steven Zou
84d864607c
Add UT cases for new added code
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-11-30 16:08:15 +08:00
Qian Deng
9020cd6cd2
Fix: i18n issues of deleting project failure info
...
Fix i18n issues that may confuse people
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-11-30 15:40:26 +08:00
Qian Deng
9dd509e0eb
Fix xpath in go to project robot case
...
Global search bug fix introduced test case failure, fix it by edit xpath
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-11-30 15:33:14 +08:00
Qian Deng
2a583fccfe
Fix: helmchart api change caused problems
...
Adapter ui to new backend API
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-11-30 15:28:28 +08:00
Steven Zou
ec2ad4d0b8
Merge pull request #6093 from cd1989/replication-record-id
...
Add op uuid to image replication
2018-11-30 14:54:43 +08:00
Mia ZHOU
b3d0d64ebd
Merge pull request #6392 from pureshine/nav-logo
...
Add harbor logo to navigation bar
2018-11-30 14:42:55 +08:00
Steven Zou
ccd486a0ad
Support unique job constraints (both unique queue and running jobs)
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-11-30 14:14:21 +08:00
Wenkai Yin
9d5cf57373
Check the existence of name when creating replication rule and fix bugs in testing library ( #6381 )
...
1. Fix #5102 by checking the existence of name when creating/editing replication rule
2. Add unique constraint to the name of replication policy and target
3. Fix bugs of testing library
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-11-30 13:32:20 +08:00
FangyuanCheng
566fc5de02
Add harbor logo to navigation bar
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-11-29 23:18:26 +08:00
stonezdj
3b165d41d4
Fix LDAP search error
...
Signed-off-by: stonezdj <stonezdj@gmail.com>
2018-11-29 18:37:23 +08:00
Steven Zou
68b1b98f0a
Merge pull request #6375 from steven-zou/fix_global_search_502_issue
...
Fix global search 502 issue happened when chart repo is not enabled
2018-11-29 16:29:08 +08:00
Daniel Jiang
a3f424f5f3
Merge pull request #6378 from cd1989/retag-status-code-fix
...
Fix status code for permission check in retag, use 403
2018-11-29 16:00:34 +08:00
Steven Zou
d82482499b
Merge pull request #6371 from mmpei/6144-JSLoggerInDB
...
6144 js logger in db
2018-11-29 15:58:20 +08:00
Steven Zou
e7ffaecca5
Fix global search 502 issue happened when chart repo is not enabled
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-11-29 15:53:09 +08:00
He Weiwei
00a3948fff
change session cookie name to sid
...
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2018-11-29 15:18:15 +08:00
Wenkai Yin
3ff4402a35
Merge pull request #6379 from steven-zou/add_retry_to_connect_redis
...
Add retry with backoff when creating redis cache for chart server
2018-11-29 13:52:43 +08:00
Mia ZHOU
3c000f10a0
Merge pull request #6338 from ninjadq/fix_chart_ui_related_issues
...
Fix chart ui related issues
2018-11-29 10:11:44 +08:00
Steven Zou
5ccfa9f8ad
Add retry with backoff when creating redis cache for chart server
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-11-28 22:23:03 +08:00
陈德
f72c7766ae
Fix status code for permission check in retag, use 403
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-11-28 19:48:25 +08:00
peimingming
238dbc0347
Add UT and review comments and issue fix ( #6144 )
...
Signed-off-by: peimingming <peimingming@corp.netease.com>
2018-11-28 17:43:14 +08:00
Steven Zou
b895fda13a
Fix the malformat json data of chart list API
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-11-28 17:07:17 +08:00
peimingming
c67fdc40f5
Support store job log in DB ( #6144 )
...
Signed-off-by: peimingming <peimingming@corp.netease.com>
2018-11-28 15:09:29 +08:00
Qian Deng
59b47ba29b
Enhance: the header of add label component will passed by parant
...
Make the header word of label to be a input argument.
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-11-27 14:45:08 +08:00
Mia ZHOU
f78660ff84
Merge pull request #6356 from pureshine/fix-iconbug
...
Fix the bug that markdown icon does not display on the page
2018-11-27 11:27:29 +08:00
FangyuanCheng
f39cd17003
Fix the bug that markdown icon does not display on the page
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-11-27 10:16:14 +08:00
Daniel Jiang
ca79a98f17
Add dependencies to Gopkg.toml ( #6343 )
...
During the legal process for 1.7.0 I found some dependencies are not tracked in
Gopkg.toml.
This commit explicitly add depedencies on these packages.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-11-27 09:27:12 +08:00
Qian Deng
d484025fa1
Fix: helm chart results style
...
1. Do not show chart results if chart is not enabled
2. Fix style in scroll of results page
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-11-23 17:38:51 +08:00
Qian Deng
259b984755
Fix: change label style in helm chart summary page
...
1. Add label style
2. Fix style
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-11-23 16:36:03 +08:00
Qian Deng
213dd39b5b
Fix: strange string in cmd input in the chart summary
...
Should using backquotes instead of doublequotes to string that need interpreted.
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-11-23 16:28:51 +08:00
Qian Deng
31f45ae908
Fix: i18n issue in add label filter header in chart version
...
In chart version view, wrong description appeared in add label button's header
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-11-23 16:07:04 +08:00
Qian Deng
405565b744
Enhance: Add helm chart count number in the project list
...
Project API return the helm chart count now, so put it to UI.
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-11-12 15:47:51 +08:00
Qian Deng
6a3fe60d55
Merge pull request #6246 from zhoumeina/refactor_registry_for_admiral
...
Refactor registry for admiral
2018-11-09 13:48:43 +08:00
Meina Zhou
6bcc803588
modify registry component using tabs
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-11-09 12:58:26 +08:00
Wenkai Yin
32c42be677
Merge pull request #6241 from steven-zou/logger_framework_job_service
...
Uncomment the harbor configuration injection code block
2018-11-09 10:41:52 +08:00
Steven Zou
01bb7f4abb
Uncomment the harbor configuration injection code block
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-11-09 10:19:14 +08:00
Steven Zou
8f0e8d083a
Fix typo in the README doc of jobservice
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-11-08 18:24:41 +08:00
Steven Zou
b3c87673a6
Merge pull request #6215 from steven-zou/logger_framework_job_service
...
Build logger framework to support configurable loggers/sweepers/getters
2018-11-08 18:15:36 +08:00
Steven Zou
093bf9fc8a
Update the job service config yaml in the installation template
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-11-08 10:40:39 +08:00
Steven Zou
e6d4c024ee
Update README of job service to reflect latest updates
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-11-08 10:35:12 +08:00
Mia ZHOU
db3088ae4d
Merge pull request #6218 from zhoumeina/upgrade_package_version
...
upgrade package version to rc6
2018-11-07 12:46:40 +08:00
James Zabala
ae1196ec8a
Merge pull request #6229 from ninjadq/change_title_wording
...
Fix:Vmware is appeared in ihe title of loading page
2018-11-06 08:55:48 -05:00
Daniel Jiang
abe728325b
Wait for manifest in notification handler
...
There's an issue in registry 2.6.x, that when the webhook is sent the
manifest of the image may not be written.
For details: https://github.com/docker/distribution/issues/2625
This will cause issue in "scan on push" or replication.
This commit mitigates the issue by adding retries in notification
handler.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-11-06 19:23:54 +08:00
Qian Deng
5210aecc76
Fix:Vmware is appeared in ihe title of loading page
...
Should change it to Harbor
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-11-06 19:00:46 +08:00
Steven Zou
e9194ca107
Add/update unit test cases for the new implemented job logger framework
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-11-06 14:43:06 +08:00
Qian Deng
35f3346948
Merge pull request #6155 from mmpei/6086-UserNameLength
...
Support longer UserName
2018-11-06 10:50:50 +08:00
Meina Zhou
5143943ced
upgrade package version to rc6
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-11-06 10:23:08 +08:00
Steven Zou
7b106d06c5
Build logger framework to support configurable loggers/sweepers/getters
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-11-06 09:31:31 +08:00
Meina Zhou
f594c44045
refactor system settings and fixed bug of system settings
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-11-06 08:43:34 +08:00
Daniel Jiang
163fc11b7f
Merge pull request #6198 from ywk253100/181101_replication
...
Pass internal core URL as source in replication
2018-11-02 12:29:53 +08:00
Mia ZHOU
a20d49359b
Merge pull request #6195 from pureshine/labels-btn
...
Ordinary user login is forbidden to add labels in images.
2018-11-02 10:03:10 +08:00
FangyuanCheng
7430ae7426
Ordinary user login is forbidden to add labels in images.
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-11-01 18:15:38 +08:00
Wenkai Yin
88aa413fe6
Pass internal core URL as source in replication
...
Currently, we pass the external URL as the source registry and set insecure as true in replication, this causes security issue. This commit replaces the URL with the internal one and set insecure to false. Fixes #6109 .
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-11-01 17:13:38 +08:00
Mia ZHOU
4894d1f46f
Merge pull request #6190 from zhoumeina/fix_nightly
...
fix nightly test
2018-11-01 15:16:26 +08:00
Meina Zhou
0ba9856c66
fix nightly test
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-11-01 14:07:55 +08:00
Qian Deng
e19616a99d
Merge pull request #6192 from ninjadq/fix_session_expire_issue
...
Fix: When session expire can not click anything
2018-11-01 13:59:49 +08:00
FangyuanCheng
74046cb5e1
Let the retag error prompt show complete
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-11-01 13:13:22 +08:00
Qian Deng
558638f912
Fix: When session expire can not click anything
...
This is casued that not handle 401 err on member routing guard
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-11-01 13:12:48 +08:00
Steven Zou
e37e275a77
Merge pull request #6183 from steven-zou/use_separate_conn
...
Use separate redis conn for the lock mechanism in the periodic enqueuer
2018-10-31 15:55:18 +08:00
Steven Zou
300977d539
Use separate redis conn for the lock mechanism in the periodic enqueuer
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-10-31 15:19:11 +08:00
Qian Deng
d517320c78
Merge pull request #6182 from zhoumeina/remove_switch_tab_confirm
...
remove switch tab confirmation
2018-10-31 15:15:41 +08:00
Meina Zhou
7991387eb8
remove switch tab confirmation
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-10-31 14:46:49 +08:00
Steven Zou
646cf282ba
Merge pull request #6181 from steven-zou/add_test_on_borrow_func
...
Add TestOnBorrow check func of redis pool to verify the getting conn
2018-10-31 14:10:33 +08:00
Mia ZHOU
1287b0d1b1
Merge pull request #6173 from zhoumeina/refactor_config
...
refactor configuration
2018-10-31 14:02:59 +08:00
Steven Zou
58eefb9c17
Add TestOnBorrow check func of redis pool to verify the getting conn
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-10-31 13:30:29 +08:00
Steven Zou
b48748492e
Fix the issue of stopping periodic job ( #6174 )
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-10-31 11:43:46 +08:00
Wenkai Yin
5d585c7c65
Merge pull request #6176 from steven-zou/support_health_check_js
...
Support health check free call in job service
2018-10-31 09:42:42 +08:00
Mia ZHOU
c530f65ba9
Merge pull request #6170 from cd1989/portal-retag-permission
...
Allow retag in portal only for developer or above role
2018-10-31 09:40:47 +08:00
Steven Zou
8341aa14b0
Support health check free call in job service
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-10-30 17:35:07 +08:00
FangyuanCheng
f55666d593
Let the repository description support the markdown format.
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-10-30 17:17:24 +08:00
Meina Zhou
e3e15dbc65
refactor configuration
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-10-30 15:45:04 +08:00
Fangyuan Cheng
e7e2312e16
Merge pull request #6160 from pureshine/datepicker
...
Change Datapicker on replication to clarity widget
2018-10-30 10:58:18 +08:00
FangyuanCheng
ae71673cf0
Change Datapicker on replication to clarity widget
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-10-30 10:14:13 +08:00
陈德
4bf5962e35
Allow retag in portal only for developer or above role
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-29 19:43:43 +08:00
Steven Zou
1b1ab60802
Merge pull request #6152 from mmpei/5178-jibSupporting
...
5178 jib supporting
2018-10-29 16:34:13 +08:00
Wenkai Yin
af17c2c3fd
Merge pull request #6154 from wy65701436/fix-gc-redis
...
Fix gc jobs issues
2018-10-29 16:29:57 +08:00
Steven Zou
dde6c39e80
Merge pull request #6169 from steven-zou/fix_issue_of_periodic_conflicts
...
Return 409 conflict error in liue of 200 with ID of existing one
2018-10-29 16:18:40 +08:00
peimingming
59f777d82c
Adjust length of UserName to 255
...
Signed-off-by: peimingming <peimingming@corp.netease.com>
2018-10-29 16:03:43 +08:00
peimingming
d3a617efd6
Support longer UserName
...
Signed-off-by: peimingming <peimingming@corp.netease.com>
2018-10-29 15:59:17 +08:00
Daniel Jiang
4dc89f57f2
Merge pull request #6167 from steven-zou/fix_issue_of_duplicated_schedule
...
Fix the issue of duplicated periodic job scheduling
2018-10-29 15:56:03 +08:00
Steven Zou
408b751ae6
Return 409 conflict error in liue of 200 with ID of existing one when submmiting periodic job
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-10-29 15:40:31 +08:00
wang yan
903d3906ab
Fix per comments by wk
...
Signed-off-by: wang yan <wangyan@vmware.com>
2018-10-29 15:29:14 +08:00
Steven Zou
d32e51052e
Fix the issue of duplicated periodic job scheduling
...
Signed-off-by: Steven Zou <szou@vmware.com>
Signed-off-by: Steven Zou <szou@vmware.com>
2018-10-29 14:52:45 +08:00
Qian Deng
4aa625e1a6
Fix: Centering Label in the dropdown item
...
Label in drop down should position in ther vertical center
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-10-29 10:54:09 +08:00
Qian Deng
0c756d8df9
Fix: Icon is not at the center of button
...
Icon in the action bar button need be a certer position
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-10-29 10:54:09 +08:00
Mia ZHOU
a745922b77
Merge pull request #6153 from zhoumeina/fix_robot_for_replication
...
modify test case since replication log change to popup a new page
2018-10-29 08:43:35 +08:00
wang yan
566169f59a
Fix gc jobs issues.
...
This commit is to fix two problems in the gc job,
1, in order to support redis cluseter, gc job should delete the keys only
for docker reigstry instead of all keys. It because that in the redis cluster,
only db 0 is supported.
2, to restore the real status of read only not just to set it to false.
Signed-off-by: wang yan <wangyan@vmware.com>
2018-10-26 18:37:20 +08:00
Meina Zhou
b68dd47a20
modify test case since replication log change to popup a new page
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-10-26 16:20:00 +08:00
mmpei
a209519b0e
add support jib
...
Signed-off-by: mmpei <peimingming1986@126.com>
Signed-off-by: peimingming <peimingming@corp.netease.com>
2018-10-26 15:32:10 +08:00
mmpei
99c70ceab9
issue 5851 support jib client
...
Signed-off-by: mmpei <peimingming1986@126.com>
2018-10-26 15:27:28 +08:00
Steven Zou
a2f0da0d7d
Fix the web hook mising issue for the periodic job executions
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-10-26 14:28:04 +08:00
Mia ZHOU
079059ef0c
Merge pull request #6140 from ninjadq/extend_username_length
...
Extend username length
2018-10-26 13:03:01 +08:00
Steven Zou
9bbc9233f1
Merge pull request #6147 from clouderati/fix-misspelling
...
Fix mispelling
2018-10-26 12:47:31 +08:00
Wenkai Yin
591e3df9c5
Merge pull request #6126 from reasonerjt/no-scanall-bootstrap
...
Not submit scan all job when core container starts
2018-10-26 12:45:01 +08:00
Qian Deng
571384cdb2
Enhance: Extend username length to 255
...
Backend username is extend to 255, UI should update eithera #6086
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-10-26 12:28:18 +08:00
Daniel Jiang
13b40e6074
Merge pull request #6146 from clouderati/fix-header
...
Adding copyright header
2018-10-26 09:57:02 +08:00
clouderati
5c47e83bd6
Fix mispelling
...
* s/convertor/converter
* s/Convertor/Converter
Signed-off-by: clouderati <35942204+clouderati@users.noreply.github.com>
2018-10-25 21:29:46 +00:00
clouderati
b0d523841e
Adding copyright header
...
Adding header to replication/models/policy.go file as it was previously
missing.
Signed-off-by: clouderati <35942204+clouderati@users.noreply.github.com>
2018-10-25 20:54:05 +00:00
Daniel Jiang
39b4d011c7
Not submit scan all job when core container starts
...
Fixes #6115
As for the change in migration sql file, in 1.7 we'll switch to
jobservice for scheduling "scan all" job. To avoid inconsistency,
this item will be reset and user will need to configure the policy again.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-10-25 19:01:52 +08:00
Qian Deng
4b1e94d419
Fix: UAA can not edit after save
...
UAA should editable if no uaa users in db
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-10-25 15:33:44 +08:00
Qian Deng
a48ae01e4b
Merge pull request #6131 from ninjadq/ui_enhancement_of_chart_label
...
Enhancement: Harbor Helmchart UI Label
2018-10-25 14:14:07 +08:00
Qian Deng
7164856239
Enhancement: Harbor Helmchart UI Label
...
1. Add Filter to helmchart datagrid
2. Fix UI misc issues
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-10-24 19:03:18 +08:00
Mia ZHOU
bc85ef2cb3
Merge pull request #6125 from zhoumeina/add_login_image
...
add login page image
2018-10-24 11:07:19 +08:00
Steven Zou
3b76a960e1
Merge pull request #6039 from stonezdj/refact_5996
...
Refactor capacity
2018-10-24 10:50:11 +08:00
Meina Zhou
1aef241d77
add login page image
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-10-24 10:47:11 +08:00
陈德
5063f57a1f
Fix validation in image name input form
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-24 09:49:57 +08:00
陈德
ea8fe8a2c5
Add image retag function in portal
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-24 09:49:57 +08:00
Steven Zou
04e9190870
Merge pull request #5371 from kofj/master
...
Build history
2018-10-24 09:39:03 +08:00
James Zabala
6556d782bf
Merge pull request #6034 from estaleiro/harbor-ptBR
...
Adds support for Brazilian Portuguese
2018-10-23 14:03:12 -04:00
Daniel Jiang
2920ec5f9b
Merge pull request #6077 from clouderati/update-copyright
...
Updating copyright notices
2018-10-23 18:38:15 +08:00
Frank Kung
735ae1b2f6
Add unit test of build history section.
...
Move style to scss file.
Signed-off-by: Frank Kung <kfanjian@gmail.com>
2018-10-23 16:10:41 +08:00
Frank Kung
fd9e3dc2b8
Add build history component to Harbor UI
...
Add build histroy section and navbar to tag-detail component
Add i18n items of build history
Format code.
Signed-off-by: Frank Kung <kfanjian@gmail.com>
2018-10-23 16:10:41 +08:00
Qian Deng
4b103d115a
Merge pull request #6110 from ninjadq/add_chart_2_global_result
...
Feature: Add helmchart version result in global search result
2018-10-23 15:46:55 +08:00
Mia ZHOU
951c53d9f9
Merge pull request #6112 from zhoumeina/disable_scan_users
...
Disable scan button in tag detail page if login with normal user role
2018-10-23 15:19:35 +08:00
Qian Deng
2eff6a794a
Feature: Add helmchart version result in global search result
...
Include helmchart to global search resault related to ##5791
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-10-23 15:15:46 +08:00
Meina Zhou
7f6917a2c1
disable scan button in tag detail page if login with normal user role
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-10-23 14:34:00 +08:00
Qian Deng
9fc9664d30
Merge pull request #6107 from ninjadq/fix_i18n_on_repository_cardview
...
Fix: Show image description info based on locale setting
2018-10-23 13:06:01 +08:00
Mia ZHOU
07712d37fd
Merge pull request #6101 from pureshine/scan-btn
...
Revert "Disable scan button when vulnerability data is not ready."
2018-10-23 12:45:02 +08:00
FangyuanCheng
842d3a4723
Revert "Disable scan button when vulnerability data is not ready."
...
This reverts commit 2a3c113458
.
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-10-23 11:40:58 +08:00
Steven Zou
0c901a475f
Merge pull request #6074 from goharbor/enhance_job_service
...
Enhance job service to support multiple executions recording
2018-10-23 09:50:05 +08:00
Mia ZHOU
c13a0bfaae
Merge pull request #6088 from pureshine/fixed_bug
...
Vulnerability scan cancel editing to make UI into orginal status
2018-10-23 08:39:32 +08:00
Qian Deng
2e3e225147
Fix: Show image description info based on locale setting
...
Descrition info not present based on locale info before, translate it before showing on page.
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-10-22 20:43:06 +08:00
陈德
1ffd9d8fba
Add op uuid to image replication
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-21 23:55:57 +08:00
Cheng Fangyuan
8b6e72e56e
Vulnerability scan cancel editing to make UI into orginal status
...
Signed-off-by: Cheng Fangyuan <fangyuanc@fangyuanc-a01.vmware.com>
2018-10-19 13:14:43 +08:00
Qian Deng
2891ab2822
Merge pull request #6085 from ninjadq/add_label_2_helm_chart
...
Add label 2 helm chart
2018-10-19 13:08:35 +08:00
Qian Deng
6eb9fa53a7
Add labels on chart summary page
...
Add labels on chart summary
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-10-19 12:47:49 +08:00
Steven Zou
db24cbe25a
Merge pull request #5779 from cd1989/images-retag
...
Merge Images retag
2018-10-19 11:04:48 +08:00
Steven Zou
7ca2e9df81
Enhance job service to support multiple executions rectording
...
- print more logs
- add execution records for periodic job
- add launch job func in job context to launch sub job
- replace copyright header with new version
Signed-off-by: Steven Zou <szou@vmware.com>
2018-10-19 11:02:09 +08:00
Qian Deng
7ffa135432
Add Label Marker to Helmchart version
...
1. Add Label marker component
2. Add Label apis
3. Add Label to Helmchart version
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-10-19 10:30:02 +08:00
Daniel Jiang
fe2e58e1a0
Ignore duplication error when inserting config
...
This commit mitigates the situation when more then one adminserver is
deployed and there may be duplication error when they try to initialize
the configuration to DB.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-10-19 10:23:00 +08:00
clouderati
9a93f225d7
Updating copyright notices
...
Replacing copyright notices with "Copyright 2018 The Harbor Authors".
Signed-off-by: clouderati <35942204+clouderati@users.noreply.github.com>
2018-10-18 16:04:36 +00:00
Mia ZHOU
5cf6c04ea6
Merge pull request #6071 from zhoumeina/gc_releated_ui
...
fix gc ui issues
2018-10-18 13:19:29 +08:00
Meina Zhou
c6aaea869f
fix gc ui issues
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-10-18 11:37:55 +08:00
FangyuanCheng
c111a354f0
Add a header separator line to the action drop-down menu.
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-10-18 10:33:50 +08:00
Fangyuan Cheng
7851404d0d
Merge pull request #6069 from pureshine/scan_btn
...
Disable scan button when vulnerability data is not ready.
2018-10-18 09:32:32 +08:00
陈德
a1b4729aa7
Add more unit tests
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-18 00:26:25 +08:00
FangyuanCheng
2a3c113458
Disable scan button when vulnerability data is not ready.
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-10-17 23:48:10 +08:00
Qian Deng
7c43420cfd
Merge pull request #6061 from zhoumeina/hide_repo
...
hide the popular repositories by default
2018-10-17 18:51:29 +08:00
Meina Zhou
bb6ff76c40
hide the popular repositories by default
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-10-17 17:55:03 +08:00
FangyuanCheng
15172988cb
Allow developers and project admins administrators to download the harbor certs from UI.
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-10-17 15:14:46 +08:00
Mia ZHOU
00c6e2dc5f
Merge pull request #6044 from pureshine/refactor-vul
...
Refactoring the vulnerability UI to make it similar to GC.
2018-10-17 09:18:16 +08:00
stonezdj
0278981523
Change admin server to core in jobservice
...
Signed-off-by: stonezdj <stonezdj@gmail.com>
2018-10-16 19:23:12 +08:00
Fangyuan Cheng
141a81ac47
Merge pull request #6051 from pureshine/modify_text
...
Modify the dialog information when removing a member of project
2018-10-16 16:38:31 +08:00
FangyuanCheng
0b8569371d
Refactoring the vulnerability UI to make it similar to GC.
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-10-16 16:31:46 +08:00
FangyuanCheng
9cbcd07d10
Modify the dialog information when removing a member of project
...
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-10-16 15:11:02 +08:00
Meina Zhou
95188de77f
modify delete to uppercase
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-10-16 09:46:44 +08:00
stonezdj(Daojun Zhang)
b764033fc9
Merge pull request #6007 from stonezdj/refact_5998
...
Change admin server to core in jobservice
2018-10-15 17:52:24 +08:00
stonezdj
79bac7a64e
Change admin server to core in jobservice
...
Signed-off-by: stonezdj <stonezdj@gmail.com>
2018-10-15 14:56:18 +08:00
Daniel Jiang
00c8344c13
Remove the local scheduler
...
This is no longer needed after moving the "scan all" to job-service.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-10-15 14:14:11 +08:00
Wenkai Yin
0ebed68f5b
Merge pull request #5924 from cd1989/replication-status-check
...
Fix statuses condition when trigger replication
2018-10-15 11:26:22 +08:00
Ricardo Pchevuzinske Katz
3298fd752e
Adds support for Brazilian Portuguese
...
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@serpro.gov.br>
2018-10-14 19:05:18 -03:00
陈德
e5e5ba79a5
Add operations filter
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-13 11:09:53 +08:00
Wenkai Yin
18aedacef8
Merge pull request #6020 from reasonerjt/fix-insecure-transport
...
Revoke the change in replicator
2018-10-12 10:34:52 +08:00
Daniel Jiang
b895a2d7cf
Revoke the change in replicator
...
Revoke the change made to replicator to reset the insecure flag to true
when accessing source registry. The reason is that the replicator will
use external URL to access source registry, setting it to false will
break replication when Harbor is hosting with self-signed certificate.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-10-11 18:29:38 +08:00
Steven Zou
326e0d455a
Log error if failed to create logger for job
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-10-11 16:29:00 +08:00
Qian Deng
a69f86054f
Merge pull request #6013 from zhoumeina/release_rc5
...
modify harbor ui package structure
2018-10-11 14:00:10 +08:00
Meina Zhou
be3fd2e6f3
modify harbor ui package structure
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-10-11 10:47:04 +08:00
Wenkai Yin
83147b1982
Merge pull request #6003 from wy65701436/fix-gc-bug
...
Fix gc api issues
2018-10-11 10:26:38 +08:00
Wenkai Yin
b4a9eae8cc
Merge pull request #6009 from reasonerjt/fix-insecure-transport
...
Use secure transport to access HTTP endpoint
2018-10-11 10:23:12 +08:00
陈德
d6f5560145
Fix status check when trigger replication
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-11 09:03:49 +08:00
Steven Zou
95d48436b8
Add README doc for job service ( #6010 )
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-10-10 19:08:20 +08:00
Daniel Jiang
1188bd89b9
Use secure transport to access HTTP endpoint
...
In various parts of the code, we used insecure transport in http Client
when we assume the endpoint is http. This causes complaints form
security scanner. We should use secure transport in such cases.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-10-10 17:51:02 +08:00
Qian Deng
7116baabed
Merge pull request #6001 from zhoumeina/fix_console_error_gc
...
replace Observable.throw to observableThrowError to avoid undefined e…
2018-10-10 16:19:38 +08:00
wang yan
a4ad4c7282
Fix gc api issues
...
1, filter out the scan all jobs in the gc list.
2, make it able to delete unexecuted scheduler.
Signed-off-by: wang yan <wangyan@vmware.com>
2018-10-10 15:45:03 +08:00
Mia ZHOU
a8d39c0b05
Merge pull request #5989 from ninjadq/add_buttons_to_chart_list_view
...
Add buttons to chart list view
2018-10-10 15:08:37 +08:00
Meina Zhou
1487b649ff
replace Observable.throw to observableThrowError to avoid undefined error
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-10-10 15:05:41 +08:00
Qian Deng
b9697df44a
Add download latest version button
...
Add download button in chart list view to download latest chart
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-10-10 11:23:09 +08:00
Meina Zhou
081921cf89
refactor gauge component using angular way,remove jquery
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-10-10 10:49:20 +08:00
Qian Deng
2011e606fc
Add delete chart button
...
Add delete chart button to remove all version of seleted charts
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-10-09 15:42:35 +08:00
陈德
b648084d95
Improve code styles and fix after Harbor refactoring
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-09 10:49:03 +08:00
陈德
03d5157eaf
Updae retag api spec
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-08 19:07:23 +08:00
陈德
75f1cdb449
Update swagger file to add retag API
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-08 19:07:22 +08:00
陈德
48d2435146
Fix notification event filtered because of user agent
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-08 19:07:22 +08:00
陈德
03af3c5936
Add image retag API
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-08 19:07:21 +08:00
James Zabala
e09a157dce
Merge pull request #5896 from erks/normalize_ldap_group_dn
...
Normalize (make lowercase) ldap_group_dn during onboarding
2018-10-02 16:03:03 -04:00
James Zabala
ce0e195d18
Merge pull request #5957 from reasonerjt/scan-all-jobsvc
...
Schedule "scan all" via jobservice
2018-10-02 15:31:42 -04:00
James Zabala
a9dcd7c475
Merge pull request #5967 from gnomeontherun/remove-bootstrap
...
Remove unused Bootstrap from portal dependencies
2018-10-02 15:29:58 -04:00
Daniel Jiang
b12dc3b5d8
Schedule "scan all" via jobservice
...
This commit leverage the jobservice to trigger "scan all" and
gets rid of the local scheduler to make the harbor-core container
stateless.
It keeps using the notifer mechanism to handle the configuration change.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-09-28 15:42:37 +08:00
Fangyuan Cheng
832bbc3b9b
Merge pull request #5965 from pureshine/package
...
Refactor and improve the format of vulnerability scan report
2018-09-28 15:25:53 +08:00
Cheng
033523d223
Refactor and improve the format of vulnerability scan report
...
Signed-off-by: Cheng <fangyuanc@vmware.com>
2018-09-28 14:28:28 +08:00
Jeremy Wilken
329072bbb9
Remove unused Bootstrap from portal dependencies, add jQuery which was implicitly depended upon
...
Signed-off-by: Jeremy Wilken <gnomation@gnomeontherun.com>
2018-09-27 14:20:45 -05:00
Steven Zou
55c50f310d
Fix #5956 issue: The APIs should not get chart information when Harbor is not installed with chart repo
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-09-27 13:22:25 +08:00
Mia ZHOU
1173955200
Merge pull request #5950 from pureshine/replication_dialog
...
Make the replication dialog a little bit wider
2018-09-26 16:47:47 +08:00
Cheng
79e5abe2df
Make the replication dialog a little bit wider
...
Signed-off-by: Cheng <fangyuanc@vmware.com>
2018-09-26 14:14:12 +08:00
Meina Zhou
03d0ad0faf
fresh page after job finished
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-26 13:07:41 +08:00
Cheng
98cba2a1a9
Make the replication dialog a little bit wider
...
Signed-off-by: Cheng <fangyuanc@vmware.com>
2018-09-26 12:50:24 +08:00
Cheng
f3cc7676ef
Make the replication dialog a little bit wider
...
Signed-off-by: Cheng <fangyuanc@vmware.com>
2018-09-26 12:23:29 +08:00
Cheng
f1648602d5
Make the replication dialog a little bit wider
...
Signed-off-by: Cheng <fangyuanc@vmware.com>
2018-09-26 12:10:47 +08:00
Daniel Jiang
8e438d81d1
Merge pull request #5945 from steven-zou/provide_total_count_of_charts
...
Return the total count of charts under the project in project API
2018-09-25 18:32:29 +08:00
Steven Zou
8b538cbc0a
Return the total count of charts under the project in project API
...
- add new interface method to get total count of charts under namespaces by calling get index
- add new field 'chart_count' in project model
- append chart count to the project model in project API
Signed-off-by: Steven Zou <szou@vmware.com>
2018-09-25 17:56:11 +08:00
Cheng
d9ac235fb2
Revert replication dialog
...
Signed-off-by: Cheng <fangyuanc@vmware.com>
2018-09-25 15:06:07 +08:00
Daniel Jiang
0699980924
Add Scan All job to job service ( #5934 )
...
This commit adds the job to scan all images on registry.
It also makes necessary change to Secret based security context, to
job service has higher permission to call the API of core service.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-09-22 13:07:32 +08:00
Wenkai Yin
978f8721e6
Merge pull request #5927 from steven-zou/return_labels_in_chart_api
...
Refactor the chart service implementation to provide more extending flexibilities
2018-09-21 15:59:53 +08:00
Qian Deng
0cb430d463
Merge pull request #5932 from ninjadq/refactor_auth_api
...
Refactor backend api for authrization
2018-09-21 15:59:07 +08:00
Qian Deng
88bb461314
Reactor backend api for authrization
...
1. Change backend api
2. Change frontend api
3. Change the proxy config file
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-21 14:03:17 +08:00
Steven Zou
78b9cbf35e
Fix failures of UT cases of chart API related
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-09-21 14:02:45 +08:00
Meina Zhou
d8b917c097
Modify some small issues in gc ui
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-21 09:41:06 +08:00
Daniel Jiang
6c84a3dc4f
Merge pull request #5690 from goharbor/clouderati-copyright-update
...
Updating copyright notices
2018-09-20 19:38:26 +08:00
Steven Zou
d4c423ea8e
Merge branch 'master' into return_labels_in_chart_api
2018-09-20 17:55:48 +08:00
Steven Zou
24c0be789d
Add more UT cases for changed chart API
...
- add more cases in the ChartRepositoryAPI controller
- move chart utility testing functions to a separate go file under testing
- ignore testing coverage for testing folder
- update other UT cases to reflect the change of adding chart testing utility functions
Signed-off-by: Steven Zou <szou@vmware.com>
2018-09-20 17:51:27 +08:00
Cheng Fangyuan
8192bf2d62
Merge pull request #5930 from pureshine/modify_dropdown
...
After selecting color, the color button is closed
2018-09-20 14:55:15 +08:00
Cheng
3568673e85
After selecting color, the color button is closed
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-20 14:10:40 +08:00
Cheng
e47e17ed3f
After selecting color, the color button is closed
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-20 14:09:05 +08:00
Mia ZHOU
f49ae02a1a
Merge pull request #5925 from zhoumeina/gc_ui
...
Implementation of GC UI
2018-09-20 13:46:54 +08:00
Meina Zhou
aefb97dec8
Implement gc UI
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-20 13:21:22 +08:00
De Chen
970d84f1b9
Add comment format check to makefile and travis ( #5832 )
...
* Add comment format check to makefile and travis
Signed-off-by: 陈德 <chende@caicloud.io>
2018-09-20 11:48:38 +08:00
Cheng
7d9c6287b3
After selecting color, the color button is closed
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-20 11:15:30 +08:00
Steven Zou
e6de7f080d
Rename the import path of new package 'label'
...
Signed-off-by: Steven Zou <szou@vmware.com>
2018-09-20 10:31:29 +08:00
clouderati
587459df15
Replacing copyright notices with "Copyright Project Harbor Authors".
...
Signed-off-by: clouderati <35942204+clouderati@users.noreply.github.com>
2018-09-19 16:59:36 +00:00
Steven Zou
3a204dbf7d
Rebase to fix conflicts
2018-09-19 17:46:47 +08:00
Qian Deng
7873a0312a
Rename harbor-ui to harbor-core
...
1. Update the nginx.conf
2. Update Makefile
3. Update docker-compose
4. Update image name
5. Rename folder ui to core
6. Change the harbor-ui's package name to core
7. Remove unused static file on harbor-core
8. Remove unused code for harbor-portal
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-19 16:35:13 +08:00
Steven Zou
df241c0666
Refactor the chart service implementation to provide more extemding flexibilities
...
- use unified proxy handler to handle all the proxy traffic
- define interfaces for the handlers
- implement the interface at chart controller level
- refactor UT cases
- update other related reference code
Signed-off-by: Steven Zou <szou@vmware.com>
2018-09-19 16:34:58 +08:00
Yan
29ca31cf6c
Update gc api to fix issues found by UI implemention ( #5920 )
...
This commit is to update gc api to fix issues found by UI implemention:
1, Return json format of gc schedule
2, Unify capital and small letter
3,Return gc records by desc
Signed-off-by: wang yan <wangyan@vmware.com>
2018-09-19 14:36:47 +08:00
Touch Ungboriboonpisal
e256547411
Normalize (make lowercase) the ldap group dn when onboarding
...
Fixes #5895
Signed-off-by: Touch Ungboriboonpisal <tungbori@zynga.com>
2018-09-18 13:37:35 -07:00
Cheng Fangyuan
262de58c55
Merge pull request #5898 from pureshine/modify_tooltips
...
Modify the tooltip to increase and display the full content
2018-09-18 18:28:23 +08:00
Cheng Fangyuan
6a0ccae913
Merge pull request #5903 from pureshine/modify_text
...
Tooltip prompts 'repository read only'
2018-09-18 17:46:32 +08:00
Cheng Fangyuan
407b46801b
Merge pull request #5899 from pureshine/modify_space
...
Make the space between the button and the tab section consistent
2018-09-18 17:44:47 +08:00
Cheng
27a5df5c90
Modify the tooltip to increase and display the full content
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-18 14:02:31 +08:00
Cheng
efc3937368
Make the space between the button and the tab section consistent
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-18 13:52:11 +08:00
Cheng
b9dae3f156
Make the space between the button and the tab section consistent
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-18 13:45:33 +08:00
Cheng
76c66a9dea
Tooltip prompts 'repository read only'
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-18 11:58:23 +08:00
Cheng
014a81da68
Modify the tooltip to increase and display the full content
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-18 11:37:35 +08:00
Cheng Fangyuan
8250bce9c5
Merge pull request #5897 from pureshine/modify_sort
...
Remove the sort of project and endpoint name
2018-09-18 10:21:26 +08:00
Cheng
d2f1681943
Tooltip prompts 'repository read only'
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-17 15:52:57 +08:00
Cheng
61298e2673
Make the space between the button and the tab section consistent
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-17 15:27:08 +08:00
Cheng
34e66a709e
Modify the tooltip to increase and display the full
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-17 10:54:30 +08:00
Cheng
9b8bc80012
fiexed by pr: #5472 Remove the sort of project and endpoint name
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-17 09:54:50 +08:00
Mia ZHOU
424f5f80a7
Merge pull request #5892 from pureshine/modify_button
...
Disable delete button when there is no group
2018-09-14 17:00:23 +08:00
Wenkai Yin
dfcd6f044d
Merge pull request #5888 from steven-zou/mark_labels_to_chart
...
Add API to support marking labels to charts
2018-09-14 15:09:46 +08:00
Cheng
b8f9b71d89
Disable delete button when there is no group
...
Signed-off-by: Cheng <1309173081@qq.com>
2018-09-14 13:36:22 +08:00
Steven Zou
7b8fe27c22
Add API to support marking labels to charts
...
- add related chart label API entries
- extract label related functionalities to a separate manager interface
- add a base controller for label related actions
- add related UT cases
Signed-off-by: Steven Zou <szou@vmware.com>
2018-09-14 13:27:50 +08:00
Wenkai Yin
89893779fb
Support configuring sslmode for the connection of database ( #5861 )
...
The sslmode of the connection with postgresql is hardcoded as "disable" currently, this commit expose it as an environment variable so that users can configure it
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-09-14 13:05:05 +08:00
chengfangyuan
00c225f374
Make the replication dialog a little bit wider
...
Signed-off-by: chengfangyuan <1309173081@qq.com>
2018-09-14 10:07:39 +08:00
Qian Deng
8cdd2d29d9
Merge pull request #5862 from ninjadq/fix_rebot_case_for_angular6
...
Fix xpath in robot case
2018-09-11 10:20:08 +08:00
Qian Deng
dfeb1924c6
Fix xpath in robot case
...
1. Fix xpath of Upload button
2. Fix xpath of status span
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-10 17:24:28 +08:00
Qian Deng
7a8c1bfbac
Merge pull request #5854 from zhoumeina/fix_remove_static
...
remove static after angular 6 ugprade
2018-09-10 16:58:06 +08:00
Wenkai Yin
1f195c2b5f
Merge pull request #5840 from Colstuwjx/fix-tcp-probe
...
Fix `TestTCPConn` break issue.
2018-09-10 14:46:04 +08:00
Meina Zhou
232a8f390a
remove static after angular 6 ugprade
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-10 14:39:09 +08:00
Qian Deng
ac6c9d79ba
Remove nodeclarity
...
Remove the nodeclarity container related code and ui_builder parameter no longer needed when build clarity
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-08 20:33:21 +08:00
Qian Deng
8c26f78ae4
Fix tslint fail issues
...
Fix issues that cause tslint fail
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-08 14:58:50 +08:00
Qian Deng
0578d51437
Remove clarity logo
...
Replace favicon to harbor logo
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-07 17:37:05 +08:00
Qian Deng
aff8521c18
Add i18n to static assets
...
Add i18n files to static asset
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-07 16:13:37 +08:00
Qian Deng
9f90306600
Merge branch 'angular6' of https://github.com/vmware/harbor into angular6
2018-09-07 16:12:33 +08:00
Qian Deng
ba4762095f
Update dockerfile of portal based on angular6 upgrade
...
1. Update entrypoint to reflect angular 6 upgrade
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-07 15:06:15 +08:00
Qian Deng
db8d7b9c1c
Merge branch 'seprate_harbor_portal_from_harbor_core' into angular6
2018-09-07 14:56:16 +08:00
Qian Deng
d797c50438
Fix trivial issues about rename ui_ng to portal
...
Update ui_ng to portal
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-07 13:25:41 +08:00
Qian Deng
870653a5fb
Update nginx config to redirect traffic to specific backend
...
1. Update nginx.conf file
2. Update photon makefile
3. Update global makefile
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-07 13:21:27 +08:00
Qian Deng
dc21f3f5e2
Add container for harbor-portal
...
1. Add dockerfile for building harbor-portal
2. change the name from ui_ng to harbor-portal
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-07 13:20:08 +08:00
Meina Zhou
94f967e054
remove ng-package and use angular command to build lib
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-07 11:30:01 +08:00
Meina Zhou
20b4386256
remove rxjs-compat in package
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-07 11:30:00 +08:00
Meina Zhou
5c174d5090
fix i18n does not show correctly
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-07 11:30:00 +08:00
Meina Zhou
806fbaa49c
fix build fail for angular 6
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-07 11:30:00 +08:00
Meina Zhou
a330d4e116
upgrade to angular 6
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-07 11:30:00 +08:00
Daniel Jiang
cd31cbf892
Merge pull request #5828 from stonezdj/ldap_caseinsense
...
LDAP group DN should be case insensitively
2018-09-07 10:48:31 +08:00
Colstuwjx
e49a9de2f4
Fix TestTCPConn
break issue.
...
Signed-off-by: Colstuwjx <Colstuwjx@gmail.com>
2018-09-06 14:58:04 +08:00
Meina Zhou
66d2d25d26
remove ng-package and use angular command to build lib
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-06 14:41:50 +08:00
stonezdj
9dca49ba6e
LDAP group DN should be case insensitive
...
Fix issue #5776 , LDAP servers are case insensitive. because only LDAP
group DN is used to compare/equal operation, lowercase all LDAP group DN
when retrieves it from LDAP server, and lowercase them before save in DB
Signed-off-by: stonezdj <stonezdj@gmail.com>
2018-09-06 11:33:05 +08:00
Wenkai Yin
5427c0064c
Merge pull request #5731 from Colstuwjx/fix-log-test
...
Fix logger test case, add SetSkipLine func.
2018-09-06 08:17:17 +08:00
Colstuwjx
bab203c0f4
Fix logger test case.
...
Signed-off-by: Colstuwjx <Colstuwjx@gmail.com>
2018-09-05 19:25:17 +08:00
陈德
0582db9a82
Apply consistent format for comments
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-09-05 16:16:31 +08:00
Meina Zhou
0c1ba5a201
remove rxjs-compat in package
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-05 14:35:38 +08:00
Meina Zhou
6c8bd45f0b
fix i18n does not show correctly
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-05 14:17:43 +08:00
Meina Zhou
4abf4e09ea
fix build fail for angular 6
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-05 09:28:08 +08:00
Wenkai Yin
49bb5cfafb
Test TCP connection before upgrading database schema
...
This commit moves the database schema upgrading after database initialization. The init will test TCP connection.
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-09-05 02:07:47 +08:00
Wenkai Yin
b43024ccbf
Merge pull request #5829 from steven-zou/support_chart_search
...
Enhance the global search API to include chart searching result
2018-09-06 09:58:43 +08:00
Steven Zou
a9f2ff2c91
Enhance the global search API to include chart searching result
...
- add chart search interface method in utility handler
- update the search API handler
- update the search API UT case
Signed-off-by: Steven Zou <szou@vmware.com>
2018-09-05 20:13:27 +08:00
Meina Zhou
888fc21218
upgrade to angular 6
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-09-04 15:36:08 +08:00
陈德
6eb972c383
Add pull scope to post/put/patch method
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-09-03 11:12:11 +08:00
Daniel Jiang
22c53d9f34
Merge pull request #5761 from wy65701436/fix-4926
...
Extend configuration length to 1024 in DB
2018-08-31 14:50:12 +08:00
wang yan
f8b964d8cf
Extend configuration length to 1024 in DB
...
Signed-off-by: wang yan <wangyan@vmware.com>
2018-08-31 13:42:24 +08:00
Steven Zou
7752595313
Merge pull request #5759 from steven-zou/support_delete_chart
...
Delete all the versions of the specified chart
2018-08-30 17:03:08 +08:00
Steven Zou
35603288e1
Merge pull request #5762 from steven-zou/enhance_js_webhook
...
Return more data of the job when reporting status info via webhook
2018-08-30 16:40:13 +08:00
Wenkai Yin
7564214946
Merge pull request #5767 from steven-zou/add_latest_version
...
Append latest version of the chart when returning the chart list
2018-08-30 16:37:44 +08:00
Steven Zou
34f19f437d
Delete all the versions of the specified chart
...
- add API route
- add DELETE chart method in utility handler of chart controller
- add UT case for the newly added methods
- update swagger.yaml to refelct the new change
Signed-off-by: Steven Zou <szou@vmware.com>
2018-08-30 16:31:05 +08:00
Steven Zou
12c6f1ada3
Append latest version of the chart when returning the chart list
...
- append `LatestVersion` to the `ChartInfo` model
- update the UT case to check the `LatestVersion`
Signed-off-by: Steven Zou <szou@vmware.com>
2018-08-30 14:43:41 +08:00
Steven Zou
1636b138f2
Return more data of the job when reporting status info via webhook
...
- update the status report func `RedisJobStatsManager.reportStatus`
- update the UT case for the above change
Signed-off-by: Steven Zou <szou@vmware.com>
2018-08-30 14:28:12 +08:00
陈德
a59af8ce82
fix gofmt
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-08-30 14:11:18 +08:00
陈德
666bd692fe
Support repo list sorting
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-08-30 10:56:50 +08:00
Steven Zou
4bf729caaf
Sort the chart list before returning
...
- updatet the chart getting API
- update the corresponding UT case
Signed-off-by: Steven Zou <szou@vmware.com>
2018-08-29 15:26:21 +08:00
wang yan
aab761ac8a
Fix gofmt check results
...
Signed-off-by: wang yan <wangyan@vmware.com>
2018-08-29 11:50:00 +08:00
Yan
fca2bb3a6b
Fix misspell checking results ( #5749 )
...
Signed-off-by: wang yan <wangyan@vmware.com>
2018-08-29 10:25:42 +08:00
Wenkai Yin
93a073ff64
Merge pull request #5695 from cd1989/macos-volume-capacity
...
Fix volume capacity when run in MacOS
2018-08-27 18:17:03 +08:00
陈德
0a62485365
Add comment to source code
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-08-27 15:18:35 +08:00
Wenkai Yin
2c5b06350e
Merge pull request #5716 from reasonerjt/update-go-import-path
...
Update import path in go code
2018-08-23 19:02:50 +08:00
Daniel Jiang
dcf4e2ee78
Update import path in go code
...
vmware -> goharbor
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-08-23 17:50:53 +08:00
Steven Zou
d895ebef13
Merge pull request #5705 from steven-zou/fix_redis_parsing_issue
...
Fix the issue of parsing redis connection address in chart API
2018-08-23 15:06:08 +08:00
Steven Zou
d9256e401c
Fix the issue of parsing redis connection address in chart API
...
- update logic in func parseRedisConfig
Signed-off-by: Steven Zou <szou@vmware.com>
- Add UT case for redis addr parsing func
2018-08-23 14:03:19 +08:00
Qian Deng
dac86844e4
Add github flavered table in markdown
...
Add table style in markdown and
Fix deleted all version may cause 404
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-08-23 11:50:19 +08:00
陈德
ecadd564b1
Fix volume capacity when run in MacOS
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-08-22 17:31:07 +08:00
Qian Deng
7cf3f286ca
Merge pull request #5632 from ninjadq/fix_ui_issues
...
Fix UI related issues
2018-08-19 11:01:28 +08:00
Qian Deng
d5da3862b2
Refactor upload modal
...
Using customized button to replace file input
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-08-17 18:24:08 +08:00
Qian Deng
8cf7d4f822
Fix item number and i18n issues
...
Fix item number presentation on Group, charts, chart versions, member group add
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-08-17 16:00:49 +08:00
Daniel Jiang
257a728086
Merge pull request #5648 from ywk253100/180817_session
...
Fix "gob: name not registered for interface" error
2018-08-17 16:00:48 +08:00
Qian Deng
317a01fa99
Fix i18n translate with parameter not work problem
...
The first parameter to translate should be the i18n key
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-08-17 16:00:48 +08:00
Qian Deng
6d91a0d66e
Fix Group related issues
...
1. Fix Ldap group name to required item
2. Edit Group DN is not allowed
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-08-17 16:00:48 +08:00
Qian Deng
07da2fd5d6
Edit the wording of version
...
1. Fix word of app version on summary page
2. Fix version on version cart view
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-08-17 16:00:48 +08:00
Qian Deng
b98af169af
Fix chart upload related issues
...
1. Chart will reset when open modal
2. Empty chart shouldn't trigger upload action
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-08-17 16:00:48 +08:00
Qian Deng
4ecea1f5ad
Fix incorrect UI views when logging in with a user in the group assigned with proper role
...
This caused by project routing guard using a wrong way to get the project role info.
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-08-17 16:00:48 +08:00
Qian Deng
e5f9fe5961
Diable delete button when user not admin
...
Binding the disable propety
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-08-17 15:58:54 +08:00
Qian Deng
a8ab6e3b1f
Remove Upload Button on Chart Version List
...
There is no method to constrict which chart to upload, so remove this button
Signed-off-by: Qian Deng <dengq@vmware.com>
2018-08-17 15:58:54 +08:00
Mia ZHOU
e3a755ea14
Merge pull request #5642 from zhoumeina/pr/fix_chart_card_view_issues
...
fix issue helmchart layout related issues
2018-08-17 14:45:51 +08:00
Wenkai Yin
db844d42f6
Fix "gob: name not registered for interface" error
...
This commits fixes the "gob: name not registered for interface" error when restarting Harbor by registering models.User
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-08-16 22:31:47 +08:00
Meina Zhou
c89fcd18f5
fix issue helmchart layout related issues
...
1 Misc issues for chart repo card view
2 Create group dialog ignores the error from backend
3 The detail page of a scanned image has overlap of text fields.
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-08-16 17:43:46 +08:00
Steven Zou
199b830019
Merge pull request #5628 from reasonerjt/fix-file-traversal-job-lob
...
Validate job ID when getting job log
2018-08-15 17:22:42 +08:00
Daniel Jiang
2e4295ba52
Merge pull request #5612 from stonezdj/fix_ldap_group_admin_dn
...
Fix issue ldap_group_admin_dn doesn't take effect(master)
2018-08-15 15:42:06 +08:00
Daniel Jiang
65cf02a1d7
Validate job ID when getting job log
...
Add validation to job ID in the API to get job log in job service, to
prevent file path traversal attack.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-08-15 15:33:13 +08:00
stonezdj
764c43c995
If current user is in the group defined ldap_group_admin_dn, it doesn't have the harbor admin role.
...
The current solution only fix the /api/users/currentuser, but for /api/users/:id it can display the real information. see issue #5620
Signed-off-by: stonezdj <stonezdj@gmail.com>
2018-08-15 15:12:13 +08:00
stonezdj
865e4b04f9
user group name can not be empty
...
Signed-off-by: stonezdj <stonezdj@gmail.com>
2018-08-14 18:58:49 +08:00
wangyan
29d0d51403
Signed-off-by: wangyan <wangyan@vmware.com>
...
Add clean registry cache to gc job
To workaround the issue: https://github.com/docker/distribution/issues/2094
GC needs to clean cache before to call the docker reigstry api to delete blobs.
Otherwise, the following docker push will not be performed as docker registry
does not clean cache in GC, it thinks the image is still there, and the new
blobs will be uploaded.
2018-08-13 02:58:27 -07:00
Meina Zhou
45b11ddf6e
remove vmware info in ui
...
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2018-08-13 12:24:00 +08:00
Qian Deng
481c435c61
Merge pull request #5577 from zhoumeina/pr/fix_replication_button_disabled
...
Fix replication rule sometimes save button can not click
2018-08-10 14:20:53 +08:00
Mia ZHOU
63b64527b5
Merge pull request #5556 from zhoumeina/pr/remove_vmware_ui_change
...
UI changed after harbor moved to CNCF
2018-08-10 13:52:19 +08:00
Mia ZHOU
b0b9e29851
Fix replication rule sometimes save button can not click
...
when user create a label filter and delete it in replication rule edit dialog, the save button is not enabled.
2018-08-10 13:51:40 +08:00
Yan
9c86d0b86f
Update ldap user pwd for nightly ( #5571 )
2018-08-09 16:38:27 +08:00
Deng, Qian
e2a53c497a
Fix repo is undefined issue on chart summary ui
...
Because HTML render before component initialize, so assign value on onInit
2018-08-09 11:58:27 +08:00
Mia ZHOU
4730a131ef
UI changed after harbor moved to CNCF
...
Changes include:
1 Modify the about dialog, remove vmware copyright
2 Remove VM tag in the login page.
3 Modify "vmware harbor" to "harbor" in login page.
2018-08-08 15:41:33 +08:00
Deng, Qian
8d67330d9a
Add status to charts and versions UI
...
Add status to present if the chart or version is deprecated.
2018-08-08 15:02:18 +08:00
Deng, Qian
cff8fc52ba
Change UI about security table
...
1. Change wording from 'sign' to 'ready'
2. Provide download for prov file
2018-08-08 11:19:12 +08:00
Deng, Qian
173100be6d
Refactor Chart Summary Commands UI
...
1. Add Clipboard after command
2. Change the layout of command table
2018-08-08 11:19:12 +08:00
Deng, Qian
2e99719d07
Fix wording of group list
...
Fix i18n key in group list
2018-08-08 11:12:10 +08:00
Mia ZHOU
e2edbef3df
Refine helm chart card view
...
Changes including:
1 chart list view will have icon which from the latest version.
2 Card View will change to the option2 (large icon).
3 version list will also have icons inside the data grid.
2018-08-08 10:22:07 +08:00
Mia ZHOU
8f183c02ae
modify helm chart card view
2018-08-07 15:23:22 +08:00
Mia ZHOU
72ffa4826e
Merge pull request #5544 from zhoumeina/pr/refine_chart_detail_layout
...
Fix some layout issue in chart detail page
2018-08-07 13:49:29 +08:00
Daniel Jiang
1f39bb4f13
Merge pull request #5520 from stonezdj/duplicate_group_dn
...
Fix LDAP user group related issues
2018-08-07 13:47:55 +08:00
Mia ZHOU
207cf384af
Fix some layout issue in chart detail page
...
Refine the layout in chart detail page.
2018-08-07 12:25:37 +08:00
stonezdj
d9b4b18943
Fix LDAP group related issues
...
User groups should not have same DN
Should not import an LDAP group if there is a user group with same DN
2018-08-07 12:02:38 +08:00
Deng, Qian
637c43bef6
Fix style issues on chart detail values page
...
1. Fix margin of title
2. Fix icon size to 24px
2018-08-06 20:39:23 +08:00
Deng, Qian
d1a205581d
Update i18n file for other languege
...
Update i18n files
2018-08-06 19:53:08 +08:00
Deng, Qian
5548eba238
Refine LDAP Group UI Text
...
Refine some wording related to LDAP
2018-08-06 19:53:07 +08:00
Deng, Qian
b52987bebd
Fix Chart UI Source Repository URL redner issue
...
1. When there are multiple source repos, the table should display multiple lines
2. Wrap text when url too long
2018-08-06 19:53:07 +08:00
Deng, Qian
c04e752cf3
Fix issues on the list-view of helm chart registry
...
1. Fix The header of version column
2. Fix word of no item placeholder
3. Fix the footer of gridview
4. Fix filter of version and chart
2018-08-06 19:53:07 +08:00
Deng, Qian
91da5f015c
Abstract style to mixin
...
Abstract general style to mixin file for reuse.
2018-08-06 19:53:07 +08:00
Deng, Qian
a9792c9c9a
Back to charts page when delete whole versions
...
Jump to charts page after you delete all the versions in a chart.
Because if you not do it, page will return 404.
2018-08-06 19:53:07 +08:00
Deng, Qian
0e8e3304ab
Fix spiner related issue on helmchart ui
...
1. Fix spinner size on upload modal
2. Make the spinner into the center when chart detail page is loading
2018-08-06 19:53:07 +08:00
Mia ZHOU
9bcf33212d
Merge pull request #5537 from zhoumeina/pr/fix_helm_chart_log
...
Fix helm chart getImageLink was deleted by accident
2018-08-06 18:50:36 +08:00
Mia ZHOU
ccd5ddf307
If user upload a not valid helm chart file, UI need to show the error from backend.
...
Fix:
Modify the error handler to use the backend error instead of frontend hardcode.
2018-08-06 17:39:09 +08:00
Mia ZHOU
8d66f057cd
Fix helm chart getImageLink was deleted by accident
...
add back getImageLink function
2018-08-06 17:00:08 +08:00
Steven Zou
ecd8cc712d
Add 'Deprecated' info for the chart
...
info returned by getting /charts include 'Deprecated' field
amend error message in the access checking logic
2018-08-06 16:31:41 +08:00
Steven Zou
bc6d7b69e7
Merge pull request #5524 from steven-zou/pro_deletable_enable
...
Enhance the project deletable checking logic to include helm charts checking
2018-08-06 16:00:38 +08:00
Steven Zou
b501199033
Enhance the project deletable checking logic to include helm charts checking
...
add utility handler in chart controller to support getting charts by ns
add ut case for utility handler
update deletable checking logic in project controller
refactor project deletable test case
2018-08-06 15:23:50 +08:00
Mia ZHOU
04261687cd
Fix ldap cert verify has to align with ldap mode. should not show in other mode.
...
Fix edit group sccess message.
This pr will focus on 2 issues:
1 In configuration,
LDAP verify cert should only show in ldap mode. It should not show in database mode.
2 When user using ldap mode to login harbor. And edit a group sccessfully, the popup message shows wrong. It should show "Edit group sccess".
2018-08-06 09:43:04 +08:00
Mia ZHOU
034367f202
Merge pull request #5523 from zhoumeina/pr/error_log_fix
...
Add onError for some logo return 404
2018-08-06 09:18:06 +08:00
Yan
6ed80a370d
Fix go gas issue for chartserver ( #5522 )
...
Add the error handling to fix go gas issue "Error unhandled"
2018-08-03 19:25:39 +08:00
Mia ZHOU
4c8976da71
Add onError for some logo return 404
...
We need to set a default logo for some logo may not exsit
2018-08-03 17:51:57 +08:00
Qian Deng
0f519c9dc9
Merge pull request #5513 from ninjadq/hidden_chart_lib_without_chartmeseum
...
Hide the helmcharts tab when chart museum is not installed.
2018-08-03 05:41:06 -04:00
Wenkai Yin
5faf41e4a7
Merge pull request #5521 from wy65701436/cherry-pick-gas
...
Cherry-pick -- Fix security issue found by gas
2018-08-03 16:50:58 +08:00
wangyan
9a95f14918
Cherry-pick -- Fix security issue found by gas
2018-08-03 01:16:53 -07:00
Mia ZHOU
c6665934cd
Merge pull request #5516 from ninjadq/fix_ldap_parameter
...
Fix bug of repository can not delete on card view
2018-08-03 14:17:21 +08:00
Mia ZHOU
8319cbdc29
Merge pull request #5514 from zhoumeina/pr/fix_tooltip_content
...
Modify configuration tooltip
2018-08-03 13:54:34 +08:00
Deng, Qian
6a71188ecf
Fix bug of repository can not delete on card view
...
Fix argument types of repo delete function
2018-08-03 13:34:31 +08:00
Mia ZHOU
8e66d90904
Modify cofiguration tooltip
...
Refine the tooltip content in configuration tooltips
2018-08-03 12:55:35 +08:00
Qian Deng
4cb0a3ee52
Merge pull request #5456 from zhoumeina/pr/fix_access_level_sort
...
Fix access level can not sort
2018-08-02 22:56:56 -04:00
Deng, Qian
66d85a12b4
Hide the helmcharts tab when chart museum is not installed.
...
Add parameter for receving chartmuseum installation state.
Using that to decide the presentation of helmchart tab in project.
2018-08-03 10:56:06 +08:00
Wenkai Yin
5f64bc8548
Merge pull request #5450 from ywk253100/180801_job_status
...
Update job status when failed to submit it
2018-08-03 09:33:39 +08:00
Wenkai Yin
3031e851ea
Merge pull request #5466 from steven-zou/fix_wrong_status_of_prov
...
Fix issues described in #5464 and #5465
2018-08-02 18:49:45 +08:00
Mia ZHOU
aaf4b49564
Fix remove button not clickable
...
Remove comment
2018-08-02 16:22:53 +08:00
Steven Zou
ce52f54e29
Fix issues described in #5464 and #5465
...
return unified error format by the chart repo API
update the prov file status at anytime
2018-08-02 14:07:04 +08:00
System Administrator
54f9b60ea4
Fix access level can not sort
...
Issue description:
In project list page. User click sort according access level, it does not work.
Fix:
Remodify the compare method.
2018-08-02 13:21:45 +08:00
Deng, Qian
8feb49c64e
Feature of helm chart UI
...
1. Add Charts list view
2. Add Charts card view
3. Add Chart version list view
4. Add chart version card view
5. Add Chart Detail Summary
6. Add Chart Detail Value
6. Add Chart Detail Deps
7. Update nodeclarity Dockerfile
8. Add markdown support
9. Add package-lock file to src
2018-08-01 13:20:06 +08:00
Wenkai Yin
4ecbf3c0f5
Update job status when failed to submit it
...
Set the status of replication job to "error" when the submitting to jobservice fails
2018-08-01 10:35:01 +08:00
Mia ZHOU
67beabb364
Add ldap admin DN
...
Problem description:
currently, harbor does not support config ldap admin DN
Enhancement:
Add ldap admin dn in configuration as a optional config.
2018-07-31 16:20:26 +08:00
Qian Deng
3c0bd20d7e
Merge pull request #5439 from zhoumeina/pr/fix_new_group_disable
...
New group button should disabled when login without ldap
2018-07-31 03:30:23 -04:00
Mia ZHOU
caa98896ae
New group button should disabled when login without ldap
...
Disable "New group" button when user does not login with ldap
2018-07-31 14:19:00 +08:00
Wenkai Yin
3739a96d30
Merge pull request #5436 from reasonerjt/creation-time-sql
...
Set default creation_time and update_time at model
2018-07-31 13:51:44 +08:00
Daniel Jiang
bda0a92ea9
Merge pull request #5427 from ywk253100/180730_redirect
...
Remove the URL rewrite for docker registry request
2018-07-31 13:34:15 +08:00
Daniel Jiang
6062bf279b
Set default creation_time and update_time at model
...
This commit set the default value of creation_time and update_time to
data objects by adding `orm:add_now` annotations.
2018-07-31 12:56:14 +08:00
Mia ZHOU
1af3bcd93d
Fix Repositories card view title displayed wrong
...
Problem Description:
In the card view of repositories, if the title is long, it can not show all the text.
Fix:
Add css
overflow: hidden;
text-overflow: ellipsis;
word-wrap:break-word;
white-space: nowrap
in mixin files, and tooltip to show all the text.
2018-07-31 10:51:42 +08:00
Qian Deng
43774df6f3
Merge pull request #5426 from zhoumeina/pr/fix_remove_button_not_clickable
...
Fix remove button not clickable
2018-07-30 05:27:04 -04:00
Wenkai Yin
7e6a13915b
Remove the URL rewrite for docker registry request
...
This commit redirects the request to UI directory without URL rewrite
2018-07-30 17:24:15 +08:00
Wenkai Yin
48489bf7ae
Merge pull request #5424 from steven-zou/add_more_ut_cases
...
Add more UT cases for chart repo API controller
2018-07-30 15:20:22 +08:00
Mia ZHOU
52634dcec4
Fix remove button not clickable
...
Problem description:
In member tab, Action->remove is not clickable in production mode.
Root cause analysis:
Some style for clarity checkbox impact dropdown menu.
Fix:
We do a quick fix in member.component.scss. Set checkbox in this component
position:inherit;
This will overide the clarity original style
2018-07-30 14:01:19 +08:00
Steven Zou
34db0d9c8a
Add more UT cases for chart repo API controller
...
case for testing require access
case for testing require namespace
case for testing multipart checking
case for testing URL rewriting
2018-07-30 13:25:11 +08:00
Steven Zou
4b1f0470ca
Provide digital signature info of the related chart version
2018-07-27 15:07:22 +08:00
Wenkai Yin
2a40068d75
Fix cross slot issue of redis
...
This commit upgrdes the github.com/gocraft/work package to 0.5.1 and updates the namespace value
to fix the redis cross slot issue mentioned in #4633
2018-07-27 14:23:39 +08:00
Steven Zou
cfefcb7450
Merge pull request #5399 from steven-zou/fix_access_control_issue
...
Fix the access control checking issue
2018-07-26 15:27:30 +08:00
Mia ZHOU
4ff45b0624
Use capitalize in configuration dropdown menu
...
Problem Description:
configuration dropdown menu use all uppercase letters.
Fix:
Modify all of them in capitalize letters.
Note:Try to use css text-transform:Caplitalize but not working, if anyone know the reason, please kindly tell me.
2018-07-26 14:40:12 +08:00
Steven Zou
01fb95062c
Fix the access control checking issue
...
should check access first, then check authentication
return 401/403 accroding to the checking results properly
2018-07-26 14:28:16 +08:00
Mia ZHOU
397af582a2
Replicate project error message is not correct
...
Problem description:
when user try to new a replication rule, he need to input source project name.
In this case, if user input a project name not exist. The error message will be:"Please add a project name",
this is not accurate.
Fix:
Modify the error message to "This project is not exist".
Plus:Modify the error popup using standard tooltip component.
2018-07-26 13:37:45 +08:00
Daniel Jiang
97fb67f835
No scan all policy if Clair is not installed.
...
This commit fixes #5283 by not registering scan all policy when Harbor
is not deployed with Clair.
2018-07-25 19:52:16 +08:00
Mia ZHOU
9fba539bd4
Merge pull request #5392 from zhoumeina/new_label_fix
...
Fix configuration->label->new sometimes not enable.
2018-07-25 18:32:16 +08:00
Mia ZHOU
60f83843e3
Fix configuration->label->new sometimes not enable.
...
Problem description:
1 label enable sometimes not correct. User input good label names, submit button still disabled.
2 Some times click submit, not working.
Fix:
1 After review the new label code. It trying to use a global variable to control the progress of validation. In the progress of validation, it will disabled the submit button.
This will cause user bad experience. Just remove this logic.
2 Backend use fuzzy matching, the frontend logic did not change before. So when user already have a user name called "abcd",and then input another name called "abc" it will report duplicated name error.
This logic still need change.
3 This is the first version of refine. Can be refine again if find some other logic not correct.
2018-07-25 17:47:22 +08:00
Steven Zou
b8c7a8cb68
Merge pull request #5393 from steven-zou/fix_content_length_issue
...
Set the content length to -1 to let the reader read all the uploading…
2018-07-25 17:08:32 +08:00
Steven Zou
850af80762
Set the content length to -1 to let the reader read all the uploading contents in the request
2018-07-25 16:25:44 +08:00
Mia ZHOU
50678523c4
Notification should not hide content according to ux
...
Issue description:
Notification will hide some content when it popup.
According to ux requirement, we should make it not extend to the whole widh of UI, and should not hide the content.
Fix:
Use clarity alert-app-level style,it will show as ux design,and text in center too.
2018-07-25 11:29:08 +08:00
Steven Zou
07bfad968a
Update content length of request when rewriting the content
2018-07-24 23:10:42 +08:00
Qian Deng
7ee2e1053e
Merge pull request #5383 from zhoumeina/notification_ui_refine
...
Notification should not hide content according to ux
2018-07-24 10:00:33 -04:00
Mia ZHOU
2240693a1d
Notification should not hide content according to ux
...
Issue description:
Notification will hide some content when it popup.
According to ux requirement, we should make it not extend to the whole widh of UI, and should not hide the content.
Fix:
Modify the position from 'absolute' to 'relative', so that it will not hide the content.
2018-07-24 17:56:46 +08:00
stonezdj
9b209858f4
Ldap_group_admin_dn can not updated via rest
2018-07-24 17:47:57 +08:00
Qian Deng
eafee964c1
Merge pull request #5372 from zhoumeina/fix_configuration_button_validation
...
Fix issue install clair the first time use scan will have undefined e…
2018-07-24 02:07:59 -04:00
Mia ZHOU
19e2a9ad1b
Fix issue install clair the first time use scan will have undefined error
...
Description:
Reproduce Steps:
1 User install Clair
2 User use scan to scan the image
2 There will be a notification pop with undefined error
Root cause:
In result-bar-chart-component.ts copyValue function
this.summary.scan_status = newVal.scan_status;
It try to set scan status to summary object.
Somehow, the first time summary is undefined. It will cause this error.
Fix:
1 Do a empty check before assign value to a object.
2 Set a default value to summary.
2018-07-24 13:36:39 +08:00
silenceshell
7745b79b2e
var name should not be error ( #5332 )
...
Rename the variable names from "error" to "err"
2018-07-24 11:33:21 +08:00
Steven Zou
9f0f959749
Fix the multipart form data content missing issue by refill the content again before passing to the backend server
...
refill the multipart form data at harbor API layer
export write error functions from the chartserver package
refactor the error format to be compatiable with push plugin
2018-07-24 10:32:20 +08:00
Steven Zou
405e89158a
Merge pull request #5364 from steven-zou/fix_file_missing_issue
...
Fix the issue of returning '* file not found' error
2018-07-23 15:32:02 +08:00
Steven Zou
2f0b706f84
Fix the issue of returning '* file not found' error
...
return default empty when file is not existing
2018-07-23 14:53:40 +08:00
Daniel Jiang
b9762afbdd
Clean up vendor folder
...
Add `prune` section to Gopkg.toml to remove the unused packages from
vendor folder.
Update the reference of `semver` and `distribution` repo.
2018-07-23 14:40:25 +08:00
Steven Zou
bb380e6dbc
Merge pull request #5314 from steven-zou/chart_repo_supporting
...
Refactor chart API endpoints
2018-07-20 20:43:55 +08:00
Steven Zou
0227a1315a
Keep the chart server related configurations in adminserver
...
append chart server related config options to the supporting list of adminserver
provide chart server related config access method in the API layer
update prepare script and ui env template file to enable cache driver config for chart server API
append flag info in the systeminfo API to indicate if chart server is deployed with Harbor
refactor the response rewriting logic to return structual error object
add api init method to initilizing objects required in API handlers
chage owner of the storage folder
update offline/online package scripts in Harbor-Util.robot
2018-07-20 19:40:33 +08:00
Yan
efdb57548f
add admin job api ( #5344 )
...
It supports Harbor admin to trigger job either manual or
schedule. The job will be populated to job service to execute.
The api includes:
1. POST /api/system/gc
2, GET /api/system/gc/:id
3, GET /api/system/gc/:id/log
4, PUT/GET/POST /api/system/gc/schedule
2018-07-20 19:22:37 +08:00
Steven Zou
726d81803b
Fix conflicts in Makefiles and prepare script files with upstream
2018-07-19 03:17:05 -07:00
stonezdj
f5e82f75a7
Add SafeCast function and set default value for some sytem configure
...
Add SafeCastString, SafeCastInt, SafeCastFloat64, SafeCastBool function to check
the type matched and avoid panic in runtime
Add default value to configure settings to avoid cannot save configure
issue
2018-07-17 17:00:06 +08:00
Yan
9e65499c10
Add garbage collection job implemention, this job could ( #5268 )
...
be triggered by manual and schedule. It calls registrtctl
to do the GC job, and log the output.
2018-07-16 18:08:40 +08:00
Yan
d5b85a6748
Add the registry controller httpserver, it's responsible for controlling ( #5265 )
...
docker regsitry. This version has the API to call regsitry GC with jobservice
secret. Seprates it into a standalone container as do not want to invoke two
processes in one container.
It needs to mount the registry storage into this container in order to do GC,
and needs to copy the registry binary into it.
2018-07-16 16:50:28 +08:00
Steven Zou
b572e64a68
Refactor chart API endpoints
...
add /chartrepo after /api
add /chartrepo before /index.yaml,/:repo/index.yaml and /:repo/charts/:filename
add debug messages to the potential debug points
add more supporting mime types "multipart/form-data", "application/octet-stream" to the API endpoints
update travis file to inject ENV for UT cases of chart repo
2018-07-16 14:33:39 +08:00
Wenkai Yin
8a92019e8e
Merge pull request #5310 from reasonerjt/adminserver-update-schema
...
Let adminserver initialise the DB schema.
2018-07-16 12:52:11 +08:00
Daniel Jiang
0d6ea995e1
Let adminserver initialise the DB schema.
...
This commit make update to remove the code from ui container to init the
DB schema. As UI has dependency on admin server, so it's safe to assume
adminserver has to be ready first. Regardless the setting of the config
store of admin server, it will try to access and intialize the schema of
database.
2018-07-13 17:32:17 +08:00
Daniel Jiang
8f8a6a1fc9
Merge pull request #5304 from steven-zou/chart_repo_supporting
...
Add API routes of chart repo services in harbor API router
2018-07-13 16:55:49 +08:00
Steven Zou
3a44f76b94
Add API routes of chart repo services in harbor API router
...
add chart repo API controller
update GetChartVersion to extract repo name from the request
update the corresponding UI cases
update the chart controller initialization process
2018-07-13 16:10:46 +08:00
timchenxiaoyu
a912a55ac2
add sync registry env ( #5294 )
...
By default Harbor will call catalog API of registry and sync the result to DB, this becomes problematic when registry is configured to custom storage service, there maybe inconsistent result and the whole process may be very time consuming.
So in this commit a env var SYNC_REGISTRY is introduced if user want Harbor to sync the repo when it starts up, by default it's false.
2018-07-13 11:15:41 +08:00
Daniel Jiang
e415d56099
Merge pull request #5258 from steven-zou/chart_repo_supporting
...
Implement the API services to support chart repo functions
2018-07-11 18:46:36 +08:00
Steven Zou
6ea9291c09
Refactor code after PR reviewing
...
pass cache config to the constructor of chart cache
use break loop to instead of return in GetIndexYaml
fix typo reids to redis
pass credential to the reverse proxy and chart client via constructors
2018-07-11 17:31:34 +08:00
Steven Zou
da4359f56b
Add UT cases for the code of supporting chart repo server
...
add UT cases for cache
add UT cases for ChartOperator
add UT cases for the main API service of chart server
export some consts in the security.go of filter package to let them visible in chartserver package
2018-07-11 13:55:35 +08:00
Steven Zou
44cbb29664
Add cache support for the querying of chart details
...
support in memory cache
support redis cache
2018-07-08 11:17:55 +08:00
Steven Zou
7d782c41fc
Implement the functions of getting chart version details and chart lists
...
getting chart list returns chart list instead of map and provides total versions info
getting chart details will return dependencies and values besides the metatdata of the chart version
2018-07-06 20:53:13 +08:00
Daniel Jiang
ad7a85da51
Merge pull request #5200 from stonezdj/add_group_search_api
...
Add REST API to search LDAP by Group DN
2018-07-06 15:10:31 +08:00
Steven Zou
b65cc34c70
Implement a unified index.yaml entrypoint service to support namespace isolations
...
replace the helm package from github.com to k8s.io
implement /index.yaml service API
2018-07-05 18:07:00 +08:00
stonezdj
62acdb14f3
Add settings to define admin with LDAP group DN
2018-07-05 14:46:44 +08:00
stonezdj
2494a7aaab
Add REST API to search LDAP by Group DN
...
Used to verify and search DN when adding group member to project
2018-07-05 12:55:44 +08:00
Daniel Jiang
e1474ac50b
Merge pull request #5242 from steven-zou/chart_repo_supporting
...
Implement the related handler methods of the transparent operations
2018-07-04 21:16:07 +08:00
Steven Zou
ce4e5ac01d
Implement the related handler methods of the transparent operations based on proxy
...
support index file
support object downloading
support health checking
support related manipulating operations except getting chart version
2018-07-03 21:36:20 +08:00
Steven Zou
6dfccc7dea
Merge pull request #5074 from ninjadq/ldap_search_ui
...
Add LDAP search UI
2018-07-03 15:30:18 +08:00
Deng, Qian
72dfdd552f
Add ldap serach
...
1. Add group management
2. Add rewrite import user to member ui
3. Add import group to member
4. Add new items in configuration page
2018-07-03 14:00:59 +08:00
Daniel Jiang
b02d100fb5
Merge pull request #5234 from steven-zou/chart_repo_supporting
...
Define the related handlers to handler the requests of chart server/repo
2018-07-03 11:05:11 +08:00
Deng, Qian
edbe2fe620
Update migrator to 1 6 0
...
1. Add new alembic_pg folder for postgres
2. Add migration file for 1.6.0
3. Update version to 1.6.0
4. update migrator dockerfile
2018-07-02 21:23:47 +08:00
Steven Zou
54a0d10994
Define the related handlers to handler the requests of chart server/repo
...
add chartserver directory to put chart server code
add controller to coordinate the flow
add base/repo/manipulation handlers to handle requests
add operator to parse more details of chart version
call dep ensure
2018-07-02 19:34:04 +08:00
Daniel Jiang
1afb09b6cf
Merge pull request #5194 from ywk253100/180626_search
...
Fix bug in search API
2018-06-29 21:13:09 +08:00
Qian Deng
3ba302622c
Merge pull request #5213 from vmware/replication_by_label_ui
...
Label filter UI for replication
2018-06-29 07:44:26 -04:00
Daniel Jiang
aef3213dfa
Merge pull request #5190 from stonezdj/reload_config
...
Fix issue that harbor tile can not save customized settings
2018-06-29 13:04:36 +08:00
Daniel Jiang
c9b1962b1e
Initialise Harbor DB schema in Harbor UI/adminserver container
...
This commit fixes #5040 , the harbor-db image will only contain empty
databases, and harbor ui container will use migrate tool to run initial
SQL scripts to do initialization. This is helpful for the case to
configure Harbor against external DB or DBaaS like RDS for HA deployment
However, this change will results some confusion as there are two tables
to track schema versions have been using alembic for migration, for this
release we'll try to use alembic to mock a `migration` table during
upgrade so the migrator will be bypassed, in future we'll consider to
consolidate to the golang based migrator.
Another issue is that the UI and adminserver containers will access DB
after start up in different congurations, can't ensure the sequence, so
both of them will try to update the schema when started up.
2018-06-28 16:22:53 +08:00
stonezdj
72e9b22e10
Fix issue that harbor tile can not save customized settings
2018-06-28 16:20:10 +08:00
Wenkai Yin
982760a132
Fix bug in search API
...
Refactor the logic of search API to fix bug mentioned in issue #5156 and #3838
2018-06-27 12:51:08 +08:00
Wenkai Yin
66811b3289
Merge pull request #5160 from ywk253100/180619_response_code
...
Parse the error got from jobservice, fix #5047
2018-06-22 17:17:26 +08:00
stonezdj
d6a4d79a03
Handle Invalid syntax and not found error
2018-06-20 14:27:29 +08:00
Wenkai Yin 79628
078360a021
Parse the error got from jobservice, fix #5047
...
Parse the error got from jobservice, and return the corresponding HTTP code if it's a HTTP error to caller
2018-06-19 13:30:06 +08:00
Daniel Jiang
1fae22add1
Merge pull request #5157 from pengpengshui/repLabelNew
...
Add replication rule label filter function #4861
2018-06-16 04:40:56 +08:00
pfh
ffbcdf62a0
Modify small bugs about code
2018-06-15 17:46:00 +08:00
pfh
963830b9d1
Add replication rule label filter
2018-06-15 11:03:47 +08:00
clouderati
60e88351b6
Small change to clarify wording deployment security toggle setting in project(s).
2018-06-14 17:37:05 -04:00
Wenkai Yin
952bba6d6c
Merge pull request #5141 from ywk253100/180613_label_resource
...
Provide an API to return the resources that a label is referenced by
2018-06-14 12:56:17 +08:00
Wenkai Yin 79628
3298c05157
Provide an API to return the resources that a label is referenced by
...
The API returns the resources that the label is referenced by. The resources contain only replication policies for now.
2018-06-14 11:52:19 +08:00
stonezdj
f025f28d12
If the LDAP user group already exist return 409 when onboarding an LDAP group
...
Do not adding the LDAP user group again.
2018-06-12 19:17:02 +08:00
Daniel Jiang
255a6d6f95
Merge pull request #5070 from ywk253100/180601_label_fuzzy_match
...
Fix #4742 : fuzzy match label name
2018-06-12 14:39:35 +08:00
pfh
6f8ad44d5c
set default border when add label without color
2018-06-11 16:58:32 +08:00
Qian Deng
9b5cd7d046
Merge pull request #5115 from pengpengshui/replicaton
...
Add name validation when creat new replication rule #5050
2018-06-11 04:03:44 -04:00
Qian Deng
7cbd3a4a96
Merge pull request #5110 from pengpengshui/leftNav
...
Hidden pwd button if auth_mode is not db_auth
2018-06-11 03:09:42 -04:00
pfh
2366f6a39f
Add name validate when creat new replication rule
2018-06-11 11:34:17 +08:00
Daniel Jiang
7254b438ca
Merge pull request #5109 from ywk253100/180607_label
...
Soft delete label
2018-06-07 22:56:43 -07:00
Qian Deng
19e9fbf446
Merge pull request #5026 from pengpengshui/spelling
...
Modify spelling about 'serverity' to severity #4983
2018-06-08 01:47:30 -04:00
Wenkai Yin 79628
0c56493fb6
Soft delete label
...
Modify the deletion of label to soft deletion, in this way the names of deleted labels referenced by replication rules can be shown to users
2018-06-07 17:14:12 +08:00
pfh
2c2211dcfb
Hidden pwd button if auth_mode is not db_auth
2018-06-07 14:20:12 +08:00
Deng, Qian
e1814597d8
Change the admin rename UX
...
Change the rename operation from double click icon to click button
2018-06-05 22:52:45 +08:00
pfh
81271c8e31
Mofify admin can't change existing pwd
2018-06-04 16:08:46 +08:00
pfh
4cca83ee9a
Merge upstream master
2018-06-01 16:57:41 +08:00
Yan
6d800cabbd
enable migrator to support 1.5.0 migration from mysql to pgsql ( #5029 )
...
This commit is to enable data migrator to support migrates data
from mysql to pgsql, this is a specific step for user to upgrade
harbor across v1.5.0, as we have move harbor DB to pgsql from
1.5.0. It supports both harbor and notary db data migration,
and be split into two steps with dependency.
It also fix issue #4847 , add build DB migrator in make process.
2018-06-01 14:58:43 +08:00
Wenkai Yin 79628
07c092c9be
Fix #4742
...
This commit provides the support of fuzzy matching for label name when listing labels
2018-06-01 07:38:21 +08:00
pfh
8b2b3b1594
Add func about after create label close create panel
2018-05-31 15:07:48 +08:00
pfh
76cbe3b5d2
Modify tag detail alert when without clarity
2018-05-31 14:30:57 +08:00
Qian Deng
82b57971c0
Merge pull request #5057 from pengpengshui/projectcheck
...
Fix create project name doesn't have tooltip #5000
2018-05-30 23:25:27 -04:00
Qian Deng
aec9fabefb
Merge pull request #5051 from pengpengshui/colorpanel
...
Add dropdown for label color panel and modify color disappear on Mac
2018-05-30 23:23:14 -04:00
pfh
56e438b9c3
Fix create project name doesn't tooltip
2018-05-30 18:32:02 +08:00
pfh
1ec0ea01dc
Add func about admin reset user`s pwd
2018-05-30 16:29:43 +08:00
pfh
73c23dbe45
add dropdown for color panel and delete type=button
2018-05-30 11:05:01 +08:00
Daniel Jiang
2f4950b80c
Merge pull request #5034 from ywk253100/180524_relativeurl
...
Fix replication issue when the remote registry enables relativeurls
2018-05-25 19:33:29 +08:00
Daniel Jiang
4eec586425
Merge pull request #5030 from ywk253100/180522_change_password
...
Update change password API
2018-05-25 11:05:12 +08:00
Wenkai Yin 79628
29a4a3335e
Fix replication issue when the remote registry enables relativeurls
...
The location header returned by the remote registry contains no scheme and host parts if "relativeurls" is enabled,
this commit fix it by adding them at the beginning of location.
2018-05-24 15:34:31 +08:00
Steven Zou
9943c0cd07
Merge pull request #5021 from pengpengshui/asynctask
...
Add async task progress and delete dialog task progress #4371
2018-05-23 15:20:13 +08:00
Wenkai Yin 79628
76274dbf84
Update change password API
...
Modify the changing password API to support that admin user can change the password of normal users without old password
2018-05-22 19:02:20 +08:00
pengpengshui
9989a67d09
Merge pull request #5022 from pengpengshui/hightlights
...
Modify leftnav and tab have no hightLight about #4996
2018-05-22 18:12:00 +08:00
pfh
1121c8a76b
Add async task progress and delete dialog task progress #4371
...
norm code
2018-05-22 14:42:06 +08:00
pfh
9992241163
Modify spelling about serverity
2018-05-22 14:21:45 +08:00
Wenkai Yin 79628
ab41977dcf
Log error message in server side
...
Record the errors which are only returned to frontend in the server side for easy debugging.
2018-05-22 11:36:08 +08:00
stonezdj(Daojun Zhang)
2844d137d3
Merge pull request #5020 from stonezdj/fix_login_500
...
Fix error 500 with error username
2018-05-21 21:14:30 +08:00
pfh
a51af4a1c5
Modify leftnav and tab have no hightLight
2018-05-21 18:57:36 +08:00
Steven Zou
fb33f83b9a
Merge pull request #5003 from ywk253100/180517_label_filter_api
...
Add label filter in replication policy API
2018-05-21 18:55:02 +08:00
stonezdj
a1b668921b
Fix error 500 with error username
2018-05-21 18:23:10 +08:00
pengpengshui
d16cddda04
Merge pull request #4986 from pengpengshui/leftNav
...
Filter out existimg members when add a new member #4364
2018-05-21 18:19:39 +08:00
pfh
14614b3572
Filter out existimg members when add a new member #4364
2018-05-21 17:27:20 +08:00
Wenkai Yin 79628
ad62fffb0e
Add label filter in replication policy API
...
The label filter can be used to filter images when do the replication, this commit provides the filter in replication policy
2018-05-21 15:01:17 +08:00
Daniel Jiang
c2c667c6d6
Merge pull request #4976 from ywk253100/180514_parallel_pull_tag
...
Request repository and tag list in parallel
2018-05-21 15:00:44 +08:00
Deng, Qian
b3749bd4a4
Deploy button send event based on latest tag
...
If latest tag exist sent provision event. Otherwise send Add additional info event.
2018-05-17 17:07:27 +08:00
stone
d3930ae17c
Put user info into session ( #4885 )
...
Fix the following issues.
1) GroupList is not found in SecurityContext user info
2) Retrieve multiple memberof information from LDAP.
3) If user is in two groups with guest, administrator role separately, display the max privilege role.
2018-05-17 16:23:51 +08:00
Steven Zou
6a7ba4609f
Merge pull request #4977 from ninjadq/fix_observable_issues
...
Fix 'xxx' is not a function err
2018-05-17 14:07:19 +08:00
Deng, Qian
a8025d2b32
Fix 'xxx' is not a function err
...
Because new version of rxjs you need import function manually, update code to avoid related errors.
Issues #4923 #4904 are caused by this problem.
2018-05-16 14:00:19 +08:00
Steven Zou
3917512d3e
Merge pull request #4962 from ywk253100/180509_label_filter
...
Add label filter to filter chain
2018-05-15 20:12:34 +08:00
Wenkai Yin 79628
c1ebf0ba1e
Add label filter to filter chain
...
Label filters are used to filter the resources according to the labels, adding the filters to the chain to enable the function.
2018-05-15 19:19:01 +08:00
Deng, Qian
43c8e9f589
Fix all tslint warnings
...
1. Fix tslint warnings
2. Add tslint to travis
2018-05-15 16:28:23 +08:00
stonezdj
44006247a6
Fix issue of import LDAP user 404 message
...
Some user requires return json format message in 404
2018-05-15 16:05:11 +08:00
Wenkai Yin 79628
6243fed8f5
Request repository and tag list in parallel
...
When using S3 or others as the registry storage, the request for repository and tag list may be very slow. This commit fixes this by parallel requesting the resources.
2018-05-15 15:47:32 +08:00
Daniel Jiang
b537ea96f3
Merge pull request #4925 from stonezdj/fix_ldap_import_404
...
Fix issue of import LDAP user 404 message
2018-05-14 16:15:49 +08:00
stonezdj
931e17330c
Fix issue of import LDAP user 404 message
...
Some user requires return json format message in 404
2018-05-11 15:33:35 +08:00
Steven Zou
9b01d3a2f6
Merge pull request #4899 from ninjadq/mv_string_to_html_n_css
...
Fix legacy issues that html and css file are written on ts file.
2018-05-11 15:22:37 +08:00
Deng, Qian
282a63f57f
Fix legacy issues that html and css file are written on ts file.
...
Currently, our html and css files are written as string on .ts file. This pr is to solve the legacy issue.
2018-05-10 18:39:48 +08:00
Daniel Jiang
cf79e9ee8d
Merge pull request #4910 from vmware/fix_none_zero_issue
...
Improve the error handling capabilities of job service
2018-05-10 16:41:49 +08:00
Steven Zou
4db708096b
Add retry for getting configs from admin server when doing job conetxt initialization
2018-05-10 15:26:59 +08:00
Steven Zou
f7bc467c99
Return none zero code when job service exit with error
...
replace fmt.Println/logger.Errorf with logger.Fatal(f)
2018-05-10 14:44:04 +08:00
stone
7863d7ffa0
Delete debug.test
2018-05-10 14:32:47 +08:00
Daniel Jiang
3ca439c71a
Sync user info after UAA user is logged in ( #4900 )
...
This is a fix for #4895 .
Currently the user's UserId and HasAdminRole data will not be populated correctly after a user in UAA is logged in.
2018-05-10 11:49:13 +08:00
Deng, Qian
2ef1a92a93
Add ng-packagr to packaging harbor-ui npm repo
...
Using ng-packagr to build and publish npm repo
2018-05-09 10:59:22 +08:00
pfh
8f90e9c987
Add multiple filter options for log #4360
2018-05-08 16:02:53 +08:00
pfh
2f6dcce0d5
rewrite layout about filter by label and tesecase #4809
2018-05-08 12:10:24 +08:00
pfh
5006693fd6
Modify global search project and adjust selected label position
2018-05-04 10:27:40 +08:00
stone
e6a52f49a4
Merge pull request #4722 from stonezdj/security_context_for_group3
...
Update security context for assign role to project group member
2018-05-03 17:17:41 +08:00
stonezdj
b8a48d0326
Update security context for assign role to project group member
...
The project list will contain all public projects, user is a member of this project, or user is in the group which is a member of this projects.
Change the behaviour of user roles, if the user is not a member of this project, then return the user's groups role of current project
2018-05-03 16:49:16 +08:00
Steven Zou
9746f9f2a9
Merge pull request #4838 from ninjadq/cherry_pick_hardcode_url_back_master
...
Fix URL hardcode on replication service
2018-05-03 16:01:54 +08:00
Qian Deng
9e1e66beeb
Merge pull request #4839 from pengpengshui/language
...
Modify issue about cannot switch language to franch
2018-05-03 15:57:19 +08:00
Deng, Qian
8d79747085
Fix URL hardcode on replication service
...
Url hardcoded in replication service. This commit is to fix it.
2018-05-03 13:46:17 +08:00
pfh
80ff0e4553
Modify issue about cannot switch to franch
2018-05-02 15:48:55 +08:00
pfh
ad74297a14
Modify harbor-ui version
2018-05-02 15:41:47 +08:00
pfh
08f750b04d
Merge remote-tracking branch 'upstream/master' into labelFilter
2018-05-02 14:14:15 +08:00
Wenkai Yin
e5efa034a8
Fix bug #4819 : the scheduled rule can not be removed
...
When checking the jobs of the rule which are going to be deleted, only get the transfer and delete jobs.
2018-04-28 18:43:49 +08:00
Deng, Qian
6ba6dcd1d5
Fix bugs that some place hardcode url addr
...
In the repositories and projects service some url is hardcoded.
2018-04-28 01:07:15 +08:00
Deng, Qian
18c8686d57
Fix bugs infinity copy of reponame and auth
...
1. everytime click deploy or add additional info will add a prefix before reponame
2. add constrait on button on cardview
2018-04-28 00:50:57 +08:00
stone
413ae9a8cb
Merge pull request #4808 from stonezdj/master
...
Merge pull request #4798 from stonezdj/release-1.5.0
2018-04-27 18:44:05 +08:00
pfh
30fe99790b
Modify images filter with label issue
2018-04-27 17:42:58 +08:00
Yan
ae257433cc
Fully migrate harbor db to postgresql ( #4689 )
...
* Merge harbor db to postgres
2018-04-27 02:27:12 -07:00
Wenkai Yin
f77e4167ac
Merge pull request #4802 from ywk253100/180427_label_db
...
Modify unique constraint of table harbor_label
2018-04-27 17:10:05 +08:00
stone
68cf63bbef
Merge pull request #4798 from stonezdj/release-1.5.0
...
Return 404 if user is not found
2018-04-27 17:01:17 +08:00