Andrey Antukh
2dcd138060
🐛 Read the live storage total without the events consumer
...
The cached path of the media-storage-bytes-per-team quota reads the
team_storage_usage counter, and that counter only stays true while
somebody marks the teams dirty. That somebody is the events consumer:
with its flag off nobody refreshes the counter and the quota reads a
frozen value, so it lets uploads over the limit pass without a word.
The failure is permissive, which is the one this work came to fix.
The cached path needs the :event-consumer flag too, next to
:storage-usage and :audit-log. Without it the quota falls back to the
live sum: slow on big teams, but true.
AI-assisted-by: minimax-m3.1-flash
2026-10-23 17:43:45 +00:00
..
2026-10-17 21:53:29 +00:00
2026-10-19 22:18:27 +02:00
2026-09-29 23:07:26 +02:00
2026-09-10 20:29:44 +02:00
2026-09-23 12:31:50 +02:00
2026-10-20 14:08:40 +02:00
2026-10-15 19:18:04 +02:00
2026-10-17 16:28:59 +02:00
2026-10-23 17:20:13 +02:00
2026-08-25 11:55:10 +02:00
2026-10-19 20:10:20 +02:00
2026-10-07 11:52:48 +02:00
2026-09-23 15:25:21 +02:00
2026-10-06 07:33:12 +02:00
2026-10-23 16:47:55 +02:00
2026-10-06 07:33:12 +02:00
2026-08-25 11:55:10 +02:00
2026-10-06 07:33:12 +02:00
2026-10-19 14:00:13 +02:00
2026-10-22 15:31:16 +02:00
2026-10-23 17:20:15 +02:00
2026-10-19 13:01:35 +02:00
2026-09-09 17:58:09 +02:00
2026-09-29 09:07:34 +02:00
2026-10-13 14:33:32 +02:00
2026-10-17 16:01:04 +02:00
2026-10-23 17:20:15 +02:00
2026-10-07 11:52:48 +02:00
2026-09-10 20:29:44 +02:00
2026-09-24 12:19:29 +02:00
2026-09-15 19:22:56 +02:00
2026-09-14 14:50:32 +02:00
2026-10-13 14:33:32 +02:00
2026-08-25 11:55:10 +02:00
2026-10-17 16:28:59 +02:00
2026-10-01 13:16:12 +02:00
2026-10-06 07:33:12 +02:00
2026-10-11 18:48:02 +02:00
2026-10-11 18:48:02 +02:00
2026-10-07 11:52:48 +02:00
2026-10-15 19:18:04 +02:00
2026-10-23 17:08:47 +00:00
2026-10-02 11:08:13 +02:00
2026-10-15 19:50:06 +02:00
2026-10-16 12:48:49 +02:00
2026-08-25 11:55:10 +02:00
2026-09-10 20:29:44 +02:00
2026-08-25 11:55:10 +02:00
2026-10-06 15:56:55 +02:00
2026-10-19 22:18:27 +02:00
2026-10-06 07:33:12 +02:00
2026-10-01 17:17:11 +02:00
2026-10-08 11:38:13 +02:00
2026-10-23 16:47:55 +02:00
2026-10-23 17:20:15 +02:00
2026-09-09 17:58:09 +02:00
2026-10-20 15:33:37 +00:00
2026-10-13 18:44:40 +00:00
2026-08-25 11:55:10 +02:00
2026-10-23 16:47:55 +02:00
2026-09-22 14:03:02 +02:00
2026-09-23 12:31:50 +02:00
2026-10-17 16:01:04 +02:00
2026-10-13 14:33:32 +02:00
2026-09-29 23:07:26 +02:00
2026-10-15 13:01:18 +02:00
2026-08-25 11:55:10 +02:00
2026-10-06 07:33:12 +02:00
2026-08-25 11:55:10 +02:00
2026-10-06 07:33:12 +02:00
2026-10-23 17:20:15 +02:00
2026-10-15 13:01:18 +02:00
2026-10-23 17:20:15 +02:00
2026-10-23 17:20:15 +02:00
2026-10-23 17:20:15 +02:00
2026-10-17 16:01:04 +02:00
2026-10-07 11:52:48 +02:00
2026-10-20 14:08:40 +02:00
2026-10-23 16:47:55 +02:00
2026-10-23 16:47:55 +02:00
2026-10-06 07:33:12 +02:00
2026-08-25 11:55:10 +02:00
2026-10-07 14:58:32 +02:00
2026-10-17 16:28:59 +02:00
2026-10-15 13:01:18 +02:00
2026-10-23 16:47:55 +02:00
2026-09-24 12:19:29 +02:00
2026-10-20 14:08:40 +02:00
2026-09-22 14:03:02 +02:00
2026-09-22 14:43:04 +02:00
2026-10-15 13:01:18 +02:00
2026-10-19 13:01:35 +02:00
2026-08-25 11:55:10 +02:00
2026-10-23 16:47:55 +02:00
2026-10-16 15:57:32 +02:00
2026-10-06 07:33:12 +02:00
2026-09-23 15:25:21 +02:00
2026-09-23 15:25:21 +02:00
2026-10-19 22:18:27 +02:00
2026-10-05 17:16:47 +02:00
2026-10-23 17:43:45 +00:00
2026-10-23 17:08:47 +00:00
2026-08-25 11:55:10 +02:00
2026-10-07 11:52:48 +02:00
2026-08-25 11:55:10 +02:00
2026-10-23 17:20:13 +02:00
2026-09-01 12:45:17 +02:00
2026-10-22 15:29:37 +02:00
2026-10-11 18:48:02 +02:00
2026-10-07 11:52:48 +02:00
2026-10-23 16:47:55 +02:00