browsertrix/backend/btrixcloud
Tessa Walsh f84f6f55e0
Add basic backend validation for selectLinks (#2510)
Follow-up to #2152 

Related to https://github.com/webrecorder/browsertrix/pull/2487

This PR provides very basic validation of the `config.selectLinks`
argument on workflow creation and update. Namely, it checks that:
- `config.selectLinks` is not an empty array
- Each entry consists of two non-empty text sequences separated by `->`

At this point we're not validating the actual CSS selector on the
backend, though we could add that down the road.

Tests have been added accordingly.

Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2025-04-07 21:36:05 +02:00
..
migrations Better cacheing of presigned URLs + support for thumbnails (#2446) 2025-03-03 12:05:23 -08:00
operator support overriding crawler image pull policy per channel (#2523) 2025-03-31 14:11:41 -07:00
__init__.py
auth.py fixes token lifetime bug / improve security (#2490) 2025-03-19 10:07:09 -07:00
background_jobs.py
basecrawls.py crawl replay: remove isSeed=true from initialPages query (#2509) 2025-03-20 15:03:41 -07:00
colls.py Hide breadcrumbs for private orgs (#2477) 2025-03-11 15:05:35 -04:00
crawlconfigs.py Add basic backend validation for selectLinks (#2510) 2025-04-07 21:36:05 +02:00
crawlmanager.py support overriding crawler image pull policy per channel (#2523) 2025-03-31 14:11:41 -07:00
crawls.py
db.py
emailsender.py
invites.py
k8sapi.py Fixes #2488 (#2493) 2025-03-19 10:06:25 -07:00
main_bg.py
main_migrations.py
main_op.py
main.py
models.py Add backend support for custom behaviors + validation endpoint (#2505) 2025-04-02 16:20:51 -07:00
ops.py
orgs.py
pages.py fix qa page sorting: (#2530) 2025-04-02 09:25:38 -07:00
pagination.py
profiles.py support overriding crawler image pull policy per channel (#2523) 2025-03-31 14:11:41 -07:00
storages.py
subs.py
uploads.py
users.py Fix user emails use userout (#2511) 2025-03-24 12:04:39 -07:00
utils.py Add backend support for custom behaviors + validation endpoint (#2505) 2025-04-02 16:20:51 -07:00
version.py version: update to 1.14.8 2025-03-31 14:17:53 -07:00
webhooks.py