aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib/Command
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>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-023-63/+9
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files_versions): Improve files version listingLouis Chemineau2024-03-061-0/+5
| | | | 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-081-3/+0
| | | | This reverts commit ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* Reapply "Cleanup versions entity in during versions:clean command"Louis Chemineau2024-02-071-0/+3
| | | | This reverts commit 17ee5968263a5bb96f4ca1d50845ad06066f8062.
* Revert "Cleanup versions entity in during versions:clean command"Louis Chemineau2024-02-011-3/+0
| | | | This reverts commit 1ec9f3e5f9dd84723008137af73cf365beaf4d1b.
* Cleanup versions entity in during versions:clean commandLouis Chemineau2024-02-011-0/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Apply suggestions from code reviewFaraz Samapoor2023-09-212-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 Samapoor2023-08-032-37/+40
| | | | | | To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Refactors files_version app commands.Faraz Samapoor2023-08-033-64/+24
| | | | | | To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Merge pull request #27408 from PhrozenByte/enhancement/FilesVersionsCleanUpPathVincent Petry2021-10-081-5/+28
|\ | | | | Add occ versions:cleanup --path option
| * Improve occ versions:cleanup --path optionDaniel Rudolf2021-10-071-2/+2
| | | | | | | | Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
| * Add occ versions:cleanup --path optionDaniel Rudolf2021-06-071-5/+28
| | | | | | | | Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
* | Improve auto expiration hintszaimen2021-08-081-1/+1
| | | | | | | | | | Signed-off-by: szaimen <szaimen@e.mail.de> Co-Authored-By: Pytal <24800714+Pytal@users.noreply.github.com>
* | Remove allmost all deprecation from the files_version appCarl Schwan2021-07-231-13/+9
|/ | | | | | | | | | The remaining deprecations are related to Utils::hooks and I will take a look at how EventDispatcher works before working on them. Aside from the deprecations, this patch also does a few minor improvements around type hinting. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-043-3/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Catch storage not available in versions expire commandChristoph Wurst2020-11-251-1/+17
| | | | | | | | | | | | External storage with session credentials is not accessible without a user session, hence background jobs and CLI commands can't work with them. The previously unhandled exception causes logged errors in the nextcloud log. This patch catches the specific exception and logs it as warnings. So for a production instance the error won't spam their logs for this non-recoverable and technically unsolvable error if the minimum log level is set to the default of 3 (error). Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add missing returnJoas Schilling2020-06-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also always return in app commandsJoas Schilling2020-06-262-3/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-293-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-103-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-3/+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>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-053-3/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use more magic DI in files_versionsRoeland Jago Douma2018-05-111-4/+4
| | | | | | | 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>
* Update license headersMorris Jobke2017-11-062-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly expire ext storage versions (#26601)Vincent Petry2017-03-101-3/+1
| | | | | | | | | | | | | | | | | | * 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>
* introduce callForSeenUsers and countSeenUsers (#26361)Jörn Friedrich Dreyer2016-10-281-2/+2
| | | | | | | | | | * 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
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-212-3/+5
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Move files_versions to PSR-4 (#24571)Joas Schilling2016-05-122-0/+178