aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib/Versions/LegacyVersionsBackend.php
Commit message (Collapse)AuthorAgeFilesLines
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-3/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(Files): Handle getOwner() returning falsefix/storage/get-owner-falseprovokateurin2024-09-171-0/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-4/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #46887 from nextcloud/fix/versions-catch-insertion-errorJohn Molakvoæ2024-08-141-1/+21
|\
| * fix(files_versions): Catch constraint error on version insertionCôme Chilliet2024-07-301-1/+21
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | feat: Make `ISharedStorage` public API and reuse where possibleFerdinand Thiessen2024-08-121-4/+3
|/ | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-021-20/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(files_versions): Add listener and interfaces to allow versions ↵Louis Chemineau2024-03-261-1/+74
| | | | | | migration across storages Signed-off-by: Louis Chemineau <louis@chmn.me>
* 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>
* chore(files_versions): Use new metadata API for versionsLouis Chemineau2024-03-131-62/+16
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat: added backend metadata interface, allows JSON storageEduardo Morales2024-03-111-1/+31
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* Merge pull request #43471 from nextcloud/cache-path-by-idRobin Appelman2024-03-051-2/+1
|\ | | | | Cache path by id
| * perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-2/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(files_versions): Improve files version listingLouis Chemineau2024-02-291-43/+50
|/ | | | 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>
* 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>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+0
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Move module versions management logic out of main logicLouis Chemineau2023-09-071-1/+35
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix initialisation of versions in the DBLouis Chemineau2023-05-251-4/+27
| | | | | | Broken after https://github.com/nextcloud/server/pull/36690 Signed-off-by: Louis Chemineau <louis@chmn.me>
* don't re-get fileinfo for versioned file if it's not sharedRobin Appelman2023-03-131-13/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Handle empty files in version creation logicLouis Chemineau2023-01-261-9/+7
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Allow to delete a version through DAVLouis Chemineau2023-01-261-0/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Support getting and patching version-labelLouis Chemineau2023-01-261-20/+82
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #18231 from nextcloud/fix/shared_version_restoreRoeland Jago Douma2019-12-091-1/+1
|\ | | | | Fix restoring shared versions
| * Fix restoring shared versionsRoeland Jago Douma2019-12-051-1/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Update license headersChristoph Wurst2019-12-051-2/+8
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* allow non integer version idsRobin Appelman2019-06-041-1/+1
| | | | | | | currently version ids are timestamps, but for storage provided versions this is not always the case and they might be strings Signed-off-by: Robin Appelman <robin@icewind.nl>
* add way for version backends to programmatically specify if they should be usedRobin Appelman2019-05-211-0/+5
| | | | | | this allows for backends that should only be used if specific conditions are met Signed-off-by: Robin Appelman <robin@icewind.nl>
* Allow shared versions again in legacy backendRoeland Jago Douma2019-01-251-2/+15
| | | | | | | | To make sure that the versions in the legacy backend are shared again we have to check the storage of a file. Since all shared files are still on the owners storage. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* modular versions apiRobin Appelman2018-11-011-0/+105
Allows apps to register version backends for storage types The existing versions backend is wrapped in a "legacy" backend. Signed-off-by: Robin Appelman <robin@icewind.nl>