diaspora/spec/services
Benjamin Neff 649d8c5b56
Mark notifications as read in a single SQL query
There is no need to load all comments only to count them. Lets just let
the database do all the work. If there are no comments found, nothing
will happen anyway.

Also already filter the comments to only search for notifications for
own comments.

And add some tests :)
2024-06-03 00:11:45 +02:00
..
aspects_membership_service_spec.rb Users Controller and unit tests complete 2018-12-04 08:48:16 -05:00
block_serivce_spec.rb Add API route to (un)block a user 2020-03-20 12:38:27 +01:00
comment_service_spec.rb Comments API Endpoint complete with full unit tests 2018-11-01 14:14:34 -04:00
conversation_service_spec.rb API: Fix fetching explicitly not only unread conversations 2020-02-17 10:59:10 +01:00
diaspora_link_service_spec.rb Update factory_girl to factory_bot 2021-04-11 01:51:38 +02:00
like_service_spec.rb Introduce like-interactions.js 2023-11-13 02:26:59 +01:00
notification_service_spec.rb Update factory_girl to factory_bot 2021-04-11 01:51:38 +02:00
photo_service_spec.rb API Branch Final Cleanup Before PR 2018-12-30 11:50:58 -05:00
poll_participation_service_spec.rb Update factory_girl to factory_bot 2021-04-11 01:51:38 +02:00
post_service_spec.rb Mark notifications as read in a single SQL query 2024-06-03 00:11:45 +02:00
reshare_service_spec.rb Reshares API Endpoint complete with full unit tests 2018-11-11 09:53:13 -05:00
status_message_creation_service_spec.rb Remove facebook integration 2018-10-08 02:50:25 +02:00
tag_following_service_spec.rb API: Return 409 when trying to create something existing and 410 when trying to delete something already gone 2020-02-02 18:04:11 +01:00