Repository navigation
Conversation
butonic
marked this pull request as draft
September 24, 2026 11:36
butonic
marked this pull request as ready for review
September 24, 2026 11:43
butonic
marked this pull request as draft
September 24, 2026 14:46
Member
Author
|
needs to take #424 into acccount |
butonic
force-pushed
the
port-409
branch
2 times, most recently
from
September 28, 2026 12:58
669fdc3 to
20bd381
Compare
butonic
marked this pull request as ready for review
September 28, 2026 15:16
butonic
marked this pull request as draft
September 28, 2026 16:39
Member
Author
|
I need to revisit this ... |
butonic
force-pushed
the
port-409
branch
2 times, most recently
from
September 29, 2026 09:51
4330983 to
24d9605
Compare
butonic
force-pushed
the
port-409
branch
7 times, most recently
from
October 1, 2026 07:57
2eb06b7 to
50dbc8f
Compare
fschade
approved these changes
Oct 1, 2026
Add functionality to revert a node to its previous state and to delete a specific revision, inspired by owncloud#409 and adapted to the posix (.oc-nodes) layout of our decomposedfs fork: - Add Node.RevertUpload(ctx, versionID) and Node.DeleteRevision(ctx, versionID) to both decomposedfs copies. RevertUpload reverts the upload that created the given revision: it restores the revision onto the node (blob metadata + mtime) under the node's metadata lock and removes the revision, including its metadata sidecars. DeleteRevision deletes a revision and returns its blob id so the caller can delete the blob; an empty versionID targets the node's current revision - the latest stored revision is restored (or the node purged when there is none) and the processing flag is removed, unstalling the node. - Add a DeleteRevision postprocessing event. A given timestamp deletes exactly that revision - file, metadata sidecars and its own blob - which can also be used to implement retention rules by emitting the event from a cron job or housekeeping service. A nil timestamp targets the node's current revision (revert to the pre-upload state) and only applies while the node is stuck in processing, so a redelivered event is a no-op instead of consuming ever older revisions. - Wire upload.Cleanup in both copies to derive the versionID from session metadata and delegate to Node.RevertUpload. This also fixes the antivirus postprocessing delete path on posix, where the glob-based lookup of the original port never matched. - Fix the CS3 DeleteFileVersions paths to delete the revision node's own blob and metadata sidecars instead of the live file's blob, by delegating to Node.DeleteRevision. - Consume reverted revisions fully (data file + metadata sidecars) instead of leaking them, and stop upload Finalize from recreating a duplicate revision when the node already contains the upload's own content (e.g. after a newer upload was reverted). Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
butonic
marked this pull request as ready for review
October 2, 2026 07:01
This was referenced Oct 15, 2026
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.
opencloud pr with cli command changes will follow