Commit Graph

11828 Commits

Author SHA1 Message Date
stonezdj
97a64d551d Update usergroups API to support search by group_name
Add group_name parameter to GET usergroups API
  Related to issue #16408
  UI should also switch from search api to usergroups list api

Signed-off-by: stonezdj <stonezdj@gmail.com>
2022-03-30 10:59:56 +08:00
Chenyu Zhang
374ec5793e
Merge pull request #16605 from chlins/fix/project-creation-validation
fix: return BAD_REQUEST when validate project metadata
2022-03-30 09:55:19 +08:00
Lars Lehtonen
3fcefc8bda
controller/blob: fix dropped test error
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
2022-03-29 10:34:03 -07:00
chlins
4af3725cc2 fix: return BAD_REQUEST when validate project metadata public value error
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-03-29 14:57:21 +08:00
stonezdj(Daojun Zhang)
1449988353
Delete unused files and functions (#16599)
testing/apitest/apilib is not used after harbor 2.4 refactor
 no testcase removed

Signed-off-by: stonezdj <stonezdj@gmail.com>
2022-03-29 14:19:36 +08:00
Chenyu Zhang
e01a31c433
Merge pull request #16596 from chlins/fix/project-creation-validation
fix: validate project metadata public value
2022-03-29 14:16:33 +08:00
Chenyu Zhang
fe3c0bd183
Merge pull request #16597 from chlins/migrations/correct-project-metadata-public-value
migrations: correct project metadata public value
2022-03-29 14:15:06 +08:00
chlins
f7d10474d1 migrations: correct project metadata public value
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-03-28 15:17:20 +08:00
chlins
7f75a20bdb fix: validate project metadata public value
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-03-28 15:06:27 +08:00
Shijun Sun
a0fcb91492
Remove state restrictions for gc log button (#16585)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-03-25 19:45:29 +08:00
Shijun Sun
29eaaf1b53
Upgrade UI dependencies (#16586)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-03-25 19:45:12 +08:00
Yang Jiao
d2a62cf688
Merge pull request #16588 from YangJiao0817/add-install-dateutil-module
Add python-dateutil module in api e2e image
2022-03-25 18:10:48 +08:00
Yang Jiao
9917d987a4 Add python-dateutil module in api e2e image
Because swagger_client adds dependency on python-dateutil module

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-03-25 05:07:07 +00:00
Yang Jiao
382e77bc97
Merge pull request #16579 from YangJiao0817/fix-webhook-case
Update webhook testcase xpath from disable to deactivate
2022-03-25 09:26:18 +08:00
Yang Jiao
76e781c446 Update webhook testcase xpath from disable to deactivate
Synchronous modification due to UI changes

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-03-24 06:38:24 +00:00
Chenyu Zhang
fbef3336ab
Merge pull request #16546 from chlins/feat/harbor-session-provider
feat: implement beego session provider
2022-03-24 14:07:58 +08:00
chlins
dbb8859ad8 feat: implement beego session provider
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-03-24 10:33:21 +08:00
Yang Jiao
21effeeb5b
Merge pull request #16571 from YangJiao0817/update-setup-gcloud
Modify setup-gcloud from master to v0
2022-03-23 15:43:43 +08:00
Yang Jiao
c3e912cb80 Modify setup-gcloud from master to v0
Adjust it because upstream made it, For more information, please see: https://github.com/google-github-actions/setup-gcloud/issues/539

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-03-23 06:20:23 +00:00
bmfp
7bee632406
update french translation (#16570)
Signed-off-by: molinber <bertrand.molin@credit-agricole.net>

Co-authored-by: molinber <bertrand.molin@credit-agricole.net>
2022-03-23 11:31:08 +08:00
Wang Yan
7531168c92
update log with more inclusive language (#16569)
Use the deactive for instead in the error log

Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-03-23 10:56:00 +08:00
孙世军
f37f93b735
Add secret to download file when refreshing robot secret (#16564)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-03-22 17:21:46 +08:00
孙世军
33da8e2bcc
Improve UI with more inclusive words (#16548)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-03-22 17:21:10 +08:00
Chenyu Zhang
84523a2da5
Merge pull request #16494 from alrs/q-err
lib/q: fix dropped test error
2022-03-21 17:01:29 +08:00
孙世军
c898a411d1
Update push and pull command for helm (#16552)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-03-18 19:41:59 +08:00
Wang Yan
ed1f4ab6fb
enhance health validataion (#16549)
Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-03-18 18:36:50 +08:00
孙世军
c54f51d4d8
Add cosign icon (#16531)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-03-17 14:36:05 +08:00
Wang Yan
7cb5c34f7e
add cosign signature icon (#16533)
Return icon message for UI to render

Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-03-17 11:08:39 +08:00
孙世军
4cec345a45
Fix duplicate labels issue (#16527)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-03-16 16:07:29 +08:00
Shengwen YU
1a9de7510c
Merge pull request #16521 from zyyw/enable-1-skipped-conformance-test
fix: enable one skipped conformance test
2022-03-16 15:10:19 +08:00
Chenyu Zhang
846dc94398
Merge pull request #16492 from chlins/refactor/replace-core-redis-lib
refactor: import go-redis to core as replacement of redigo
2022-03-15 21:43:38 +08:00
chlins
5be0b93caa refactor: import go-redis to core as replacement of redigo
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-03-15 20:44:44 +08:00
Shengwen Yu
b48619be0f fix: enable one skipped conformance test
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2022-03-15 14:36:45 +08:00
sluetze
7dc25cc6dd
Updated translation for 2.5 (#16509)
Signed-off-by: sluetze <13255307+sluetze@users.noreply.github.com>
2022-03-15 09:33:54 +08:00
Wang Yan
ef991ae0c0
add transaction for artifact delete (#16506)
Add transaction for artifact deletion, given API has the transaction when to call artifact controller but other object may not, for example jobservice job.
Here, force add the tx to ensure all the things can be rolled back.

Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-03-11 14:40:55 +08:00
chlins
4f2cd939ee fix: check the existence of the tag before updating pull time
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-03-11 09:40:53 +08:00
Yang Jiao
6673841526
Merge pull request #16493 from YangJiao0817/update_trivy_testcase
Update trivy test case
2022-03-10 16:06:27 +08:00
Yang Jiao
d65aa10ccd
Merge pull request #16502 from YangJiao0817/replication-index
Add replication index testcase
2022-03-10 16:05:04 +08:00
Yang Jiao
6a2ab99127 Add replication index testcase
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-03-10 06:59:29 +00:00
孙世军
b5a05dd1a2
Update readme (#16501)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-03-10 14:54:43 +08:00
Yang Jiao
c947128849
Merge pull request #16148 from YangJiao0817/add-onlinepackage2gcs
Add online latest installer package
2022-03-10 14:36:58 +08:00
孙世军
38babc1c71
Improve style and correct typos (#16498)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-03-10 14:23:15 +08:00
Simon Alling
47effb0533
docs: Link to latest/edge docs instead of 2.0.0 (#14945)
I cloned the repo, clicked a link to the build guideline in
`CONTRIBUTING.md` and copied the "Build, install and bring up Harbor
without Notary" command:

    make install GOBUILDIMAGE=golang:1.12.5 COMPILETAG=compile_golangimage

Being unfamiliar with the Harbor project, I didn't realize that said
command was for building version 2.0.0 and that I had cloned a newer,
incompatible version (2.3.0), so I just ran it and was met by errors:

    […]
    # github.com/goharbor/harbor/src/lib/errors
    ../lib/errors/errors.go:26:7: undefined: errors.As
    ../lib/errors/errors.go:28:7: undefined: errors.Is
    note: module requires Go 1.15
    # github.com/hashicorp/go-multierror
    […]
    make: *** [Makefile:369: compile_core] Error 2

It took me a while to figure out what the problem was; then I replaced
`2.0.0` with `latest` in the URL and found this command instead:

    make install GOBUILDIMAGE=golang:1.13.8 COMPILETAG=compile_golangimage

_Et voilà_ – it worked!

I figured `latest` (which currently redirects to 2.2.0) would make the
most sense for end users and `edge` (which doesn't redirect) for
contributors.

Signed-off-by: Simon Alling <alling.simon@gmail.com>
2022-03-10 13:12:55 +08:00
孙世军
d05eb5ef4a
Add a new robot permission and sort permissions (#16487)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-03-10 10:16:42 +08:00
Yang Jiao
d1cf06a5aa Update trivy test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-03-10 01:28:28 +00:00
Lars Lehtonen
d3f7ddfe3a
lib/q: fix dropped test error
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
2022-03-09 10:03:48 -08:00
Wang Yan
7d9a1172ab
bump up base version to v2.6 (#16481)
Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-03-09 10:37:26 +08:00
Shengwen YU
75c26fd378
Merge pull request #16478 from zyyw/fix-conformance-test-0307
fix: resolve conformance test failed issue
2022-03-08 17:22:45 +08:00
Yang Jiao
912c40eab9
Merge pull request #16486 from YangJiao0817/trivy-upgrade2v0.24.2
Bump TRIVYVERSION to v0.24.2 and bump TRIVYADAPTERVERSION to v0.26.0
2022-03-08 16:13:11 +08:00
Shengwen Yu
4def5b9dd6 fix: conformance test
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2022-03-08 15:24:04 +08:00