zulip/zerver
Alex Vandiver 617c35398a s3: Only use get_bucket to get to boto3 clients and resources.
boto3 has two different modalities of making API calls -- through
resources, and through clients.  Resources are a higher-level
abstraction, and thus more generally useful, but some APIs are only
accessible through clients.  It is possible to get to a client object
from a resource, but not vice versa.

Use `get_bucket(...).meta.client` when we need direct access to the
client object for more complex API calls; this lets all of the
configuration for how to access S3 to sit within `get_bucket`.  Client
objects are not bound to only one bucket, but we get to them based on
the bucket we will be interacting with, for clarity.

We removed the cached session object, as it serves no real purpose.
2024-01-05 18:44:47 +00:00
..
actions models: Move query_for_ids to zerver.lib.query_helpers. 2023-12-16 22:08:44 -08:00
data_import models: Extract zerver.models.streams. 2023-12-16 22:08:44 -08:00
integration_fixtures/nagios
lib s3: Only use get_bucket to get to boto3 clients and resources. 2024-01-05 18:44:47 +00:00
management management: Provide a way to deactivate the push registration. 2024-01-04 15:34:28 -08:00
migrations models: Extract zerver.models.realm_audit_logs. 2023-12-16 22:08:44 -08:00
models support: Add updating minimum licenses requirement after discount. 2024-01-04 18:42:07 -08:00
openapi user_topics: Validate 'topic' parameter length <= max_topic_length. 2024-01-04 09:43:27 -08:00
tests zilencer: Skip deactivating registrations when locally deleted. 2024-01-04 18:31:16 -08:00
tornado models: Extract zerver.models.clients. 2023-12-16 22:08:44 -08:00
transaction_tests models: Extract zerver.models.realms. 2023-12-16 22:08:44 -08:00
views user_topics: Validate 'topic' parameter length <= max_topic_length. 2024-01-04 09:43:27 -08:00
webhooks models: Extract zerver.models.clients. 2023-12-16 22:08:44 -08:00
worker models: Extract zerver.models.bots. 2023-12-16 22:08:44 -08:00
__init__.py
apps.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
context_processors.py login: Remove external_authentication_methods from page_params. 2023-12-29 13:02:12 -08:00
decorator.py models: Extract zerver.models.clients. 2023-12-16 22:08:44 -08:00
filters.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
forms.py models: Extract zerver.models.realms. 2023-12-16 22:08:44 -08:00
logging_handlers.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
middleware.py models: Extract zerver.models.realms. 2023-12-16 22:08:44 -08:00
signals.py email: Add a space after the time and AM/PM in the login email. 2023-11-27 09:47:30 -08:00