You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove notifications of disabled users from OUR DB
Improve default
Grouping by app/object for activity_notification
Dismiss all of a type
Recovery option/modal/overview after vacation/DND/sick-leave
SELECT app, object_type, COUNT(*) AS num FROM oc_notifications WHERE object_type ='activity_notification'GROUP BY app, object_type ORDER BY num DESCLIMIT500;
+--------------------+-----------------------+------+
| 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:
DELETEFROM oc_notifications WHERE notification_id IN (SELECTn.notification_idFROM oc_notifications n LEFT JOIN oc_activity a ONa.activity_id=n.object_idWHEREn.object_type='activity_notification'ANDa.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 DESCLIMIT500;
+--------------------+-----------------------+------+
| 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 inset (0.007 sec)
The text was updated successfully, but these errors were encountered:
Deleting notifications of activities that got removed:
The text was updated successfully, but these errors were encountered: