browsertrix/backend/btrixcloud
Ilya Kreymer 6dc452ebad
Storage Refactor: Replication + Custom Storage Support (#1296)
- Refactors storage to support replicas + custom storages on the Org.
- There is a default primary + replica storage, while an Org can also have
primary and replica storages.
- StorageRef object is used to store references to default and custom
storage.

- CrawlFile has been updated to contain a StorageRef instead of a
def_storage_name, which references
either a default storage (in StorageOps) or custom storage (in
Organization)
- There is also a 'replicas' Optional[List[StorageRef]] which contains
replicas, if any.
- CrawlFileOut contain a numReplicas for how many replicas exist for
a given file.
- Migration: migration 0020 added to migrate existing Orgs, CrawlFile and ProfileFile objects to new storage system (CrawlFile and ProfileFile now extend BaseFile)


Part of #1262

---------
Co-authored-by: Tessa Walsh <tessa@bitarchivist.net>
2023-10-26 21:44:09 -07:00
..
migrations Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
templates Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
__init__.py
auth.py More stringent UUID types for user input / avoid 500 errors (#1309) 2023-10-25 15:15:53 -04:00
basecrawls.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
colls.py Storage Ops Refactor (#1257) 2023-10-10 15:04:23 -07:00
crawlconfigs.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
crawlmanager.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
crawls.py Enforce quota and hard cap for monthly execution minutes (#1284) 2023-10-26 15:38:51 -07:00
db.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
emailsender.py Check for empty string for SMTP password (#1317) 2023-10-26 09:44:55 -07:00
invites.py User refactor + remove fastapi_users dependency + update fastapi (#1290) 2023-10-18 10:49:23 -07:00
k8sapi.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
main_op.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
main.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
models.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
operator.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
orgs.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
pagination.py
profiles.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
storages.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
uploads.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
users.py Storage Refactor: Replication + Custom Storage Support (#1296) 2023-10-26 21:44:09 -07:00
utils.py Add slugs to org backend (#1250) 2023-10-10 18:30:09 -07:00
version.py version: update to 1.8.0-beta.0 2023-10-17 18:06:55 -07:00
webhooks.py Provide full resources in archived items finished webhooks (#1308) 2023-10-23 19:01:58 -07:00
zip.py Fix: Stream log downloading from WACZ (#1225) 2023-09-28 18:54:52 -07:00