gristlabs_grist-core/app/gen-server/entity
Alex Hall 64a5c79dbc (core) Limit total attachment file size per document
Summary:
- Add a new parameter `Features.baseMaxAttachmentsBytesPerDocument` and set it to 1GB for the free team product.
- Add a method to DocStorage to calculate the total size of existing and used attachments.
- Add a migration to DocStorage adding an index to make the query in the above method fast.
- Check in ActiveDoc if uploading attachment(s) would exceed the product limit on that document.

Test Plan: Added test in `limits.ts` testing enforcement of the attachment limit.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3374
2022-04-14 16:33:09 +02:00
..
AclRule.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
Alias.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
BillingAccount.ts (core) add appsumo endpoints with stub implementations 2021-06-21 16:04:33 -04:00
BillingAccountManager.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
Document.ts (core) Grace period and delete-only mode when exceeding row limit 2022-03-25 13:41:33 +02:00
Group.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
Login.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
Organization.ts (core) add per-user per-org preferences to database 2020-08-04 15:20:13 -04:00
Pref.ts (core) add per-user per-org preferences to database 2020-08-04 15:20:13 -04:00
Product.ts (core) Limit total attachment file size per document 2022-04-14 16:33:09 +02:00
Resource.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
Secret.ts (core) Initial webhooks implementation 2021-09-23 14:35:39 +02:00
User.ts (core) Add account page option to allow Google login 2022-02-14 16:56:23 -08:00
Workspace.ts (core) move home server into core 2020-07-21 20:39:10 -04:00