zulip/zerver
Lauryn Menard 843eb4e4fc user-status: Update presence_enabled with changes to user status away.
When a user toggles a status update for `away=True|False`, we now update
their `presence_enabled` setting to match (`away!=presence_enabled`).

First step of making user status `away` updates a deprecated way to
access presence_enabled for clients supporting older servers, and
checkpoint commit before migrating users with a current UserStatus
of `status=AWAY` to have their `presence_enabled` set to `False`.

Note that when user status `away` is updated, we now send 4 events:
user_status, user_settings, presence, and update_global_notifications.

Also, this means that these updates change the UserPresence.status
value, which impacts the test for importing and exporting user
information.

Part of transitioning from 'unavailable' user status feature to
'invisible mode' user presence feature.
2022-09-23 12:27:54 -07:00
..
actions user-status: Update presence_enabled with changes to user status away. 2022-09-23 12:27:54 -07:00
data_import slack: Filter out non-.json files for processing. 2022-09-23 09:59:34 -07:00
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib user-status: Refactor function names with "user_info" for clarity. 2022-09-23 12:27:54 -07:00
management logout_all_users: Add --rotate-api-keys option to the command. 2022-08-15 17:58:05 -07:00
migrations custom_profile_fields: Add "display_in_profile_summary" field in model. 2022-09-20 17:03:57 -07:00
openapi help: Restructure "Mastering the compose box" article. 2022-09-22 15:20:37 -07:00
tests user-status: Update presence_enabled with changes to user status away. 2022-09-23 12:27:54 -07:00
tornado tornado: Raise the same error for nonexistent and unauthorized queues. 2022-09-20 15:20:36 -07:00
views user-status: Move do_update_user_status to separate actions file. 2022-09-23 12:27:54 -07:00
webhooks integrations: Add incoming webhook macro to relevant docs. 2022-09-09 16:31:33 -07:00
worker message_flags: Fix deadlocks when updating message flags. 2022-09-06 16:06:58 -07:00
__init__.py django: Upgrade Zulip to Django 3.2 LTS. 2021-05-03 08:36:22 -07:00
apps.py caching: Make sender type optional for flush_cache. 2021-07-26 14:48:07 -07:00
context_processors.py templates: Rename OPEN_GRAPH variables to PAGE or PAGE_METADATA. 2022-09-06 14:57:06 -07:00
decorator.py decorator: Rename profile to user_profile. 2022-08-17 12:05:38 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py forms: Fix another 500 error on realm creation with invalid email. 2022-09-19 14:12:32 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py middleware: Log 5xx json_errors in JsonErrorHandler. 2022-08-31 14:43:15 -07:00
models.py custom_profile_fields: Add "display_in_profile_summary" field in model. 2022-09-20 17:03:57 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00