Skip to content

refactor(storage): remove the legacy upload path from the drivers - #949

Merged
butonic merged 2 commits into
port-746from
port-725
Nov 4, 2026
Merged

butonic merged 2 commits into
port-746from
port-725

Conversation

@butonic

@butonic butonic commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Last PR of the upload coordinator stack, see #934.

The coordinator owns the whole upload flow now, so the drivers drop their session stores, InitiateUpload, Upload, ListUploadSessions and the tus data store methods. The DisableVersioning aspect goes too. Mostly deletions (~5800 lines).

Requires the OpenCloud side (wiring the coordinator, listing upload sessions through it) before the reva bump: opencloud-eu/opencloud#3839

The tip of this stack has the same changes as #922.

Review focus:

  • nothing outside pkg/upload still needs the removed driver methods
  • pkg/storage/storage.go / uploads.go: the remaining driver interface

Review commit by commit: the first commit is the generic change, the following ones adapt the pkg decomposedfs fork and posix.

stacked on #948

Assisted by Claude Code (claude-opus-5-5): it adapted the changes, split them into this stack and wrote this description.

@butonic
butonic added this pull request to stack #950 October 29, 2026 14:05
@butonic butonic added the Type:Maintenance E.g. technical debt, packaging, etc. label Oct 29, 2026
@butonic
butonic removed this pull request from stack #950 October 29, 2026 14:19
@butonic
butonic added this pull request to stack #952 October 29, 2026 14:19
@butonic
butonic force-pushed the port-725 branch 2 times, most recently from b328f2c to 49ba454 Compare October 30, 2026 10:16
@butonic
butonic force-pushed the port-725 branch 2 times, most recently from acba2d3 to e85e498 Compare November 3, 2026 15:19
@butonic butonic changed the title port removing the legacy upload path refactor(storage): remove the legacy upload path from the drivers Nov 3, 2026
@butonic
butonic force-pushed the port-725 branch 4 times, most recently from a56126a to 41ea735 Compare November 4, 2026 07:56
f-firas and others added 2 commits November 4, 2026 10:27
The UploadSessionResolver interface stays: the coordinator implements
it for the tus handler. The posix driver and the other decomposedfs
copy are adapted in a follow-up commit.
The coordinator now owns the whole upload flow, so the pkg fork and
posix drop their own session store, the tus data store methods,
InitiateUpload, Upload, ListUploadSessions and ResolveUpload. The
DisableVersioning aspect goes too: only that session store read it.

The pkg fork's upload specs drive the uploads through a coordinator,
including the over-quota upload that finishes through tus with a 507.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic
butonic merged commit 1168881 into workpackages Nov 4, 2026
19 checks passed
@butonic
butonic deleted the port-725 branch November 4, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants