aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib
Commit message (Collapse)AuthorAgeFilesLines
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-203-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-195-22/+22
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* 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-259-36/+36
| | | | 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>
* | Merge pull request #46813 from ↵Kate2024-08-141-3/+4
|\ \ | | | | | | | | | nextcloud/refactor/files_versions/security-attributes
| * | refactor(files_versions): Replace security annotations with respective ↵provokateurin2024-07-271-3/+4
| |/ | | | | | | | | | | attributes Signed-off-by: provokateurin <kate@provokateurin.de>
* | feat: Make `ISharedStorage` public API and reuse where possibleFerdinand Thiessen2024-08-121-4/+3
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | 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>