Skip to content

feat: implement task patching functionality#1267

Merged
monkeyWie merged 3 commits into
mainfrom
feat/patch_task
Feb 6, 2026
Merged

feat: implement task patching functionality#1267
monkeyWie merged 3 commits into
mainfrom
feat/patch_task

Conversation

@monkeyWie
Copy link
Copy Markdown
Member

@monkeyWie monkeyWie commented Feb 2, 2026

Fixed: #1223 #658

  • Added Patch method in Downloader to modify task-specific data.
  • Introduced PatchTask API endpoint to handle patch requests.
  • Created tests for patching tasks, including success and not found scenarios.
  • Updated Flutter UI to support pending URL updates and user prompts for task updates.
  • Enhanced HTTP header management in the UI for task updates.
  • Added new translations for update-related UI elements.

- Added `Patch` method in `Downloader` to modify task-specific data.
- Introduced `PatchTask` API endpoint to handle patch requests.
- Created tests for patching tasks, including success and not found scenarios.
- Updated Flutter UI to support pending URL updates and user prompts for task updates.
- Enhanced HTTP header management in the UI for task updates.
- Added new translations for update-related UI elements.
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 2, 2026

Codecov Report

❌ Patch coverage is 76.66667% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.78%. Comparing base (6de63c3) to head (5858fb9).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/download/downloader.go 36.84% 9 Missing and 3 partials ⚠️
internal/protocol/http/fetcher.go 67.74% 5 Missing and 5 partials ⚠️
pkg/rest/api.go 66.66% 4 Missing and 1 partial ⚠️
internal/test/httptest.go 91.66% 3 Missing and 1 partial ⚠️
internal/protocol/bt/fetcher.go 88.46% 1 Missing and 2 partials ⚠️
pkg/base/model.go 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1267      +/-   ##
==========================================
+ Coverage   73.69%   73.78%   +0.08%     
==========================================
  Files          47       47              
  Lines        5973     6110     +137     
==========================================
+ Hits         4402     4508     +106     
- Misses       1165     1186      +21     
- Partials      406      416      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@monkeyWie monkeyWie added the enhancement New feature or request label Feb 2, 2026
@monkeyWie monkeyWie merged commit 3eb6df5 into main Feb 6, 2026
12 checks passed
@monkeyWie monkeyWie deleted the feat/patch_task branch February 6, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[请求]请问能不能做一个允许一个下载任务更新链接的功能

1 participant