aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
* feat(trashbin): Add deleted by propertiesChristopher Ng2024-04-231-0/+10
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* chore(trashbin): Add method to get deleted by from trash itemChristopher Ng2024-04-238-44/+55
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* chore(trashbin): Store deleted by userChristopher Ng2024-04-231-2/+4
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* chore(trashbin): Add deleted_by column to files_trashChristopher Ng2024-04-231-0/+56
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-024-9/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(files): Do not require files_trashbin in live photo sync listenerLouis Chemineau2024-03-142-0/+152
| | | | | | Fix https://github.com/nextcloud/server/issues/43299 Signed-off-by: Louis Chemineau <louis@chmn.me>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-3/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore(files_trashbin): Migrate away from deprecated ILoggerCôme Chilliet2024-02-201-5/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Replace OC::$server->getL10N by OCP\Util::getL10N in lib and some appsCôme Chilliet2024-02-051-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Fix missing template parameter for IEventListenerCôme Chilliet2024-01-301-0/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* use deletion time instead of mtime in trashbin handlingRobin Appelman2024-01-032-3/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Synchronize operation on live photo filesLouis Chemineau2023-11-293-4/+151
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-2311-13/+12
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Support getting and setting metadata in DAV requestsLouis Chemineau2023-11-081-1/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* IFilesMetadataMaxence Lange2023-11-071-0/+10
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Migrate applications away from deprecated ILoggerCôme Chilliet2023-09-211-4/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #39818 from ↵Robin Windey2023-09-181-42/+170
|\ | | | | | | | | nextcloud/feature/trashbin-restore-improvements#39724 Let `occ trashbin:restore` restore also from groupfolders and add filters
| * Rename since/until in verbose messageRobin Windey2023-08-181-2/+2
| | | | | | | | Signed-off-by: GitHub <noreply@github.com>
| * Code adjustments according to PR reviewRobin Windey2023-08-181-54/+32
| | | | | | | | | | | | | | | | | | * Delete unnecessary function docs * Rename parameters to 'since' and 'until' * Style: use '&&' instead of 'and' * Add types Signed-off-by: GitHub <noreply@github.com>
| * Make scope parsing more readableRobin Windey2023-08-181-9/+10
| | | | | | | | Signed-off-by: GitHub <noreply@github.com>
| * Decouple from groupfolders app & remove PSALM warningsRobin Windey2023-08-181-13/+18
| | | | | | | | Signed-off-by: GitHub <noreply@github.com>
| * Let occ trashbin:restore restore also from groupfolders and add additional ↵Robin Windey2023-08-181-29/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | filters * Using the TrashManager allows access to all deleted files * Add 'scope' parameter to choose where to restore from (user or groupfolders) * Add 'restore-from' and 'restore-to' date parameters to filter files to be restored by their deletion date * Add 'dry-run' flag to be able to see which files would be restored and being able to adjust the filter parameters accordingly Signed-off-by: GitHub <noreply@github.com>
* | add IFileInfo::getParentIdRobin Appelman2023-09-041-0/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | only gather dependencies for trashbin wrapper onceRobin Appelman2023-08-181-33/+30
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(files_trashbin): Migrate to IEventDispatcher and emit as typed eventJoas Schilling2023-07-192-5/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* files_trashbin: Add OpenAPI specjld31032023-07-132-1/+14
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* feat(files): favoritesJohn Molakvoæ2023-07-051-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(ocp): More specific type for ICapabilities::getCapabilitiesChristoph Wurst2023-07-031-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Correctly react to bad configurationCôme Chilliet2023-06-081-13/+23
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Do not cast sizes to int in Trashbin classCôme Chilliet2023-06-081-29/+24
| | | | | | This helps with 32bits support Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(trashbin): Truncate long filenamesChristopher Ng2023-05-315-19/+43
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(UserMigration)!: 32-bit supportChristopher Ng2023-05-051-2/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files_trashbin): set real filename on trashbin downloadJohn Molakvoæ2023-04-111-3/+20
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files_trashbin): previews crop supportJohn Molakvoæ2023-04-061-3/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files_trashbin): migrate to vueJohn Molakvoæ2023-04-062-12/+48
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* add a bit more verbose option for trashbin cleanupRobin Appelman2023-04-031-7/+20
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #36465 from nextcloud/bugfix/trashbin-concurrencyJulius Härtl2023-02-151-24/+0
|\
| * fix(files_trashbin): Remove unnecessary scanner logic when getting versions ↵Julius Härtl2023-02-021-24/+0
| | | | | | | | | | | | from trash Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Silence errors of return type mismatch from Sabre for nowCôme Chilliet2023-02-072-1/+5
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Type sizes as int|float throughout the code baseCôme Chilliet2023-02-071-1/+1
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Merge pull request #33047 from nextcloud/fix/ijob-logger-deprecatedCarl Schwan2022-08-231-35/+17
|\ | | | | Deprecated ILogger from IJob
| * Port existing server code to new interfaceCarl Schwan2022-08-081-35/+17
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-3/+4
|/ | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #32507 from carlcsaposs/restoreVincent Petry2022-07-121-1/+5
|\ | | | | Sort files by deletion time before restoring in RestoreAllFiles
| * Sort files by deletion time before restoring in RestoreAllFilesCarl Csaposs2022-07-041-1/+5
| | | | | | | | | | | | | | Restoring in order of most recently deleted preserves nested file paths. See https://github.com/nextcloud/server/issues/31200#issuecomment-1130358549 Signed-off-by: Carl Csaposs <carl@csaposs.com>
* | Fix trashbin expiration notice casingChristopher Ng2022-07-061-1/+1
|/ | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Merge pull request #33068 from nextcloud/enh/note-trashbin-expirationPytal2022-06-301-1/+1
|\
| * Add trashbin export expiration noticeChristopher Ng2022-06-291-1/+1
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | use size from cache to determine whether to skip the trashbinRobin Appelman2022-06-291-5/+11
|/ | | | | | this way large folders also get skipped Signed-off-by: Robin Appelman <robin@icewind.nl>