[BW-DL-07] Add explicit discard-partial recovery action #22
Loading…
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?
Classification
Candidate follow-up from #15 / GitHub PR #106.
Problem / opportunity
BookWave deliberately preserves
.partfiles after ordinary download failures and pauses so Retry/Resume can continue instead of starting over. That is correct. But a listener may eventually decide a stuck/abandoned partial is not worth keeping and want to reclaim the space.The underlying capability already exists as
OfflineFiles.discardPartials(...); it is not currently a first-class recovery decision in the Downloads UI.User value
A listener can reclaim resumable partial-download space deliberately without deleting already-committed files or the whole download record, while normal Retry continues to preserve work already done.
Scope
.partdata.Explicitly out of scope
Dependencies
Architecture seams affected
OfflineFiles.discardPartialsdomain capability.Server / API assumptions
None. A later Retry uses the existing download path/server media endpoints as usual.
Storage / migration implications
None expected. The existing capability deletes
.partfiles and resets their recorded downloaded byte count while retaining the manifest/claim.The implementation must confirm the current state transition after discard is unambiguous; if the manifest remains Failed/Paused, the UI should still offer the correct next action rather than implying bytes remain.
Privacy / security
No media identity should leak through title-hidden rows. The confirmation may show reclaimed byte count but not hidden title/author information.
Automated-test level
.partfiles are deleted.Device / platform acceptance
Estimated effort
Small to Medium.
Implementation risk
Medium because it intentionally destroys resumable user data, even though it does not delete committed media.
Recommended sequence
After #18. It does not need to block BW-DL-04 or BW-DL-05.
Acceptance criteria
.partdata is removed; committed media stays.Links