Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification settings UX review #1741

Open
3 of 10 tasks
nickvergessen opened this issue Dec 5, 2023 · 0 comments
Open
3 of 10 tasks

Notification settings UX review #1741

nickvergessen opened this issue Dec 5, 2023 · 0 comments

Comments

@nickvergessen
Copy link
Member

nickvergessen commented Dec 5, 2023

SELECT app, object_type, COUNT(*) AS num FROM oc_notifications WHERE object_type = 'activity_notification' GROUP BY app, object_type ORDER BY num DESC LIMIT 500;
+--------------------+-----------------------+------+
| app                | object_type           | num  |
+--------------------+-----------------------+------+
| files_sharing      | activity_notification | 1553 |
| files              | activity_notification | 1515 |
| forms              | activity_notification | 1314 |
| deck               | activity_notification |  897 |
| announcementcenter | activity_notification |  185 |
| settings           | activity_notification |  100 |
| dav                | activity_notification |   75 |
| spreed             | activity_notification |   74 |
| comments           | activity_notification |   25 |
| systemtags         | activity_notification |    2 |
+--------------------+-----------------------+------+

Deleting notifications of activities that got removed:

DELETE FROM oc_notifications WHERE notification_id IN (SELECT n.notification_id FROM oc_notifications n LEFT JOIN oc_activity a ON a.activity_id = n.object_id WHERE n.object_type = 'activity_notification' AND a.activity_id IS NULL);
SELECT app, object_type, COUNT(*) AS num FROM oc_notifications WHERE object_type = 'activity_notification' GROUP BY app, object_type ORDER BY num DESC LIMIT 500;
+--------------------+-----------------------+------+
| app                | object_type           | num  |
+--------------------+-----------------------+------+
| files_sharing      | activity_notification | 1170 |
| files              | activity_notification |  557 |
| deck               | activity_notification |  219 |
| forms              | activity_notification |  212 |
| dav                | activity_notification |   64 |
| settings           | activity_notification |   38 |
| announcementcenter | activity_notification |   36 |
+--------------------+-----------------------+------+
7 rows in set (0.007 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant