aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib/Versions
Commit message (Collapse)AuthorAgeFilesLines
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-201-1/+1
| | | | 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-252-6/+6
| | | | 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-0214-256/+28
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(files_versions): Add listener and interfaces to allow versions ↵Louis Chemineau2024-03-266-2/+144
| | | | | | 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-134-150/+34
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: fixed stylistic errorsEduardo Morales2024-03-112-3/+3
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* fix(files_version): deprecated INameableVersionEduardo Morales2024-03-114-6/+8
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* feat: exposed metadata column to frontendEduardo Morales2024-03-111-1/+9
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* feat: added backend metadata interface, allows JSON storageEduardo Morales2024-03-114-3/+139
| | | | 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-232-4/+2
| | | | | 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-073-2/+93
| | | | 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>
* fix: catch ManuallyLockedException and use app contextMax2023-05-031-1/+50
| | | | | | | | | | | | The files_lock app may throw ManuallyLockedExceptions when attempting to revert a file that is currently opened. This would prevent the user from rolling back a opened file. Text and Richdocuments handle changes of the file while editing. Allow reverting files even when they are locked by these apps and let the apps handle the conflict. Signed-off-by: Max <max@nextcloud.com>
* Merge pull request #36690 from nextcloud/bugfix/noid/rollback-hookJulius Härtl2023-04-142-14/+27
|\
| * fix: Check return type on rollbackJulius Härtl2023-03-131-5/+8
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * 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>
| * tests(files_versions): Tear down fs to clear mount cache before testingJulius Härtl2023-03-131-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * fix: Make sure that rollback hook is triggered on all version backendsJulius Härtl2023-03-131-1/+7
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix return type of methods returning false on errorCôme Chilliet2023-04-031-1/+1
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Document that size may be a float in new class VersionEntityCôme Chilliet2023-02-072-5/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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-263-1/+53
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Support getting and patching version-labelLouis Chemineau2023-01-265-23/+173
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-047-14/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix mismatching docblock return typesChristoph Wurst2020-03-061-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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-057-11/+42
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* allow non integer version idsRobin Appelman2019-06-045-9/+9
| | | | | | | 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-213-12/+45
| | | | | | 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-017-0/+553
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>