events: Remove email field from update subscription events.

This commit removes email field from update subscription
events, as email field is of no use in this case.
This commit is contained in:
sahil839 2021-02-26 23:49:03 +05:30 committed by Tim Abbott
parent 6250902edc
commit b53c773987
6 changed files with 6 additions and 13 deletions

View File

@ -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",

View File

@ -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.

View File

@ -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. Bump

View File

@ -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,

View File

@ -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)

View File

@ -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: false
example:
{
@ -616,7 +608,6 @@ paths:
"type": "subscription",
"property": "pin_to_top",
"value": true,
"email": "user10@zulip.testserver",
"stream_id": 11,
"name": "test_stream",
"id": 0,