Skip to content

Fix Upload Cleanup Process - #403

Merged
kobergj merged 1 commit into
owncloud:mainfrom
kobergj:FixCleanUpload
Sep 25, 2025
Merged

kobergj merged 1 commit into
owncloud:mainfrom
kobergj:FixCleanUpload

Conversation

@kobergj

@kobergj kobergj commented Sep 25, 2025

Copy link
Copy Markdown
Collaborator

@kobergj
kobergj requested a review from Copilot September 25, 2025 10:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the upload cleanup process to consolidate cleanup logic within the session objects themselves rather than having it distributed across different components. The changes remove redundant code and fix cleanup parameter passing.

  • Consolidates cleanup logic by moving functionality from store to session objects
  • Updates cleanup method signature to include an unmarkPostprocessing parameter
  • Adds a new CleanUpload event type for handling upload cleanup operations

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pkg/storage/utils/decomposedfs/upload/upload.go Updates cleanup method calls and signature, moves postprocessing unmarking logic into the Cleanup method
pkg/storage/utils/decomposedfs/upload/store.go Removes the store-level Cleanup method and moves import statement
pkg/storage/utils/decomposedfs/upload/session.go Simplifies Purge method to call Cleanup instead of duplicating logic
pkg/storage/utils/decomposedfs/node/node.go Moves import statement for better organization
pkg/storage/utils/decomposedfs/decomposedfs.go Updates cleanup calls and adds handling for new CleanUpload event
pkg/storage/uploads.go Updates Purge interface to remove error return
pkg/events/postprocessing.go Adds new CleanUpload event type
changelog/unreleased/fix-upload-cleanup.md Documents the bugfix

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Signed-off-by: Julian Koberg <[email protected]>
@kobergj
kobergj merged commit 04fa359 into owncloud:main Sep 25, 2025
@kobergj
kobergj deleted the FixCleanUpload branch September 25, 2025 13:47
butonic added a commit to opencloud-eu/reva that referenced this pull request Sep 24, 2026
…gnature

Required after cherry-picking owncloud#403 which changed Purge to not return an error.
butonic added a commit to opencloud-eu/reva that referenced this pull request Sep 24, 2026
Port of owncloud#403 to the second decomposedfs implementation:
- move postprocessing unmark into session Cleanup (new unmarkPostprocessing param)
- Purge now delegates to Cleanup; add infoPath helper
- remove store-level Cleanup; call session.Cleanup directly from Postprocessing
- handle new events.CleanUpload event in Postprocessing and register it
butonic added a commit to opencloud-eu/reva that referenced this pull request Sep 24, 2026
…gnature

Required after cherry-picking owncloud#403 which changed Purge to not return an error.
butonic added a commit to opencloud-eu/reva that referenced this pull request Sep 24, 2026
Port of owncloud#403 to the second decomposedfs implementation:
- move postprocessing unmark into session Cleanup (new unmarkPostprocessing param)
- Purge now delegates to Cleanup; add infoPath helper
- remove store-level Cleanup; call session.Cleanup directly from Postprocessing
- handle new events.CleanUpload event in Postprocessing and register it
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.

3 participants