zulip/zproject
Mateusz Mandera 4ba4305ff9 presence: Change server-side OFFLINE_THRESHOLD_SECS to 140s.
This old 300s value was meaningfully used in 2 places:
1. In the do_change_user_settings presence_enabled codepath when turning
   a user invisible. It doesn't matter there, 140s is just since the
   point is to make clients see this user as offline. And 140s is the
   threshold used by clients (see the presence.js constant).
2. For calculating whether to set "offline" "status" in
   result["presence"]["aggregated"] in get_presence_backend. It's fine
   for this to become 140s, since clients shouldn't be looking at the
   status value anymore anyway and just do their calculation based on
   the timestamps.
2023-02-21 12:10:43 -08:00
..
jinja2 ruff: Fix S701 Consider using `autoescape=True`. 2023-01-26 10:16:30 -08:00
__init__.py
backends.py backends: Use staticfilesfor social auth logos. 2023-02-14 17:17:06 -05:00
computed_settings.py settings: Allow customization of STATIC_URL. 2023-02-14 17:17:06 -05:00
config.py config: Remove Django base class from ZulipSettingsError. 2022-09-26 12:42:36 -07:00
configured_settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
default_settings.py presence: Change server-side OFFLINE_THRESHOLD_SECS to 140s. 2023-02-21 12:10:43 -08:00
dev_settings.py uploads: Set X-Accel-Redirect manually, without using django-sendfile2. 2023-01-09 18:23:58 -05:00
dev_urls.py settings: Allow customization of STATIC_URL. 2023-02-14 17:17:06 -05:00
email_backends.py email_backends: Fix type annotation of EmailLogBackEnd. 2022-07-29 14:58:11 -07:00
legacy_urls.py legacy_urls: Add type annotation to legacy_urls. 2022-08-12 17:08:04 -07:00
prod_settings.pyi lint: Replace pycodestyle and pyflakes with ruff. 2022-11-03 12:10:15 -07:00
prod_settings_template.py rabbitmq: Add a RABBITMQ_PORT setting. 2023-02-20 12:04:25 -08:00
sentry.py puppet: Add a sentry release class. 2023-02-10 15:53:10 -08:00
settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
settings_types.py settings_type: Extract new module for types used in settings. 2022-09-26 12:42:36 -07:00
template_loaders.py template_loaders: Extract TwoFactorLoader to new module. 2022-09-26 12:42:36 -07:00
test_extra_settings.py settings_type: Extract new module for types used in settings. 2022-09-26 12:42:36 -07:00
test_settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
urls.py muted users: Make file naming consistent. 2023-02-10 15:39:57 -08:00
wsgi.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00