Skip to content

fix(upload): rescan automatic uploads immediately after resuming - #18042

Open
xO-ox-ai wants to merge 1 commit into
nextcloud:masterfrom
xO-ox-ai:fix/resume-auto-upload-scan
Open

xO-ox-ai wants to merge 1 commit into
nextcloud:masterfrom
xO-ox-ai:fix/resume-auto-upload-scan

Conversation

@xO-ox-ai

@xO-ox-ai xO-ox-ai commented Nov 12, 2026 •

Copy link
Copy Markdown

Resuming globally paused uploads restarts queued transfers but leaves automatic folder rescanning on its previous schedule. Reset the existing unique periodic rescan when uploads resume, making its first run eligible immediately and restarting the 15-minute cycle.

The rescan reuses existing per-folder scheduling: running, queued, or retrying folder work is retained, including work requested by file-change notifications. Network, charging, and power-saving restrictions still apply. Normal application startup preserves the existing periodic schedule.

Validation:

  • 10 unit tests passed, covering pause/resume menu behavior, immediate scan eligibility, startup scheduling, and retaining scheduled folder work.
  • Android lint: 0 errors, 0 warnings; Kotlin formatting check passed.
  • Detekt completed with its two existing findings. SpotBugs checked the affected compiled classes via a Java argument file; no findings in the changed scheduling or menu logic.

AI assistance: Codex (GPT-6) assisted with implementation and tests.

Reset the unique periodic auto-upload coordinator after global uploads resume so the first rescan is eligible immediately. Preserve startup scheduling and reuse existing per-folder work to avoid duplicate scans or interrupting active uploads and retries.

Assisted-by: Codex:GPT-6
Signed-off-by: Li Wei <caeser222000@sohu.com>
@xO-ox-ai
xO-ox-ai force-pushed the fix/resume-auto-upload-scan branch from f85d22d to 7f7f336 Compare November 12, 2026 14:35
@xO-ox-ai
xO-ox-ai marked this pull request as ready for review November 12, 2026 14:41

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant