browsertrix/backend/btrixcloud
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
..
migrations Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
__init__.py
auth.py
background_jobs.py Format backend with Black 24 (#1507) 2024-02-07 11:35:34 -08:00
basecrawls.py Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
colls.py Format backend with Black 24 (#1507) 2024-02-07 11:35:34 -08:00
crawlconfigs.py More friendly WARC prefix inside WACZ based on Org slug + Crawl Name / First Seed URL. (#1537) 2024-02-22 23:54:23 -08:00
crawlmanager.py More friendly WARC prefix inside WACZ based on Org slug + Crawl Name / First Seed URL. (#1537) 2024-02-22 23:54:23 -08:00
crawls.py better handling of failed redis connection + exec time updates (#1520) 2024-02-09 16:14:29 -08:00
db.py Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
emailsender.py Email Templates (#1375) 2023-11-15 15:22:12 -08:00
invites.py Email Templates (#1375) 2023-11-15 15:22:12 -08:00
k8sapi.py More friendly WARC prefix inside WACZ based on Org slug + Crawl Name / First Seed URL. (#1537) 2024-02-22 23:54:23 -08:00
main_op.py Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
main.py Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
models.py Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
operator.py Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
orgs.py Format backend with Black 24 (#1507) 2024-02-07 11:35:34 -08:00
pages.py Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
pagination.py Format backend with Black 24 (#1507) 2024-02-07 11:35:34 -08:00
profiles.py Support multiple crawler versions (#1420) 2024-01-16 15:32:12 -08:00
storages.py Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
uploads.py
users.py Add API endpoints for crawl statistics (#1461) 2024-01-10 13:30:47 -08:00
utils.py Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
version.py version: bump to 1.10.0-beta.0 2024-02-20 00:22:29 -08:00
webhooks.py Add crawl, upload, and collection delete webhook event notifications (#1363) 2023-11-09 18:19:08 -08:00
zip.py Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00