summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/BackgroundJob
Commit message (Collapse)AuthorAgeFilesLines
* fix(ooo): add new ooo status with new emojiAnna Larch2023-12-181-4/+4
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* [stable28] enh(userstatus): add OOO automation and remove calendar automationAnna Larch2023-11-281-57/+112
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* feat(dav): dispatch out-of-office started and ended eventsRichard Steinmetz2023-11-231-0/+92
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-239-47/+46
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(caldav): Cast calendar objects id to int when building indexChristoph Wurst2023-06-061-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(caldav): Close DB cursor in reminder index background jobChristoph Wurst2023-06-051-2/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(user_status): Fix the user status automation on the day availability ↵Joas Schilling2023-03-131-4/+13
| | | | | | rules are adjusted Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(dav): Handle no next potential toggle in availability detectionThomas Citharel2023-03-101-0/+7
| | | | | Fixes: min(): Array must contain at least one element at /var/www/nc/nextcloud/apps/dav/lib/BackgroundJob/UserStatusAutomation.php#142 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Merge pull request #36260 from ↵Joas Schilling2023-01-231-1/+1
|\ | | | | | | | | nextcloud/bugfix/noid/fix-user-availability-selection Fix WHERE condition when selecting user's availability for the status…
| * Fix WHERE condition when selecting user's availability for the status automationJoas Schilling2023-01-201-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | chore(dav): Make json_encode and json_decode throw on errorChristoph Wurst2023-01-191-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a background job to prune outdated sync tokensThomas Citharel2022-10-271-0/+64
| | | | | | | | We remove all outdated sync tokens, based on their auto-incremented ID. By default we only keep the last 10 000, but this can be configurable. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Merge pull request #32956 from nextcloud/fix/upload-folder-wrong-contentVincent Petry2022-07-271-5/+16
|\ | | | | Handle file contained inside the uploads folder
| * Handle file contained inside the uploads folderCarl Schwan2022-06-211-5/+16
| | | | | | | | | | | | Fix #32450 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Remove unused importJoas Schilling2022-07-011-1/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add status automationJoas Schilling2022-07-011-2/+12
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix determination of cron job runJoas Schilling2022-07-011-8/+91
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | User status automation background jobJoas Schilling2022-07-011-0/+96
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix more psalm issuesCarl Schwan2022-05-164-20/+11
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Migrate dav application from ILogger to LoggerInterfaceCôme Chilliet2022-05-021-11/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Mark DAV background jobs as time sensitive/insensitiveChristoph Wurst2022-02-227-37/+47
| | | | | | | * As a bonus they are now all using OCP base classes * Strict typing is now enforced Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the new option to signaling insensitivityJoas Schilling2022-02-071-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Clean up the DAV resource background jobChristoph Wurst2021-12-021-36/+43
| | | | | | | | * Replace deprecated execute with executeQuery and executeStatement * Close open cursors * Drop phpdoc that only mirrors php type hints Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0410-26/+16
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add a trashbin for calendars and calendar objectsChristoph Wurst2021-05-312-1/+52
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Clean up reminder actions and call methods directlyChristoph Wurst2021-05-071-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add some closure return typesRoeland Jago Douma2021-02-141-1/+1
| | | | | | Found by psalm Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use proper OCP\BackgroundJobs\JobRoeland Jago Douma2020-11-251-2/+4
| | | | | | And typehunt the IJobList Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-294-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-106-19/+16
| | | | | | | | | | | | | | | 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-093-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Catch NoUserException when running the upload cleanup as cronjobJulius Härtl2020-04-031-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Catch NotFoundException when getting the user folderJulius Härtl2020-02-261-3/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Introduce a default refresh rate app setting for calendar subscriptionsThomas Citharel2020-02-211-3/+13
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Move RefreshWebcalJob logic to a proper service so that it may be calledThomas Citharel2020-02-101-370/+19
| | | | | | independently Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* RefreshWebcalJob: Fix reading subscription from database leading to ignored ↵Georg Ehrke2020-01-301-12/+40
| | | | | | refreshRate Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Support more IPv6 addresses in the RefreshWebcalJobGeorg Ehrke2019-12-121-0/+11
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Update license headersChristoph Wurst2019-12-059-15/+36
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-225-3/+8
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix missing parent constructor call in DAV reminder jobChristoph Wurst2019-08-261-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Final fixesGeorg Ehrke2019-08-151-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Add repair step to register reminder index for existing eventsGeorg Ehrke2019-08-151-0/+134
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* run send reminders background-job only when mode is not set to occGeorg Ehrke2019-08-151-4/+9
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Support event reminders (email and notifications)Thomas Citharel2019-08-151-0/+59
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* sync metadata of rooms / resources with cacheGeorg Ehrke2019-08-011-208/+294
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* RefreshWebcalJob: replace ugly Regex with standard php utilsGeorg Ehrke2019-07-021-3/+14
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>