zulip/zerver
Sahil Batra ae72151ec1 streams: Pass stream_weekly_traffic field in stream objects.
This commit adds code to pass stream traffic data using
the "stream_weekly_traffic" field in stream objects.

We already include the traffic data in Subscription objects,
but the traffic data does not depend on the user to stream
relationship and is stream-only information, so it's better
to include it in Stream objects. We may remove the traffic
data and other stream information fields for Subscription
objects in future.

This will help clients to correctly display the stream
traffic data in case where client receives a stream
creation event and no subscription event, for an already
existing stream which the user did not have access to before.
2023-08-06 18:06:42 -07:00
..
actions streams: Pass stream_weekly_traffic field in stream objects. 2023-08-06 18:06:42 -07:00
data_import ruff: Fix UP032 Use f-string instead of `format` call. 2023-07-19 16:14:59 -07:00
integration_fixtures/nagios
lib streams: Pass stream_weekly_traffic field in stream objects. 2023-08-06 18:06:42 -07:00
management ruff: Fix UP032 Use f-string instead of `format` call. 2023-08-02 15:58:55 -07:00
migrations realm_playgrounds: Replace url_prefix with url_template. 2023-07-24 17:40:59 -07:00
openapi streams: Pass stream_weekly_traffic field in stream objects. 2023-08-06 18:06:42 -07:00
tests streams: Pass stream_weekly_traffic field in stream objects. 2023-08-06 18:06:42 -07:00
tornado mention: Send notifications for @topic wildcard mentions. 2023-07-17 09:39:24 -07:00
transaction_tests test_classes: Do not necessary wrap test cases in a transaction. 2023-07-06 11:44:50 -07:00
views streams: Pass stream_weekly_traffic field in stream objects. 2023-08-06 18:06:42 -07:00
webhooks ruff: Fix UP032 Use f-string instead of `format` call. 2023-08-02 15:58:55 -07:00
worker missed-message: Add a try-catch to prevent killing background thread. 2023-07-25 10:01:00 -07:00
__init__.py
apps.py requirements: Upgrade Python requirements. 2023-04-03 22:39:21 -07:00
context_processors.py emails: Add corporate_enabled to context for emails. 2023-05-01 10:32:43 -07:00
decorator.py logging_util: Remove dependence on get_current_request. 2023-07-11 22:23:47 -07:00
filters.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
forms.py python: Convert translated positional {} fields to {named} fields. 2023-07-18 15:19:07 -07:00
logging_handlers.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
middleware.py logging_util: Remove dependence on get_current_request. 2023-07-11 22:23:47 -07:00
models.py streams: Pass stream_weekly_traffic field in stream objects. 2023-08-06 18:06:42 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00