Repository navigation
Fix Upload Cleanup Process - #403
Merged
Merged
Conversation
There was a problem hiding this comment.
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
unmarkPostprocessingparameter - Adds a new
CleanUploadevent 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
force-pushed
the
FixCleanUpload
branch
from
September 25, 2025 13:18
7f97e8d to
a3aadf0
Compare
2403905
approved these changes
Sep 25, 2025
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes https://kiteworks.atlassian.net/browse/OCISDEV-231
Reva part of owncloud/ocis#11557