Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
events: Remove email field from update subscription events.
sahil839b53c77398795
diff --git a/frontend_tests/node_tests/lib/events.js b/frontend_tests/node_tests/lib/events.jsindex 80b771f8a33..3c36cea1e03 100644--- a/frontend_tests/node_tests/lib/events.js+++ b/frontend_tests/node_tests/lib/events.js@@ -562,7 +562,6 @@ exports.fixtures = {subscription__update: {type: "subscription",op: "update",- email: test_user.email,name: streams.devel.name,stream_id: streams.devel.stream_id,property: "pin_to_top",diff --git a/templates/zerver/api/changelog.md b/templates/zerver/api/changelog.mdindex 2f4f0fbd492..b99efc3fe99 100644--- a/templates/zerver/api/changelog.md+++ b/templates/zerver/api/changelog.md@@ -10,6 +10,11 @@ below features are supported.## Changes in Zulip 4.0+**Feature level 40**++* [`GET /events`](/api/get-events): Remove email field from update+ subscription events.+**Feature level 39*** Added new [GET /users/{email}](/api/get-user-by-email) endpoint.diff --git a/version.py b/version.pyindex 853e74c92ec..63ac97ee971 100644--- a/version.py+++ b/version.py@@ -30,7 +30,7 @@ DESKTOP_WARNING_VERSION = "5.2.0"## Changes should be accompanied by documentation explaining what the# new level means in templates/zerver/api/changelog.md.-API_FEATURE_LEVEL = 39+API_FEATURE_LEVEL = 40# Bump the minor PROVISION_VERSION to indicate that folks should provision# only when going from an old version of the code to a newer version. Bumpdiff --git a/zerver/lib/actions.py b/zerver/lib/actions.pyindex f95a32b9603..54aea2ba07a 100644--- a/zerver/lib/actions.py+++ b/zerver/lib/actions.py@@ -3697,7 +3697,6 @@ def do_change_subscription_property(event = dict(type="subscription",op="update",- email=user_profile.email,property=event_property_name,value=event_value,stream_id=stream.id,diff --git a/zerver/lib/event_schema.py b/zerver/lib/event_schema.pyindex 08d7f735c4d..02e08eb4879 100644--- a/zerver/lib/event_schema.py+++ b/zerver/lib/event_schema.py@@ -1226,7 +1226,6 @@ subscription_update_event = event_dict_type(("stream_id", int),("value", value_type),("name", str),- ("email", str),])_check_subscription_update = make_checker(subscription_update_event)diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 0107b4d5b68..f60b715e376 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -601,14 +601,6 @@ paths:- type: integer- type: boolean- type: string- email:- type: string- deprecated: true- description: |- The display email for the current user.-- **Deprecated** and to be removed as it- serves no purpose to include this field here.additionalProperties: falseexample:{@@ -616,7 +608,6 @@ paths:"type": "subscription","property": "pin_to_top","value": true,- "email": "[email protected]","stream_id": 11,"name": "test_stream","id": 0,