browsertrix/backend/test
Tessa Walsh a546fb6fe0
Improve handling of duplicate org name/slug (#1917)
Initial implementation of #1892 

- Modifies the backend to return `duplicate_org_name` or
`duplicate_org_slug` as appropriate on a pymongo `DuplicateKeyError`
- Updates frontend to handle `duplicate_org_name`, `duplicate_org_slug`,
and `invalid_slug` error details
- Update errors to be more consistent, also return `duplicate_org_subscription.subId` for duplicate subscription instead of the more generic `already_exists`
---------
Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2024-07-10 19:24:50 -07:00
..
data Add superuser API endpoints to export and import org data (#1394) 2024-07-02 17:14:34 -04:00
__init__.py
conftest.py Improve handling of duplicate org name/slug (#1917) 2024-07-10 19:24:50 -07:00
echo_server.py Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
test_collections.py Fix: Make Collections Public on Creation (#1213) 2023-09-29 12:08:10 -07:00
test_crawl_config_search_values.py
test_crawl_config_tags.py
test_crawlconfigs.py Support multiple crawler versions (#1420) 2024-01-16 15:32:12 -08:00
test_filter_sort_results.py Separate seeds into a new endpoints (#1217) 2023-10-02 10:56:12 -07:00
test_login.py User refactor + remove fastapi_users dependency + update fastapi (#1290) 2023-10-18 10:49:23 -07:00
test_org_subs.py Improve handling of duplicate org name/slug (#1917) 2024-07-10 19:24:50 -07:00
test_org.py Improve handling of duplicate org name/slug (#1917) 2024-07-10 19:24:50 -07:00
test_permissions.py
test_profiles.py Disable uploading and creating browser profiles when org is read-only (#1907) 2024-07-01 23:15:38 -07:00
test_qa.py Show QA meter while analysis is running (#1854) 2024-06-12 12:32:01 -04:00
test_run_crawl.py Backend: Move page file and error counts to crawl replay.json endpoint (#1868) 2024-06-20 19:02:57 -07:00
test_settings.py Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
test_stop_cancel_crawl.py Replace partial_complete -> stopped_by_user or stopped_quota_reached + operator edge cases (#1368) 2023-11-14 11:17:16 -08:00
test_uploads.py Add API endpoint to delete org (#1448) 2024-07-03 16:00:11 -04:00
test_users.py Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
test_utils.py Format backend with Black 24 (#1507) 2024-02-07 11:35:34 -08:00
test_webhooks.py Add crawl, upload, and collection delete webhook event notifications (#1363) 2023-11-09 18:19:08 -08:00
test_workflow_auto_add_to_collection.py
test_y_org_import_export.py Add API endpoint to delete org (#1448) 2024-07-03 16:00:11 -04:00
test_z_delete_org.py Add API endpoint to delete org (#1448) 2024-07-03 16:00:11 -04:00
utils.py