zulip/zerver
Tim Abbott 96c61a1a41 events: Fix broken custom_profile_fields events logic.
I noticed this because the test_events.py tests had the extremely
weird pattern of calling the actual change function, and then testing
the `notify` function's state changes (which should always be noops),
rather than actually testing the state change function.

Fixing the test made it clear that the actual logic in events.py
simply did not handle deleting custom_profile_field_value elements
from user objects when a custom_profile_field object was deleted.

So we fix that bit of logic as well.

It appears this bug was unique -- at least we don't have any other
notify_* functions being used directly in test_events.py, and the
handful of state_change_expected=False entries are all events for data
not present in page_params.
2021-03-26 16:28:33 -07:00
..
data_import import/export: Fix deprecated authentication method for Slack. 2021-03-08 12:56:37 -08:00
lib events: Fix broken custom_profile_fields events logic. 2021-03-26 16:28:33 -07:00
management python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
migrations display_settings: Allow user to set default_view. 2021-03-11 18:09:08 -08:00
openapi custom_profile_fields: Remove op field for the event. 2021-03-26 16:28:33 -07:00
templatetags python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
tests events: Fix broken custom_profile_fields events logic. 2021-03-26 16:28:33 -07:00
tornado docs: Add a document explaining email/push notifications. 2021-03-05 15:24:25 -08:00
views dev_panel: Use correct content helper for portico pages. 2021-03-26 09:40:40 -07:00
webhooks integration: Update Zendesk Documentation. 2021-03-25 01:40:38 -07:00
worker invites: Delete old compat code in the invites queue worker. 2021-02-26 08:26:43 -08:00
__init__.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
apps.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
context_processors.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
decorator.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
filters.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
forms.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
logging_handlers.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
middleware.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
models.py custom profile fields: Rename "CHOICE" to "SELECT" in frontend. 2021-03-26 11:49:11 -07:00
signals.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00