Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | chore: apply changes from Nextcloud coding standards 1.1.1 | Joas Schilling | 2023-11-23 | 8 | -20/+15 | |
| | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | |||||
* | Don't call getUid() on null | Git'Fellow | 2023-11-16 | 1 | -2/+6 | |
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> | |||||
* | fix: Delete ghost versions of non-existing files | Git'Fellow | 2023-10-28 | 1 | -1/+4 | |
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> | |||||
* | Merge pull request #39695 from fsamapoor/refactor_files_version_app_commands | Côme Chilliet | 2023-09-21 | 3 | -102/+64 | |
|\ | | | | | Refactors files version app commands. | |||||
| * | Apply suggestions from code review | Faraz Samapoor | 2023-09-21 | 2 | -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 Samapoor | 2023-08-03 | 2 | -37/+40 | |
| | | | | | | | | | | | | To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at> | |||||
| * | Refactors files_version app commands. | Faraz Samapoor | 2023-08-03 | 3 | -64/+24 | |
| | | | | | | | | | | | | To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at> | |||||
* | | Move module versions management logic out of main logic | Louis Chemineau | 2023-09-07 | 5 | -29/+122 | |
| | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | | fix: Also cleanup version metadata if expiring | Julius Härtl | 2023-08-14 | 1 | -0/+15 | |
|/ | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> | |||||
* | files_versions: Add OpenAPI spec | jld3103 | 2023-07-13 | 2 | -5/+13 | |
| | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com> | |||||
* | Enable all files versions features when groupfolders is enabled | Louis Chemineau | 2023-07-05 | 1 | -4/+2 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | feat(ocp): More specific type for ICapabilities::getCapabilities | Christoph Wurst | 2023-07-03 | 1 | -2/+0 | |
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | |||||
* | Base versions' has-preview on mimetype | Louis Chemineau | 2023-06-29 | 2 | -26/+3 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Provide hasPreview in files_versions DAV API | Louis Chemineau | 2023-06-28 | 2 | -2/+29 | |
| | | | | | | | This allow to no request non existing previews I also set some properties to the img element to reduce preview loading to what the browser think is necessary Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Do not create a new version if previousNode has the same mtime | Louis Chemineau | 2023-06-22 | 1 | -2/+2 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | fix: Add logging statement for cases when updating the version fails | Julius Härtl | 2023-06-21 | 1 | -8/+29 | |
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> | |||||
* | Handle previousNode size === 0 on version creation | Louis Chemineau | 2023-06-21 | 1 | -20/+10 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | fix: Avoid failing to update the current version entry if there is none | Julius Härtl | 2023-06-13 | 1 | -5/+12 | |
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> | |||||
* | Enable version features again with S3 versioning | Benjamin Somers | 2023-06-13 | 1 | -3/+3 | |
| | | | | Signed-off-by: Benjamin Somers <bsomers@resel.fr> | |||||
* | Fix initialisation of versions in the DB | Louis Chemineau | 2023-05-25 | 2 | -4/+31 | |
| | | | | | | Broken after https://github.com/nextcloud/server/pull/36690 Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Check if version has entity before trying to access it | Git'Fellow | 2023-05-12 | 1 | -1/+1 | |
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> | |||||
* | Check if version entity is not null before delete | Git'Fellow | 2023-05-08 | 1 | -1/+6 | |
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> | |||||
* | fix: catch ManuallyLockedException and use app context | Max | 2023-05-03 | 2 | -16/+67 | |
| | | | | | | | | | | | | 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 #37428 from nextcloud/enh/ignore-non-numeric-versions | Côme Chilliet | 2023-04-20 | 1 | -1/+7 | |
|\ | | | | | Ignore and log non integer versions | |||||
| * | Check for non-numeric versions, not non-integer | Côme Chilliet | 2023-04-05 | 1 | -2/+2 | |
| | | | | | | | | | | | | All versions are string Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | |||||
| * | Ignore and log non integer versions | Côme Chilliet | 2023-04-05 | 1 | -0/+6 | |
| | | | | | | | | | | | | | | | | This avoids being stuck when there is one buggy file version with a non-integer version. It allows the expiration process to not crash and continue with the other ones. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | |||||
* | | Really disable versions features when S3 versioning is enabled | Louis Chemineau | 2023-04-17 | 1 | -1/+1 | |
| | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | | Merge pull request #36690 from nextcloud/bugfix/noid/rollback-hook | Julius Härtl | 2023-04-14 | 3 | -20/+27 | |
|\ \ | |/ |/| | ||||||
| * | fix: Check return type on rollback | Julius Härtl | 2023-03-13 | 1 | -5/+8 | |
| | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> | |||||
| * | don't re-get fileinfo for versioned file if it's not shared | Robin Appelman | 2023-03-13 | 1 | -13/+17 | |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | |||||
| * | tests(files_versions): Tear down fs to clear mount cache before testing | Julius Härtl | 2023-03-13 | 1 | -1/+1 | |
| | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> | |||||
| * | fix: Make sure that rollback hook is triggered on all version backends | Julius Härtl | 2023-03-13 | 2 | -7/+7 | |
| | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> | |||||
* | | Fix return type of methods returning false on error | Côme Chilliet | 2023-04-03 | 1 | -1/+1 | |
|/ | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | |||||
* | Handle empty DB while expiring versions | Louis Chemineau | 2023-02-08 | 1 | -4/+10 | |
| | | | | | | | | Version on the FS can have no equivalent in the DB if they were created before the version naming feature. This makes sure that we catch the resulting exception and proceed as usual. Fix https://github.com/nextcloud/server/issues/36541 Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Document that size may be a float in new class VersionEntity | Côme Chilliet | 2023-02-07 | 4 | -9/+13 | |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | |||||
* | Fix versions restoring with S3 | Louis Chemineau | 2023-01-26 | 1 | -5/+24 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Use node's owner if no user is connected | Louis Chemineau | 2023-01-26 | 1 | -15/+25 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Prevent storing versions with the same mtime | Louis Chemineau | 2023-01-26 | 1 | -2/+3 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Fix renaming files_versions | Louis Chemineau | 2023-01-26 | 1 | -7/+6 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Handle empty files in version creation logic | Louis Chemineau | 2023-01-26 | 5 | -29/+131 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Fix hookconnector tests | Louis Chemineau | 2023-01-26 | 1 | -30/+5 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Adapt files_versions tests to modernized hooks | Louis Chemineau | 2023-01-26 | 1 | -8/+45 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | User rootFolder instead of userFolder in FileEventsListener | Louis Chemineau | 2023-01-26 | 1 | -13/+26 | |
| | | | | | | Requesting userFolder fails during NC installation phase. Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Rename Hooks.php to FileEventsListener.php | Louis Chemineau | 2023-01-26 | 2 | -11/+12 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Prevent expiration of named versions | Louis Chemineau | 2023-01-26 | 1 | -1/+22 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Delete file versions entries in DB when node is deleted | Louis Chemineau | 2023-01-26 | 2 | -0/+10 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Allow to delete a version through DAV | Louis Chemineau | 2023-01-26 | 6 | -4/+72 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Support getting and patching version-label | Louis Chemineau | 2023-01-26 | 11 | -35/+294 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Create files_versions table | Louis Chemineau | 2023-01-26 | 3 | -0/+220 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | |||||
* | Modernise hook listener of files_versions | Louis Chemineau | 2023-01-26 | 2 | -55/+88 | |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> |