aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_status/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix(tests): Check that the revert was successfulbugfix/noid/more-reliable-testsJoas Schilling2024-09-251-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(tests): Also check that the backup status worksJoas Schilling2024-09-251-0/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(tests): Make timing test more reliableJoas Schilling2024-09-251-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #48215 from nextcloud/bugfix/noid/run-all-unit-testsJoas Schilling2024-09-231-12/+6
|\ | | | | fix(tests): Fix test selection and run unit tests of DAV and user_status
| * fix(user_status): Fix integration test of user statusJoas Schilling2024-09-191-5/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * fix(tests): Fix test selection and run unit tests of DAV and user_statusJoas Schilling2024-09-191-7/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | chore: Cleanup and prepare some app tests for PHPUnit 10ci/noid/prepare-phpunit-10Joas Schilling2024-09-191-18/+6
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-153-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(userstatus): Fix user status automation in real-life scenarioJoas Schilling2024-06-251-4/+70
| | | | | | | | | | | Order of applying: - Out-of-office - Availability - Call - Meeting - User status Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-3015-292/+30
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(userstatus): CALL status should overwrite MEETING statusAnna Larch2024-01-241-0/+67
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(userstatus): catch unique constraint violationAnna Larch2024-01-161-0/+5
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(user_status): Allow setting custom message with icon onlyprovokateurin2023-12-301-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(userstatus): set user status to 'In a meeting' if calendar is busyAnna Larch2023-12-193-67/+50
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(ooo): add new ooo status with new emojiAnna Larch2023-12-181-2/+9
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(copyright): Fix copyright doc blocksJoas Schilling2023-11-301-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* enh(userstatus): add OOO automation and remove calendar automationAnna Larch2023-11-281-292/+2
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-235-59/+57
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(userstatus): Only track message timestamp for valuesChristoph Wurst2023-11-161-0/+30
| | | | | | | Do not track status messages that are empty, e.g. DND outside of availability. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* feat(user status): automate user status for eventsAnna Larch2023-11-091-20/+325
| | | | | | | and automatically set a user status to free or busy depending on their calendar transparency, event status and availability settings Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(userstatus): Track message timestamp tooChristoph Wurst2023-09-292-0/+136
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Migrate applications away from deprecated ILoggerCôme Chilliet2023-09-211-4/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(dashboard): implement widget item api v2Richard Steinmetz2023-08-221-170/+1
| | | | | | | | | This API enables the dashboard to render all widgets from the API data alone without having apps to provide their own bundles. This saves a lot of traffic and execution time as a lot less javascript has to be parsed on the frontend. Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Remove unreachable UserStatus#clearStatus routejld31032023-05-081-9/+0
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* feat(status): Add a capability for the restoreJoas Schilling2023-04-181-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the user status dashboard widget and fix the icon colorJoas Schilling2023-01-021-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix phpunitJoas Schilling2022-09-161-6/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Reset user status based on message ID onlyJoas Schilling2022-07-221-3/+13
| | | | | | | | Since some statuses (call) can occure with different status (away and dnd) we need to reset only based on the message id. But as it can not be set by the user this is still save and okay. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also reset the status on clearAtJoas Schilling2022-05-273-13/+9
| | | | | | | | | When you set yourself to "DND - In a meeting" for one hour, the expectation is that you are also "online"/normal again when the meeting is over. So we extend the logic to also include the status itself to be reverted. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix unit testsJoas Schilling2022-05-271-4/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Extract the EmojiService from user status and add an OCP interfaceJoas Schilling2022-04-283-114/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do status and predefined message setting in one goJoas Schilling2022-02-151-0/+61
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Create the backup user status in 1 query instead of 3Joas Schilling2022-02-151-39/+25
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to revert the user status of multiple users in 3 queries instead of 3*nJoas Schilling2022-02-152-0/+110
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Respect user enumeration settings in user status listsJonas Meurer2021-10-201-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | So far, the functions to find user statuses listed didn't respect user enumeration settings (`shareapi_allow_share_dialog_user_enumeration` and `shareapi_restrict_user_enumeration_to_group` core app settings). Fix this privacy issue by returning an empty list in case `shareapi_allow_share_dialog_user_enumeration` is unset or `shareapi_restrict_user_enumeration_to_group` is set. In the long run, we might want to return users from common groups if `shareapi_restrict_user_enumeration_to_group` is set. It's complicated to implement this in a way that scales, though. See the discussion at https://github.com/nextcloud/server/pull/27879#pullrequestreview-753655308 for details. Also, don't register the user_status dashboard widget at all if `shareapi_allow_share_dialog_user_enumeration` is unset or `shareapi_restrict_user_enumeration_to_group` is set. Fixes: #27122 Signed-off-by: Jonas Meurer <jonas@freesources.org>
* Add an API to set and rollback the user statusCarl Schwan2021-10-182-8/+70
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Revert "Fix Recent statuses plural/singular"kesselb2021-08-091-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix Recent statuses plural/singularszaimen2021-08-081-1/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Merge pull request #27375 from nextcloud/bugfix/noid/dont-update-offline-statusblizzz2021-06-072-0/+42
|\ | | | | Don't update statuses to offline again and again
| * Don't update statuses to offline again and againJoas Schilling2021-06-072-0/+42
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0415-105/+112
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use executeQuery and executeUpdate in the QBMapperChristoph Wurst2021-03-181-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #23129 from nextcloud/enh/noid/tests-user-statusMorris Jobke2020-10-062-1/+27
|\ | | | | More tests for user_status
| * Another test for user live status listenerDaniel Kesselberg2020-10-011-1/+3
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * Add test case for getDefaultStatusByIdDaniel Kesselberg2020-09-241-0/+24
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #23112 from ↵Roeland Jago Douma2020-10-012-3/+3
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/increase-timeout-of-statuses Increase the timeout of statuses
| * | Increase the timeout of statusesJoas Schilling2020-10-012-3/+3
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>