aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * fix loading multiple version backends from one appRobin Appelman2019-06-041-10/+21
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | allow non integer version idsRobin Appelman2019-06-046-10/+10
|/ | | | | | | 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>
* Merge pull request #6512 from coletivoEITA/add_circles_sharing_to_caldavMorris Jobke2019-03-131-1/+2
|\ | | | | Change CALDAV to allow calendars be shared with circles.
| * Use proper dependency injection for app managerMorris Jobke2019-03-051-1/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | set availableSpace to 0 if userFolder not foundFelix Nieuwenhuizen2019-03-021-6/+7
| | | | | | | | Signed-off-by: Felix Nieuwenhuizen <felix@tdlrali.com>
* | use node API for free space calculation in versions app (same method as ↵Felix Nieuwenhuizen2019-03-021-3/+5
|/ | | | | | trashbin app) Signed-off-by: Felix Nieuwenhuizen <felix@tdlrali.com>
* Move of files_versions to webpackRoeland Jago Douma2019-02-131-1/+1
| | | | | | | | * Move CSS into bundle * Old merged.json no longer needed! * No need to load the style still Signed-off-by: Roeland Jago Douma <roeland@famdouma.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>
* actually return the user when creating version dav nodesRobin Appelman2018-11-151-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* modular versions apiRobin Appelman2018-11-0116-102/+726
| | | | | | | 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>
* allow admins to override FreeBusy capabilities without modifying ShareAPI ↵Georg Ehrke2018-05-221-1/+2
| | | | | | capabilities Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Delete the previews when a version is restoredRoeland Jago Douma2018-05-141-0/+8
| | | | | | | | | Fixes #9469 When a version of a file is restored the previews are no longer valid. Thus we should remove them so they are regenerated. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use more magic DI in files_versionsRoeland Jago Douma2018-05-114-28/+8
| | | | | | | There is no need to register this. The system can figure out by itself what it needs to do :) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* If not in debug disable principal listingRoeland Jago Douma2018-05-081-1/+5
| | | | | | | Trashbin and Version should have the same behaviour as the other collections. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow to read get old versionsRoeland Jago Douma2018-05-012-4/+20
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add rollbackRoeland Jago Douma2018-05-014-0/+103
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add version collection to DAVRoeland Jago Douma2018-05-016-0/+431
| | | | | | | listed as versions/<username>/versions/<file id>/<timastamp> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Less deprecated calls to OCP\Util::writeLogMorris Jobke2018-04-221-4/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class statement instead of stringMorris Jobke2018-01-292-10/+12
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use type casting instead of *val() methodMorris Jobke2018-01-262-5/+5
| | | | | | It should be up to 6x faster Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8053 from nextcloud/simplify-substrJoas Schilling2018-01-261-1/+1
|\ | | | | Use short for of substr to not need strlen()
| * Use short for of substr to not need strlen()Morris Jobke2018-01-251-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use $var[] = $a instead of array_push - 2x fasterMorris Jobke2018-01-251-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-067-2/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded check if app is enabledMorris Jobke2017-10-231-44/+28
| | | | | | App code will not be executable if the app is not enabled, because the autoloader refuses to load that class. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* allow apps to disable versions for some filesBjoern Schiessle2017-09-152-0/+93
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove undocumented configJoas Schilling2017-08-011-77/+73
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix versions appJoas Schilling2017-08-011-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix comparisons in the versions appJoas Schilling2017-08-012-12/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use IConfig instead of static OCP\ConfigMorris Jobke2017-07-271-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Handle more error casesMorris Jobke2017-05-021-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge JS for files_versionsLukas Reschke2017-03-241-4/+1
| | | | | | Shaves off 3 requests. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Properly expire ext storage versions (#26601)Vincent Petry2017-03-102-9/+16
| | | | | | | | | | | | | | | | | | * Properly expire ext storage versions System-wide external storages have no real owner so the current user is used as owner. However when running cron.php there is no current user, so no expiry can be done. This fix adds an user argument to the expire() function to tell for which user to expire files. This information is anyway always available now through the expire command job. * Move version expire setupFS into the expire function * Add comment about not tearing down in version Storage::expire() Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Show mimeicon when versions don't have a previewRoeland Jago Douma2016-11-291-0/+1
| | | | | | Fixes #2413 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* More testsRoeland Jago Douma2016-11-031-13/+1
| | | | | | | | | * PreviewController test * PublicPreview test * Versions Preview test * Trash Preview test Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Moved over files_versionsRoeland Jago Douma2016-11-032-1/+112
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* introduce callForSeenUsers and countSeenUsers (#26361)Jörn Friedrich Dreyer2016-10-282-4/+4
| | | | | | | | | | * introduce callForSeenUsers and countSeenUsers * add tests * oracle should support not null on clob * since 9.2.0
* Add occ command to expire the trashbin (#25878)Thomas Müller2016-08-291-0/+125
| | | | | | * Add occ command to expire the trashbin * Fix versions folder in setup check
* Skip version and trash expiry for users that never logged inJörn Friedrich Dreyer2016-08-101-1/+1
|
* Update with robinJoas Schilling2016-07-213-3/+3
|
* Fix apps/Joas Schilling2016-07-218-13/+23
|
* Merge branch 'master' into sync-masterMorris Jobke2016-07-071-8/+12
|\
| * we don't need to check permissions twiceBjoern Schiessle2016-07-041-4/+2
| |
| * Merge remote-tracking branch 'upstream/master' into master-sync-upstreamLukas Reschke2016-07-011-0/+8
| |\
| * | check permissions before rollbackBjoern Schiessle2016-06-301-5/+11
| | |
* | | Upgrading the log level From Debug to INFO to be consistent with ↵Carlos Damken2016-07-061-3/+3
| |/ |/| | | | | files_trashbin (#25367)
* | Hide revert button when no permission to revertVincent Petry2016-06-281-0/+8
|/
* Rollback version must also adjust cached sizeVincent Petry2016-06-221-1/+8
|
* Construct path to the version file from the current directory and filename. ↵Victor Dubiniuk2016-06-021-4/+6
| | | | Fixes #22450