dragonflyoss / Dragonfly2

Dragonfly is an open source P2P-based file distribution and image acceleration system. It is hosted by the Cloud Native Computing Foundation (CNCF) as an Incubating Level Project.
https://d7y.io
Apache License 2.0
2.3k stars 293 forks source link

feat: support searching task by url for GetTask and DeleteTask #3607

Closed gaius-qi closed 1 month ago

gaius-qi commented 1 month ago

Description

Related Issue

Motivation and Context

Screenshots (if appropriate)

Types of changes

Checklist

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 46.42857% with 15 lines in your changes missing coverage. Please review.

Project coverage is 35.80%. Comparing base (bad6972) to head (502baef). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
manager/handlers/job.go 0.00% 6 Missing and 2 partials :warning:
manager/job/task.go 60.00% 4 Missing and 2 partials :warning:
scheduler/job/job.go 0.00% 1 Missing :warning:
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3607/graphs/tree.svg?width=650&height=150&src=pr&token=PUICJYSAT7&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss)](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3607?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) ```diff @@ Coverage Diff @@ ## main #3607 +/- ## ========================================== + Coverage 35.77% 35.80% +0.02% ========================================== Files 339 339 Lines 37308 37326 +18 ========================================== + Hits 13348 13364 +16 + Misses 23125 23123 -2 - Partials 835 839 +4 ``` | [Flag](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3607/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3607/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) | `35.80% <46.42%> (+0.02%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files with missing lines](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3607?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) | Coverage Δ | | |---|---|---| | [pkg/idgen/task\_id.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3607?src=pr&el=tree&filepath=pkg%2Fidgen%2Ftask_id.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-cGtnL2lkZ2VuL3Rhc2tfaWQuZ28=) | `79.06% <100.00%> (ø)` | | | [scheduler/job/job.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3607?src=pr&el=tree&filepath=scheduler%2Fjob%2Fjob.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL2pvYi9qb2IuZ28=) | `0.00% <0.00%> (ø)` | | | [manager/job/task.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3607?src=pr&el=tree&filepath=manager%2Fjob%2Ftask.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-bWFuYWdlci9qb2IvdGFzay5nbw==) | `69.69% <60.00%> (-2.40%)` | :arrow_down: | | [manager/handlers/job.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3607?src=pr&el=tree&filepath=manager%2Fhandlers%2Fjob.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-bWFuYWdlci9oYW5kbGVycy9qb2IuZ28=) | `55.55% <0.00%> (-4.45%)` | :arrow_down: | ... and [5 files with indirect coverage changes](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3607/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss)