Alex Hall
2c9ae6dc94
(core) Enforce daily limit on API usage
...
Summary:
Keep track of the number of API requests made for this document today in redis. Uses local caches of the count and the document so that usually requests can proceed without waiting for redis or the database.
Moved the free standing function apiThrottle to become a method to avoid adding another layer of request handler callbacks.
Test Plan: Added a DocApi test
Reviewers: paulfitz
Reviewed By: paulfitz
Subscribers: dsagal
Differential Revision: https://phab.getgrist.com/D3327
2022-03-22 00:22:45 +02:00
..
2021-03-19 18:20:33 -04:00
2021-09-29 11:27:02 -04:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-03-14 21:49:32 +02:00
2022-03-10 16:24:49 -08:00
2022-03-05 13:30:45 -05:00
2022-03-14 17:51:10 +01:00
2022-02-22 12:50:43 -05:00
2020-07-21 20:39:10 -04:00
2022-02-22 12:50:43 -05:00
2022-03-14 17:51:10 +01:00
2020-07-21 20:39:10 -04:00
2021-10-01 11:24:22 -04:00
2022-03-22 00:22:45 +02:00
2021-10-25 10:25:18 -04:00
2022-03-14 21:49:32 +02:00
2020-07-21 20:39:10 -04:00
2022-02-19 09:46:49 +00:00
2022-02-22 12:50:43 -05:00
2022-03-18 18:48:14 +02:00
2022-03-09 12:04:16 +02:00
2021-04-29 08:56:54 -04:00
2020-07-21 20:39:10 -04:00
2022-02-19 09:46:49 +00:00
2022-03-14 09:34:44 -04:00
2022-03-22 00:22:45 +02:00
2022-02-08 17:41:04 +01:00
2022-02-19 09:46:49 +00:00
2021-12-07 17:09:58 +02:00
2021-12-07 17:09:58 +02:00
2021-11-30 17:26:32 +01:00
2022-02-14 10:32:47 -08:00
2022-02-19 09:46:49 +00:00
2022-02-14 10:32:47 -08:00
2020-07-21 20:39:10 -04:00
2021-04-29 08:56:54 -04:00
2022-03-12 14:34:46 -08:00
2021-11-30 17:26:32 +01:00
2021-07-28 09:02:32 -04:00
2021-10-01 10:47:12 +02:00
2022-03-14 21:49:32 +02:00
2022-03-07 09:11:28 -08:00
2021-10-01 11:24:22 -04:00
2020-07-21 20:39:10 -04:00
2020-09-18 16:31:29 -04:00
2022-02-19 09:46:49 +00:00
2022-03-18 18:48:14 +02:00
2020-07-21 20:39:10 -04:00
2020-10-30 13:52:46 -04:00
2021-08-17 21:44:50 -04:00
2021-04-29 08:56:54 -04:00
2021-01-12 14:08:49 -05:00
2020-07-23 11:29:05 -04:00
2022-02-01 21:19:30 +02:00
2021-09-29 12:08:23 -04:00
2022-02-04 20:28:13 +02:00
2020-07-21 20:39:10 -04:00
2022-03-08 17:20:01 -05:00
2022-03-08 17:20:01 -05:00
2020-10-28 13:59:13 -04:00
2021-10-25 10:25:18 -04:00
2020-07-21 20:39:10 -04:00
2022-03-05 13:30:45 -05:00
2022-02-19 09:46:49 +00:00
2021-12-07 17:09:58 +02:00
2021-07-15 15:18:32 -07:00
2021-08-16 17:36:09 -04:00
2020-07-22 14:45:42 -04:00
2020-07-21 20:39:10 -04:00
2022-02-19 09:46:49 +00:00
2021-08-20 11:28:33 -04:00
2022-03-07 09:11:28 -08:00
2021-05-24 12:56:18 -04:00
2021-08-09 18:37:14 +02:00
2022-02-20 02:39:30 -08:00
2021-11-10 10:46:12 -05:00
2020-07-21 20:39:10 -04:00
2022-03-12 14:34:46 -08:00
2021-11-03 15:31:39 +01:00
2021-08-26 13:36:49 -07:00
2021-11-05 10:51:18 -04:00
2022-03-05 13:30:45 -05:00
2022-03-14 21:49:32 +02:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2022-03-14 09:34:44 -04:00
2021-10-01 10:18:56 -04:00
2020-07-21 20:39:10 -04:00
2022-03-08 17:20:01 -05:00
2021-12-10 18:33:07 -05:00
2021-11-04 17:23:43 -04:00
2020-07-21 20:39:10 -04:00
2021-12-07 17:09:58 +02:00
2020-07-21 20:39:10 -04:00
2022-03-05 13:30:45 -05:00
2022-01-13 11:10:17 +01:00
2020-07-21 20:39:10 -04:00