browsertrix/backend/test
Tessa Walsh 14189b7cfb
Add crawl pages and related API endpoints (#1516)
Fixes #1502 

- Adds pages to database as they get added to Redis during crawl
- Adds migration to add pages to database for older crawls from
pages.jsonl and extraPages.jsonl files in WACZ
- Adds GET, list GET, and PATCH update endpoints for pages
- Adds POST (add), PATCH, and POST (delete) endpoints for page notes,
each with their own id, timestamp, and user info in addition to text
- Adds page_ops methods for 1. adding resources/urls to page, and 2.
adding automated heuristics and supplemental info (mime, type, etc.) to
page (for use in crawl QA job)
- Modifies `Migration` class to accept kwargs so that we can pass in ops
classes as needed for migrations
- Deletes WACZ files and pages from database for failed crawls during
crawl_finished process
- Deletes crawl pages when a crawl is deleted

Note: Requires a crawler version 1.0.0 beta3 or later, with support for
`--writePagesToRedis` to populate pages at crawl completion. Beta 4 is
configured in the test chart, which should be upgraded to stable 1.0.0
when it's released.

Connected to https://github.com/webrecorder/browsertrix-crawler/pull/464

---------

Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2024-02-28 12:11:35 -05:00
..
data Uploads API: BaseCrawl refactor + Initial support for /uploads endpoint (#937) 2023-07-07 09:13:26 -07:00
__init__.py
conftest.py Support multiple crawler versions (#1420) 2024-01-16 15:32:12 -08:00
echo_server.py Add event webhook tests (#1155) 2023-09-12 22:08:40 -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_invites.py
test_login.py User refactor + remove fastapi_users dependency + update fastapi (#1290) 2023-10-18 10:49:23 -07:00
test_org.py Add crawl, upload, and collection delete webhook event notifications (#1363) 2023-11-09 18:19:08 -08:00
test_permissions.py
test_profiles.py Add API tests for browser profiles (#1392) 2023-11-28 10:40:58 -05:00
test_run_crawl.py Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
test_settings.py
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 crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
test_users.py users: add case-insensitive index to maintain backwards compatibility with fastapi-users (#1319) 2023-10-27 14:31:29 -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 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