Commit Graph

66 Commits (6cedc15c1f6edeb023e56bd9ac8eded7f2df9045)

Author SHA1 Message Date
Ferdinand Thiessen d6d6747a73 refactor: apply rector rules for PHPUnit 10
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-27 21:56:04 +07:00
Carl Schwan 49d522717c refactor(dbal): Port away from remaining IQueryBuilder::execute calls
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2025-10-13 13:44:15 +07:00
Carl Schwan 8555f98e32 refactor: Port External\Manager to the query builder
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2025-09-16 11:36:12 +07:00
Anna Larch b819d71337 feat(userstatus): add busy capability
Signed-off-by: Anna Larch <anna@nextcloud.com>
2025-08-05 14:52:33 +07:00
Anna Larch 56174f749f
feat: add Busy status and new preset BRB status
Signed-off-by: Anna Larch <anna@nextcloud.com>
2025-08-01 08:35:37 +07:00
Côme Chilliet 956924bdc9
chore: Remove calls to OC_App in bootstrap.php files for tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-07-10 11:40:27 +07:00
Robin Appelman aa15f9d16d
chore: run rector
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-07-01 22:45:52 +07:00
Joas Schilling 5f9117b939
test: Fix coding standards
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-05-15 08:48:13 +07:00
Joas Schilling ea0229dc86
test: Fix some apps/*/tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-05-15 08:26:15 +07:00
Joas Schilling 79084d577e
fix(tests): Check that the revert was successful
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-09-25 08:35:24 +07:00
Joas Schilling 134bfb8437
fix(tests): Also check that the backup status works
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-09-25 08:35:22 +07:00
Joas Schilling ec6ed0cf74
fix(tests): Make timing test more reliable
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-09-25 08:35:19 +07:00
Joas Schilling bec14dc4a5
Merge pull request #48215 from nextcloud/bugfix/noid/run-all-unit-tests
fix(tests): Fix test selection and run unit tests of DAV and user_status
2024-09-23 12:49:30 +07:00
Joas Schilling 4ccf62a224
chore: Cleanup and prepare some app tests for PHPUnit 10
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-09-19 18:19:32 +07:00
Joas Schilling 2110698ea3
fix(user_status): Fix integration test of user status
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-09-19 17:51:01 +07:00
Joas Schilling 6ad620fe27
fix(tests): Fix test selection and run unit tests of DAV and user_status
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-09-19 17:44:45 +07:00
provokateurin 9836e9b164
chore(deps): Update nextcloud/coding-standard to v1.3.1
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-09-19 14:21:20 +07:00
Christoph Wurst 49dd79eabb
refactor: Add void return type to PHPUnit test methods
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2024-09-15 22:32:31 +07:00
Daniel Kesselberg af6de04e9e
style: update codestyle for coding-standard 1.2.3
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-08-25 19:34:58 +07:00
Joas Schilling 2c977d2b6e
fix(userstatus): Fix user status automation in real-life scenario
Order of applying:
- Out-of-office
- Availability
- Call
- Meeting
- User status

Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-06-25 09:29:35 +07:00
Andy Scherzinger 8d8891c5bc
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-30 15:49:33 +07:00
Anna Larch e1b957e17b fix(userstatus): CALL status should overwrite MEETING status
Signed-off-by: Anna Larch <anna@nextcloud.com>
2024-01-24 18:23:21 +07:00
Anna Larch 02d077bd49 fix(userstatus): catch unique constraint violation
Signed-off-by: Anna Larch <anna@nextcloud.com>
2024-01-16 15:38:13 +07:00
provokateurin b8fecdb470
fix(user_status): Allow setting custom message with icon only
Signed-off-by: provokateurin <kate@provokateurin.de>
2023-12-30 14:45:35 +07:00
Anna Larch 4c6eff975f fix(userstatus): set user status to 'In a meeting' if calendar is busy
Signed-off-by: Anna Larch <anna@nextcloud.com>
2023-12-19 14:59:00 +07:00
Anna Larch fc4ef6133b fix(ooo): add new ooo status with new emoji
Signed-off-by: Anna Larch <anna@nextcloud.com>
2023-12-18 11:35:00 +07:00
Joas Schilling 73c0f596f7
fix(copyright): Fix copyright doc blocks
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-30 11:53:47 +07:00
Anna Larch f19645adab enh(userstatus): add OOO automation and remove calendar automation
Signed-off-by: Anna Larch <anna@nextcloud.com>
2023-11-28 10:28:06 +07:00
Joas Schilling aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-23 10:36:13 +07:00
Christoph Wurst bdad290d31
fix(userstatus): Only track message timestamp for values
Do not track status messages that are empty, e.g. DND outside of
availability.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-11-16 12:45:22 +07:00
Anna Larch f14a4f8fd7 feat(user status): automate user status for events
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>
2023-11-09 16:20:19 +07:00
Christoph Wurst fbdf733be0
fix(userstatus): Track message timestamp too
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-09-29 09:55:19 +07:00
Côme Chilliet 0a9371f99f
Migrate applications away from deprecated ILogger
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-09-21 11:57:21 +07:00
Richard Steinmetz 6982597b6a
feat(dashboard): implement widget item api v2
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>
2023-08-22 08:36:53 +07:00
jld3103 e6e2b873a3
Remove unreachable UserStatus#clearStatus route
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2023-05-08 14:16:54 +07:00
Joas Schilling 90a817cee5
feat(status): Add a capability for the restore
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-18 14:58:12 +07:00
Joas Schilling f998fe0af3
Update the user status dashboard widget and fix the icon color
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-01-02 11:38:27 +07:00
Joas Schilling 3009e02324
Fix phpunit
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-09-16 11:03:44 +07:00
Joas Schilling 9a9db2802b
Reset user status based on message ID only
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>
2022-07-22 11:02:37 +07:00
Joas Schilling 1429a9a8ef
Also reset the status on clearAt
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>
2022-05-27 11:32:53 +07:00
Joas Schilling f5878038ff
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-05-27 10:46:47 +07:00
Joas Schilling 902476fa20
Extract the EmojiService from user status and add an OCP interface
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-28 07:09:44 +07:00
Joas Schilling 058d1de260
Do status and predefined message setting in one go
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-15 16:06:33 +07:00
Joas Schilling 5fcbb1ca62
Create the backup user status in 1 query instead of 3
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-15 16:06:33 +07:00
Joas Schilling deec4f31db
Allow to revert the user status of multiple users in 3 queries instead of 3*n
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-15 16:06:33 +07:00
Jonas Meurer 3fe267b772
Respect user enumeration settings in user status lists
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>
2021-10-20 11:33:23 +07:00
Carl Schwan 2cb48f484b
Add an API to set and rollback the user status
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-10-18 20:31:37 +07:00
kesselb 224fdc10f4
Revert "Fix Recent statuses plural/singular"
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-08-09 19:33:25 +07:00
szaimen 3897b68883 Fix Recent statuses plural/singular
Signed-off-by: szaimen <szaimen@e.mail.de>
2021-08-08 21:04:48 +07:00
blizzz 56b68ce4e0
Merge pull request #27375 from nextcloud/bugfix/noid/dont-update-offline-status
Don't update statuses to offline again and again
2021-06-07 12:12:33 +07:00