datatracker/ietf/group
Robert Sparks 997239a2ea
feat: write objects to blob storage (#8557)
* feat: basic blobstore infrastructure for dev

* refactor: (broken) attempt to put minio console behind nginx

* feat: initialize blobstore with boto3

* fix: abandon attempt to proxy minio. Use docker compose instead.

* feat: beginning of blob writes

* feat: storage utilities

* feat: test buckets

* chore: black

* chore: remove unused import

* chore: avoid f string when not needed

* fix: inform all settings files about blobstores

* fix: declare types for some settings

* ci: point to new target base

* ci: adjust test workflow

* fix: give the tests debug environment a blobstore

* fix: "better" name declarations

* ci: use devblobstore container

* chore: identify places to write to blobstorage

* chore: remove unreachable code

* feat: store materials

* feat: store statements

* feat: store status changes

* feat: store liaison attachments

* feat: store agendas provided with Interim session requests

* chore: capture TODOs

* feat: store polls and chatlogs

* chore: remove unneeded TODO

* feat: store drafts on submit and post

* fix: handle storage during doc expiration and resurrection

* fix: mirror an unlink

* chore: add/refine TODOs

* feat: store slide submissions

* fix: structure slide test correctly

* fix: correct sense of existence check

* feat: store some indexes

* feat: BlobShadowFileSystemStorage

* feat: shadow floorplans / host logos to the blob

* chore: remove unused import

* feat: strip path from blob shadow names

* feat: shadow photos / thumbs

* refactor: combine photo and photothumb blob kinds

The photos / thumbs were already dropped in the same
directory, so let's not add a distinction at this point.

* style: whitespace

* refactor: use kwargs consistently

* chore: migrations

* refactor: better deconstruct(); rebuild migrations

* fix: use new class in mack patch

* chore: add TODO

* feat: store group index documents

* chore: identify more TODO

* feat: store reviews

* fix: repair merge

* chore: remove unnecessary TODO

* feat: StoredObject metadata

* fix: deburr some debugging code

* fix: only set the deleted timestamp once

* chore: correct typo

* fix: get_or_create vs get and test

* fix: avoid the questionable is_seekable helper

* chore: capture future design consideration

* chore: blob store cfg for k8s

* chore: black

* chore: copyright

* ci: bucket name prefix option + run Black

Adds/uses DATATRACKER_BLOB_STORE_BUCKET_PREFIX option. Other changes
are just Black styling.

* ci: fix typo in bucket name expression

* chore: parameters in app-configure-blobstore

Allows use with other blob stores.

* ci: remove verify=False option

* fix: don't return value from __init__

* feat: option to log timing of S3Storage calls

* chore: units

* fix: deleted->null when storing a file

* style: Black

* feat: log as JSON; refactor to share code; handle exceptions

* ci: add ietf_log_blob_timing option for k8s

* test: --no-manage-blobstore option for running tests

* test: use blob store settings from env, if set

* test: actually set a couple more storage opts

* feat: offswitch (#8541)

* feat: offswitch

* fix: apply ENABLE_BLOBSTORAGE to BlobShadowFileSystemStorage behavior

* chore: log timing of blob reads

* chore: import Config from botocore.config

* chore(deps): import boto3-stubs / botocore

botocore is implicitly imported, but make it explicit
since we refer to it directly

* chore: drop type annotation that mypy loudly ignores

* refactor: add storage methods via mixin

Shares code between Document and DocHistory without
putting it in the base DocumentInfo class, which
lacks the name field. Also makes mypy happy.

* feat: add timeout / retry limit to boto client

* ci: let k8s config the timeouts via env

* chore: repair merge resolution typo

* chore: tweak settings imports

* chore: simplify k8s/settings_local.py imports

---------

Co-authored-by: Jennifer Richards <jennifer@staff.ietf.org>
2025-02-19 17:41:10 -06:00
..
management chore: remove alreay used on-shot import commands (#7333) 2024-04-18 10:25:02 -05:00
migrations fix: better archive search links for group documents (#6835) 2024-01-09 15:17:11 -06:00
templatetags fix: Return NomComs, not Groups, from active_nomcoms filter (#5726) 2023-05-31 15:05:59 -05:00
__init__.py Move new schema models from redesign/ to ietf/ 2012-01-24 17:17:24 +00:00
admin.py feat: Group admin form accepts acronyms starting with numbers for SDO groups (#7051) 2024-02-20 16:38:11 -06:00
factories.py Simpler fix 2023-10-02 11:43:11 +03:00
feeds.py Removed all __future__ imports. 2020-03-05 23:53:42 +00:00
forms.py fix: Don't allow group chair to change group parent (#6496) 2023-11-05 12:32:03 +01:00
mails.py Removed all __future__ imports. 2020-03-05 23:53:42 +00:00
milestones.py fix: Accept&ignore group_type for some views 2024-02-12 17:38:36 -04:00
models.py chore: merge main and fix conflicts 2023-08-30 16:35:20 -05:00
resources.py chore: merge main and fix conflicts 2023-08-30 16:35:20 -05:00
tasks.py feat: write objects to blob storage (#8557) 2025-02-19 17:41:10 -06:00
tests.py feat: add group leadership list (#8135) 2024-11-15 12:18:09 -06:00
tests_appeals.py chore: merge main and fix conflicts 2023-08-30 16:35:20 -05:00
tests_info.py feat: write objects to blob storage (#8557) 2025-02-19 17:41:10 -06:00
tests_js.py chore: Replace unmaintained bootstrap-datepicker with vanillajs-datepicker (#5259) 2023-03-09 10:12:26 -06:00
tests_review.py feat: Allow review rejections to be undone (#6312) 2023-09-27 08:57:34 -05:00
urls.py feat: add group leadership list (#8135) 2024-11-15 12:18:09 -06:00
utils.py fix: optimize and debug has_role and can_manage_some_groups (#7949) 2024-09-17 13:05:56 -05:00
views.py feat: add group leadership list (#8135) 2024-11-15 12:18:09 -06:00