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
__init__.py
conftest.py Support multiple crawler versions (#1420) 2024-01-16 15:32:12 -08:00
echo_server.py
test_collections.py
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
test_invites.py
test_login.py
test_org.py
test_permissions.py
test_profiles.py
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
test_uploads.py Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
test_users.py
test_utils.py Format backend with Black 24 (#1507) 2024-02-07 11:35:34 -08:00
test_webhooks.py
test_workflow_auto_add_to_collection.py
utils.py