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 versionsIn 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 <louis@chmn.me>
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: Louis Chemineau <louis@chmn.me>
a41af23 to
552f5b0
Compare
nextcloud/server#35160 Signed-off-by: Louis Chemineau <louis@chmn.me>
nextcloud/server#35160 Signed-off-by: Louis Chemineau <louis@chmn.me>
|
hello @artonge |
|
Did the admin one, but forgot the user doc Admin: nextcloud/documentation#9618 |
Done
oc_files_versionstable withid,file_id?,version_id,metadatametadata = JSON<fileId, timestamp>tuplesfiles_versions/lib/Storage.phpfiles_versions_S3andgroupfoldersimplementation as Carl raise some concernsTODO
Follow up
files_versions_S3andgroupfoldersScreenshots
Screencast
Screencast.from.2022-11-21.17-36-10.webm
Need #34769