mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 14:35:52 +03:00
[PR #683] [MERGED] fix: Ensure bookmark files are correctly downloaded before deleting current ones #728
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#728
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-shiori/shiori/pull/683
Author: @Monirzadeh
Created: 7/28/2023
Status: ✅ Merged
Merged: 8/20/2023
Merged by: @fmartingr
Base:
master← Head:cache-recovery📝 Commits (10+)
7aa37d2generate ebook get dstPath91937b3Archive and ebook can recover if download faildc12e3f2recover thumb if download faild379a3bathumb image create just if image processing is sucssesful42afd23create epub in tmp if it sucssesful copy to destination624a746archive file create in tmp if it successful move to destination2ec8e5emove to destination as function44b9a13update ebook download api and remove .epub from file name622ff9dreport faild item to userbf31c3bnot show dialog if error not happen📊 Changes
11 files changed (+682 additions, -267 deletions)
View changed files
📝
internal/core/ebook.go(+34 -21)📝
internal/core/ebook_test.go(+159 -203)📝
internal/core/processing.go(+78 -28)➕
internal/core/processing_test.go(+349 -0)📝
internal/view/assets/js/page/home.js(+30 -9)📝
internal/webserver/handler-api.go(+25 -5)📝
internal/webserver/handler-ui.go(+1 -1)➕
testdata/big_image.png(+0 -0)➕
testdata/favicon.png(+0 -0)➕
testdata/favicon.svg(+6 -0)➕
testdata/medium_image.png(+0 -0)📄 Description
This pull request should recover old version of Archive and e-book if download Processes failed.
It should close #634
fix #524
TODO:
processing.go87.7%Things need more time:
should we recover thumb image? What if thumb image remove from source like #524. How we should detect that
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.