Commit Graph

11654 Commits

Author SHA1 Message Date
Yang Jiao
96cb84aec6
[cherry-pick]Add Retain image last pull time UI test case (#18696)
Add Retain image last pull time UI test case

Fix #18690

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-19 11:04:41 +08:00
Yang Jiao
6f51863c2f
[cherry-pick]Add Retain image last pull time API test case (#18691)
Add Retain image last pull time API test case

Fix #18618

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-19 11:04:26 +08:00
Yang Jiao
31baf3141e
[cherry-pick]Fix setup-gcloud fails when building package (#18683)
Fix setup-gcloud fails when building package

Fix #18681

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-16 16:34:56 +08:00
Chlins Zhang
48a2061d0b
fix: remove the 2.7.3 migration sql (#18658)
Signed-off-by: chlins <chenyuzh@vmware.com>
2023-05-09 16:50:24 +08:00
Yang Jiao
1ff9031cdf
Bump up version to v2.8.1 (#18657)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-09 16:04:02 +08:00
Yang Jiao
4e806ddf99
Refresh base images on release-2.8.0 (#18655)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-09 13:59:33 +08:00
MinerYang
4af542d6d0
bump golang 1.20.4 on release-2.8.0 (#18648)
Signed-off-by: yminer <yminer@vmware.com>
2023-05-09 11:09:09 +08:00
Chlins Zhang
4f6efeb3d1
[cherry-pick] fix: improve the performance of list artifacts (#18639)
fix: improve the performance of list artifacts

1. Change the query for listing tasks of scan which can use the db
   index.
2. Add the gin index for task.extra_attrs.report_uuids

Fixes: #18013

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-05-05 14:05:46 +08:00
Shengwen YU
a1e8914f2f
fix: update TRIVYVERSION=v0.40.0 & TRIVYADAPTERVERSION=v0.30.11 (#18622)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-04-29 12:57:59 +08:00
MinerYang
405f975eab
[cherry-pick]allow redis password safe special characters on release-2.8.0 (#18587)
allow redis password safe special characters

Signed-off-by: yminer <yminer@vmware.com>

string and None type conversion
2023-04-24 09:52:33 +08:00
Yang Jiao
3c5cb274ec
[cherry-pick]Add Job Service Dashboard Workers testcase (#18581)
Add Job Service Dashboard Workers testcase

Fix #17949

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-23 21:13:51 +08:00
Yang Jiao
1247578b27
[cherry-pick]Fix setup docker error (#18584)
Fix setup docker error

Fix this error[https://github.com/goharbor/harbor/actions/runs/4776991336/jobs/8492390908]

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-23 19:26:47 +08:00
Shijun Sun
3b1c3c168b
[Cherry-pick]Add missing i18n key-value for helm chart (#18579)
Add missing i18n key-value for helm chart
1.Fixes #18572

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-04-23 15:03:25 +08:00
Yang Jiao
8aac52ace4
[cherry-pick]Add Job Service Dashboard Schedules testcase (#18557)
Add Job Service Dashboard Schedules testcase

Fix #17949

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-20 11:12:06 +08:00
MinerYang
35b81c819a
bump golang.org/x/net && helm.sh/helm/v3 on release-2.8.0 (#18546)
bump up golang.org/x/net to v0.9.0 on release-2.8.0

Signed-off-by: yminer <yminer@vmware.com>

bump helm.sh/helm/v3 v3.11.3
2023-04-18 19:18:25 +08:00
Chlins Zhang
89ef156d09
[cherry-pick] fix: update stopped execution status immediately instead of async update (#18528)
fix: update stopped execution status immediately instead of async update

Update the stopped execution status immediately becasue the user
experience is not good if wait long time when stop or reschedule a job.

Fixes: #18526

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-13 17:55:36 +08:00
Chlins Zhang
47f70cba86
[cherry-pick] fix: clean the redis if the execution is not found (#18519)
fix: clean the redis if the execution is not found

Delete the execution outdated status key in the redis when the execution
is not found.

Fixes: #18511

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-13 10:55:26 +08:00
Shijun Sun
9ea2d3cbd9
[Cherry-pick]Synchronize text modification of quota tooltip to all the i18n files (#18520) 2023-04-12 10:55:08 +03:00
Yang Jiao
0b66d3e765
Refresh base images on release-2.8.0 (#18516)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-12 15:48:29 +08:00
Orlix
83662ee9cc
Reword quotas for 2.8 (#18513)
Reword quota definitions based on user input

Fixes: https://github.com/goharbor/harbor/issues/17545

Signed-off-by: OrlinVasilev <ovasilev@vmware.com>
2023-04-12 11:49:03 +08:00
Shengwen YU
6a9b706eda
[Cherry-pick] feat: update TRIVYVERSION=v0.39.0 & TRIVYADAPTERVERSION=v0.30.10 (#18502)
feat: update TRIVYVERSION=v0.39.0 & TRIVYADAPTERVERSION=v0.30.10

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-04-11 09:38:53 +08:00
Chlins Zhang
735f800fd6
[cherry-pick] fix: fix error bitsize of jobservice reaper scan locks (#18493)
fix: fix error bitsize of jobservice reaper scan locks

Change the bitSize from 16 to 64 in the jobservice reaper, the 16 is too
small when the redis cursor over the max value of int16.

Fixes: #18486

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-11 09:34:16 +08:00
MinerYang
e20b05475f
bump golang 1.20.3 on release-2.8.0 (#18495)
Signed-off-by: yminer <yminer@vmware.com>
2023-04-10 09:27:11 +08:00
Yang Jiao
9eecd36879
[cherry-pick]Update UI testcases (#18490)
Update UI testcases

1. Update copy test case to add retries
2. Updata P2P Preheat test case to waiting
3. Update the Replication new rule button xpath

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-07 17:22:29 +08:00
Chlins Zhang
df1ce0f8c6
[cherry-pick] fix: fix the regexp of execution status outdate key (#18482)
fix: fix the regexp of execution status outdate key

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-05 13:53:28 +08:00
Yang Jiao
1c551ada70
Refresh base images on release-2.8.0 (#18477)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-04 18:37:11 +08:00
Chlins Zhang
72a6ef2514
style: adjust the style of migration SQL (#18475)
Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-04 17:37:27 +08:00
Chlins Zhang
62bb56daf6
refactor: refresh the execution status in async mode (#18434)
Refactor the logic for updating the status of execution when receiving
the hook from jobservice, avoid the optimistic lock due to the multiple
tasks update one execution by refreshing the status asynchronously. But
still retain the old way by specifying the flag from ENV.

Fixes: #17584

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-04 16:37:37 +08:00
Shengwen YU
1e884c58c2
feat: update TRIVYVERSION=v0.38.2 & TRIVYADAPTERVERSION=v0.30.9 (#18473)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-04-04 15:25:17 +08:00
Wang Yan
60d9664cbc
fix accessory replication issue (#18471)
Fixes #18404
Support multiple level accessories replication.

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-04-04 12:46:46 +08:00
MinerYang
de20659da5
bump golang 1.20.2 (#18469)
Signed-off-by: yminer <yminer@vmware.com>
2023-04-04 10:59:16 +08:00
Chlins Zhang
a7cef5e24f
fix: wrap schedule/exec/task creation as orm tx (#18458)
Wrap orm tx when the scheduler try to create the task because submit job
maybe failure depends on the jobservice.

Fixes: #18452

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-04 08:42:18 +08:00
Chlins Zhang
02c51c6b70
fix: correct the retention webhook payload (#18462)
Fix the incorrect number of total and retained in the retention webhook
payload, and completes the deleted_artifacts field.

Fixes: #18428

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-03 17:51:02 +08:00
Shijun Sun
1499faf67d
Update styles for UI according to the designer's suggestions (#18463)
1. extend the width for event type label
2. add quotes for Retain image last pull time to make it more understandable

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-04-03 16:47:21 +08:00
Yang Jiao
f5be644d35
Update UI test cases (#18470)
1. Update replication role testcase
2. Update job service dashboard testcase

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-03 16:01:51 +08:00
Chlins Zhang
ca9e2d2f07
fix: generate uuid as CloudEvents id and add additional requestid (#18451)
1. Change the the value of CloudEvents id from requestid to uuid
2. Add additional requestid to trace to event

Fixes: #18448

Signed-off-by: chlins <chenyuzh@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2023-04-03 12:02:19 +08:00
Wang Yan
fddfaa7ba5
fix copy artifact issue (#18460)
To enable the middleware to save the project_blob data, make sure to set the accessories options to true when handling the artifact copy.

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-04-03 10:58:17 +08:00
Chlins Zhang
cb0749c7ab
fix: add default payload_format for http type webhook (#18445)
1. Add migration SQL to handle the lost payload format for old policies.
2. Set payload format to 'Default' if not specified for http webhook in the API handler.
3. Fix the migration sql of notification_job

Fixes: #18401, #18453

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-02 15:33:33 +08:00
Chlins Zhang
5d953b48b6
fix: escape the event data for slack webhook payload (#18424)
Escape the event data of slack webhook as original payload is invalid
when send to slack.

Fixes: #18423

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-03-31 17:05:10 +08:00
Shijun Sun
95972ba693
Add new app level warning message (#18449)
1. Show a app level warning if there is a stuck job
2. Chang `Replication finished` to `Replication status changed`

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-31 13:08:57 +08:00
Yang Jiao
a95808c120
Update webhook and repliation element xpath (#18456)
Update webhook xpath
Update replication xpath

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-03-31 11:00:16 +08:00
Wang Yan
f63865d207
fix the copy artifact issue (#18441)
support copy artifact with multipe levels of accessories.

Signed-off-by: wang yan <wangyan@vmware.com>
2023-03-30 02:04:22 +08:00
Shijun Sun
d22c94b4fa
Remove markdown pipe for webhook payload data (#18439)
1. Fixes #18435

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-29 12:38:32 +08:00
Chlins Zhang
6e9f72315f
fix: fix the invalid jobid for scan data export (#18398)
Change the JobId param type from int to string, use int will bring some
problems for encode/decode type mismatch which generate the invalid
repository name.

Fixes: #18380

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-03-29 10:29:08 +08:00
Shijun Sun
9e0e8e066b
Add copy digest button for accessories (#18433)
1.Fixes #18406

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-28 20:37:44 +08:00
Shijun Sun
9b593550ab
Upgrade @clr/angular and @clr/ui to 15.0.3 (#18427)
1.Fixes #18422
2. Upgrade Clarity to 15.0.3 to apply the fix for #18422

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-28 19:38:12 +08:00
Shijun Sun
e5e61d4eaa
Correct a grammatical error (#18431)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-28 18:05:22 +08:00
Shengwen YU
208b7f4cb0
fix: add remove chartmuseum notice message (#18426)
Co-authored-by: Wang Yan <wangyan@vmware.com>
Co-authored-by: Orlix <OrlinVasilev@users.noreply.github.com>
2023-03-28 12:16:17 +03:00
Wang Yan
1bb3914de4
fix referrers api response issue (#18430)
1, add fitler artifactType to header when the api is called with filter
2, give an empty json body on non aritfact scenario
3, give an empty array on non accessory scenario
4, fix the artifact type filter issue

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-03-28 13:51:37 +08:00
stonezdj(Daojun Zhang)
088d18bccf
Fix sql error in FixDanglingStateExecution (#18411)
Fix sql error in fixDanglingStateExecution

  fixes #18408

Signed-off-by: stonezdj <daojunz@vmware.com>
2023-03-28 12:57:02 +08:00