-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to name a version #35160
Allow to name a version #35160
Conversation
Yeah, since automatic expiration of versions is handled by the S3 platform itself, |
cc @mejo- as I remember there also was a groupfolder-like version backend in collectives. |
regarding S3, this would only be handled in S3 if the app https://github.com/nextcloud/files_versions_s3 |
we will also need to figure out how to backfill old versions that existed before this feature on-demand would mean that if there are no entries in the table for a given file id, we check on disk and do a one-shot scan to populate the table for said file id |
How about we keep the current logic and only use the table to store versions with a name ? Something like: versions = existingLogicToGetVersionsFor(fileId)
namedVersions = newLogicToGetNamedVersionsFor(fileId) // so we just add this line
versions = merge(version, namedVersions) // and this line
return versions In practice: |
ef378f4
to
22b5f09
Compare
After discussion, let's load all data about a version on demand, ie. when the user opens the sidebar or during expiration. |
apps/files_versions/lib/Migration/Version1020Date20221114144058.php
Outdated
Show resolved
Hide resolved
7c49481
to
ab9c02f
Compare
22b5f09
to
29415e4
Compare
29415e4
to
551c83c
Compare
0446371
to
e9b97ed
Compare
e04f3e6
to
317ba46
Compare
655e2c4
to
37e3886
Compare
Changed base to include #35080 as discussed |
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
a41af23
to
552f5b0
Compare
nextcloud/server#35160 Signed-off-by: Louis Chemineau <[email protected]>
nextcloud/server#35160 Signed-off-by: Louis Chemineau <[email protected]>
hello @artonge |
Did the admin one, but forgot the user doc Admin: nextcloud/documentation#9618 |
Done
oc_files_versions
table withid
,file_id
?,version_id
,metadata
metadata = JSON<fileId, timestamp>
tuplesfiles_versions/lib/Storage.php
files_versions_S3
andgroupfolders
implementation as Carl raise some concernsTODO
Follow up
files_versions_S3
andgroupfolders
Screenshots
Screencast
Screencast.from.2022-11-21.17-36-10.webm
Need #34769