Repository navigation
[PB-7100] refactor: stop deleting the remote folder when disabling a backup - #546
Conversation
Replaces the GET /folders/{uuid}/tree call in the disable flow with
GET /folders/{uuid}/stats. If the stats request fails the backup is kept.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Disabling a backup now only marks it as disabled in the local config,
matching the Windows app. This removes the GET /folders/{uuid}/tree call
from the disable flow without needing a replacement endpoint.
|



What is Changed / Added
In this pull request 2 things are being done:
Previously, the client downloaded the whole folder tree with
GET /folders/{uuid}/treeand moved the backup folder to the trash if it was empty.Now We have removed both steps so the disable flow no longer makes any request to the server and is no backup is being trashed when disabling it. We took this decision so that it follows the same business logic of the windows client, check the reference here in disableBackup
This is the first of a few smaller PRs that replace #519.
Why
GET /folders/{uuid}/treeis being deprecated because large trees were causing out of memory errors on the backend, and it will start returning 410 Gone in 2.7.2. Rather than moving the empty check to another endpoint, we dropped it so that disabling a backup behaves the same as in the Windows app, where it never deletes anything on the server. An empty backup folder left behind is harmless, and it is still removed when the user deletes the backups from that device.Summary by CodeRabbit