browsertrix/backend/test
Tessa Walsh d2ededc895
Add and enforce org storage quota (#1106)
* Implement in backend

- Track bytesStored in org
- Add migration to pre-calculate based on size of crawlfiles and profilefiles
- Add methods to increase or decrease org storage when crawl or profile files
are added or deleted
- Include storageQuotaReached boolean in API responses that alter storage
- Don't start new crawls and fail uploads if storage quota reached

* Implement in frontend

- Add to orgs-list quotas
- Update org's storageQuotaReached based on backend endpoint responses
- Disable buttons when storage quota is met
- Show toast notification when attempting to run a crawl when org
storage quota is met
2023-09-07 12:45:43 -04:00
..
data Uploads API: BaseCrawl refactor + Initial support for /uploads endpoint (#937) 2023-07-07 09:13:26 -07:00
__init__.py
conftest.py Backend: standardize search values, filters, and sorting for archived items (#1039) 2023-08-04 09:56:52 -07:00
test_collections.py feat: implement 'collections' array with {name, id} for archived item details (#1098) 2023-08-25 00:26:46 -07:00
test_crawl_config_search_values.py Backend API consistency pass (#921) 2023-06-16 18:52:46 -07:00
test_crawl_config_tags.py Backend API consistency pass (#921) 2023-06-16 18:52:46 -07:00
test_crawlconfigs.py Add max crawl size option to backend and frontend (#1045) 2023-08-26 22:00:37 -07:00
test_filter_sort_results.py feat: implement 'collections' array with {name, id} for archived item details (#1098) 2023-08-25 00:26:46 -07:00
test_invites.py Paginate API list endpoints (#659) 2023-03-06 14:41:25 -05:00
test_login.py
test_org.py Add event webhook notifications system to backend (#1061) 2023-08-31 19:52:37 -07:00
test_permissions.py Paginate API list endpoints (#659) 2023-03-06 14:41:25 -05:00
test_run_crawl.py Add and enforce org storage quota (#1106) 2023-09-07 12:45:43 -04:00
test_settings.py tests: fixes for crawl cancel + crawl stopped (#864) 2023-05-22 20:17:29 -07:00
test_stop_cancel_crawl.py Print crawl log to operator log (mostly for testing) (#1148) 2023-09-06 17:53:02 -07:00
test_uploads.py Add and enforce org storage quota (#1106) 2023-09-07 12:45:43 -04:00
test_users.py
test_webhooks.py Add event webhook notifications system to backend (#1061) 2023-08-31 19:52:37 -07:00
test_workflow_auto_add_to_collection.py feat: implement 'collections' array with {name, id} for archived item details (#1098) 2023-08-25 00:26:46 -07:00
utils.py Uploads API: BaseCrawl refactor + Initial support for /uploads endpoint (#937) 2023-07-07 09:13:26 -07:00