browsertrix/backend
Ilya Kreymer bcbc40059e
Refactor backend data model to support UUID (fixes #118) (#119)
* uuid fix: (fixes #118)
- update all mongo models to use UUID type as main '_id' (users continue to use 'id' as defined by fastapi-users)
- update all foreign doc references to use UUID instead of string
- api handlers convert str->uuid as needed
api fix:
- fix single crawl api, add CrawlOut response model
- fix collections api
- fix standalone-docker apis
- for manual job, set user to current user, overriding the setting from crawlconfig

* additional fixes:
- rename username -> userName to indicate not the login 'username'
- rename user -> userid, archive -> aid for crawlconfig + crawls
- ensure invites correctly convert str -> uuid as needed
- filter out unset values from browsertrix-crawler config

* convert remaining user -> userid variables
ensure archive id is passed to crawl_manager as str (via archive.id_str)

* remove bulk crawlconfig delete
* add support for `stopping` state when gracefully stopping crawl
* for get crawl endpoint, check stopped crawls first, then running
2022-01-29 19:00:11 -08:00
..
archives.py Refactor backend data model to support UUID (fixes #118) (#119) 2022-01-29 19:00:11 -08:00
colls.py Refactor backend data model to support UUID (fixes #118) (#119) 2022-01-29 19:00:11 -08:00
crawlconfigs.py Refactor backend data model to support UUID (fixes #118) (#119) 2022-01-29 19:00:11 -08:00
crawls.py Refactor backend data model to support UUID (fixes #118) (#119) 2022-01-29 19:00:11 -08:00
db.py Refactor backend data model to support UUID (fixes #118) (#119) 2022-01-29 19:00:11 -08:00
Dockerfile Frontend + Backend Integrated Deployment (K8s only) (#45) 2021-12-03 10:17:22 -08:00
dockerman.py Refactor backend data model to support UUID (fixes #118) (#119) 2022-01-29 19:00:11 -08:00
emailsender.py Config superuser (#59) 2021-12-05 14:12:42 -08:00
invites.py Refactor backend data model to support UUID (fixes #118) (#119) 2022-01-29 19:00:11 -08:00
k8sman.py Refactor backend data model to support UUID (fixes #118) (#119) 2022-01-29 19:00:11 -08:00
main.py Refactor backend data model to support UUID (fixes #118) (#119) 2022-01-29 19:00:11 -08:00
requirements.txt Support unified docker + k8s deployment (#58) 2021-12-05 13:02:26 -08:00
scheduler.py add missing scheduler! 2021-08-25 16:18:53 -07:00
storages.py Storage + Data Model Refactor (fixes #3): 2021-10-09 18:58:40 -07:00
users.py Refactor backend data model to support UUID (fixes #118) (#119) 2022-01-29 19:00:11 -08:00