aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #46710 from ↵Stephan Orbaugh2024-08-061-1/+1
|\ | | | | | | | | nextcloud/artonge/fix/use_timestamp_instead_of_revision fix: Use timestamp instead of revision id in files_versions metadata API
| * fix: Use timestamp instead of revision id in files_versions metadata APILouis Chemineau2024-07-241-1/+1
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix: add a try and catch for delete versioninggreta2024-07-251-2/+7
| | | | | | | | Signed-off-by: greta <gretadoci@gmail.com>
* | fix(files_versions): avoid unintentional skipping of expirationcarhe2024-07-251-1/+1
|/ | | Signed-off-by: carhe <carstenherrmann@web.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-0239-785/+89
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(files_versions): Add listener and interfaces to allow versions ↵Louis Chemineau2024-03-269-2/+325
| | | | | | migration across storages Signed-off-by: Louis Chemineau <louis@chmn.me>
* Merge pull request #44362 from ↵Louis2024-03-221-6/+14
|\ | | | | | | | | nextcloud/artonge/feat/check_permissions_of_all_nodes_for_versions Check permissions of all accessible file for versions
| * Merge pull request #44297 from nextcloud/fix/forbid-tagging-readonly-filesLouis Chemineau2024-03-211-6/+14
| | | | | | | | | | | | Forbid tagging readonly files Signed-off-by: Louis Chemineau <louis@chmn.me>
* | refactor(files_versions): Rename MetadataFileEvents to VersionAuthorListenerLouis Chemineau2024-03-212-4/+4
|/ | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Merge pull request #43613 from nextcloud/version-owner-fallbackJohn Molakvoæ2024-03-161-0/+10
|\
| * fix: fallback from guessing the owner from path in versioningRobin Appelman2024-03-071-0/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | chore(files_versions): Use new metadata API for versionsLouis Chemineau2024-03-139-183/+53
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix: fixed stylistic errorsEduardo Morales2024-03-114-6/+6
| | | | | | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* | fix(files_version): deprecated INameableVersionEduardo Morales2024-03-118-13/+16
| | | | | | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* | feat: exposed metadata column to frontendEduardo Morales2024-03-114-3/+23
| | | | | | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* | feat: added backend metadata interface, allows JSON storageEduardo Morales2024-03-116-4/+159
| | | | | | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* | feat: added metadata event listenerEduardo Morales2024-03-112-0/+69
| | | | | | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* | Revert "files_versions: add missing null check"Louis2024-03-081-5/+0
|/
* fix(files_versions): Add missing null checkVarun Patil2024-03-071-0/+5
| | | | Signed-off-by: Varun Patil <varunpatil@ucla.edu>
* fix(files_versions): Improve files version listingLouis Chemineau2024-03-062-0/+40
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Merge pull request #43471 from nextcloud/cache-path-by-idRobin Appelman2024-03-053-9/+6
|\ | | | | Cache path by id
| * perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-043-9/+6
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #43898 from ↵John Molakvoæ2024-03-041-43/+50
|\ \ | |/ |/| | | | | nextcloud/artonge/fix/improve_files_versions_listing Improve files version listing
| * fix(files_versions): Improve files version listingLouis Chemineau2024-02-291-43/+50
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix(files_versions): Do not create a new version for empty filesLouis Chemineau2024-02-291-2/+3
|/ | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Check permissions when labeling a versionLouis Chemineau2024-02-211-0/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Check node permissions when restoring a versionLouis Chemineau2024-02-211-0/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Check node permissions when deleting a versionLouis Chemineau2024-02-211-1/+29
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat: rename users to account or personVincent Petry2024-02-131-2/+2
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Revert "Reapply "Cleanup versions entity in during versions:clean command""Louis Chemineau2024-02-082-20/+0
| | | | This reverts commit ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* Reapply "Cleanup versions entity in during versions:clean command"Louis Chemineau2024-02-072-0/+20
| | | | This reverts commit 17ee5968263a5bb96f4ca1d50845ad06066f8062.
* Revert "Cleanup versions entity in during versions:clean command"Louis Chemineau2024-02-012-20/+0
| | | | This reverts commit 1ec9f3e5f9dd84723008137af73cf365beaf4d1b.
* Cleanup versions entity in during versions:clean commandLouis Chemineau2024-02-012-0/+20
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore: Fix missing template parameter for IEventListenerCôme Chilliet2024-01-303-0/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* handle storage not available when expiring versionsRobin Appelman2024-01-241-0/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Improve path resolution in files_version hooksLouis Chemineau2024-01-171-2/+10
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Properly fetch version from shared files by accessing the owner storage ↵Julius Härtl2023-12-061-0/+16
| | | | | | version Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix(files_versions): Explicitly check for user or owner before call ↵Git'Fellow2023-11-271-20/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | getUserFolder Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Fix typo Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Fix Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Fix Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Fix Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Optimize DI Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Switch to DI Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> userSession does not contain null Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Restore phpdoc annots Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-238-20/+15
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Don't call getUid() on nullGit'Fellow2023-11-161-2/+6
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix: Delete ghost versions of non-existing filesGit'Fellow2023-10-281-1/+4
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Merge pull request #39695 from fsamapoor/refactor_files_version_app_commandsCôme Chilliet2023-09-213-102/+64
|\ | | | | Refactors files version app commands.
| * Apply suggestions from code reviewFaraz Samapoor2023-09-212-2/+1
| | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
| * Uses early returns.Faraz Samapoor2023-08-032-37/+40
| | | | | | | | | | | | To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
| * Refactors files_version app commands.Faraz Samapoor2023-08-033-64/+24
| | | | | | | | | | | | To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* | Move module versions management logic out of main logicLouis Chemineau2023-09-075-29/+122
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix: Also cleanup version metadata if expiringJulius Härtl2023-08-141-0/+15
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* files_versions: Add OpenAPI specjld31032023-07-132-5/+13
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Enable all files versions features when groupfolders is enabledLouis Chemineau2023-07-051-4/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat(ocp): More specific type for ICapabilities::getCapabilitiesChristoph Wurst2023-07-031-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>