gristlabs_grist-core/app/gen-server
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
..
entity (core) Prune snapshots outside the window in product features 2022-03-18 18:48:14 +02:00
lib (core) Enforce daily limit on API usage 2022-03-22 00:22:45 +02:00
migration (core) Add account page option to allow Google login 2022-02-14 16:56:23 -08:00
ApiServer.ts (core) Add account page option to allow Google login 2022-02-14 16:56:23 -08:00
sqlUtils.ts (core) fix bug where sharing doc with everyone@ as viewer made it unlisted for site viewers 2021-10-28 12:48:31 -04:00