Anders Kaseorg
733083c65d
ruff: Collapse short multi-line import statements.
...
isort did this by default, though it’s unclear whether that was
intended; see https://github.com/astral-sh/ruff/issues/4153 .
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-08-02 17:41:41 -07:00
Anders Kaseorg
c09e7d6407
codespell: Correct “requestor” to “requester”.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-06-20 16:17:55 -07:00
AcKindle3
b0ef8f0822
test: Replace occurences of `uri` with `url`.
...
In all the tests files, replaced all occurences of `uri` with `url`
appeared in comments, local variablles, function names and their callers.
2023-04-08 16:27:55 -07:00
Alex Vandiver
e408f069fe
uploads: Add a method to copy attachment contents out.
2023-04-07 09:13:48 -07:00
Alex Vandiver
3bf3f47b49
delete_old_unclaimed_attachments: Add flag to clean up storage.
...
Actions like deleting realms may leave unreferenced uploads in the
attachment storage backend.
Fix these by walking the complete contents of the attachment storage
backend, and removing files which are no longer present in the
database. This may take quite some time, as it is necessarily O(n) in
the number of files uploaded to the system.
2023-03-02 16:36:19 -08:00
Alex Vandiver
c9d1755a12
delete_realm: Optimize attachment cleanup by batching.
2023-03-02 16:36:19 -08:00
Alex Vandiver
b31a6dc56c
upload: Reorder functions into logical groupings.
2023-03-02 16:36:19 -08:00
Alex Vandiver
880a3f95a7
tests: Split out s3 and local tests.
...
This mirrors the split of the code in 7c0d414aff
.
2023-03-02 16:36:19 -08:00