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> |
||
---|---|---|
.. | ||
migrations | ||
operator | ||
__init__.py | ||
auth.py | ||
background_jobs.py | ||
basecrawls.py | ||
colls.py | ||
crawlconfigs.py | ||
crawlmanager.py | ||
crawls.py | ||
db.py | ||
emailsender.py | ||
invites.py | ||
k8sapi.py | ||
main_bg.py | ||
main_migrations.py | ||
main_op.py | ||
main.py | ||
models.py | ||
ops.py | ||
orgs.py | ||
pages.py | ||
pagination.py | ||
profiles.py | ||
storages.py | ||
subs.py | ||
uploads.py | ||
users.py | ||
utils.py | ||
version.py | ||
webhooks.py |