mirror of https://github.com/zulip/zulip.git
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:
parent
6250902edc
commit
b53c773987
|
@ -562,7 +562,6 @@ exports.fixtures = {
|
||||||
subscription__update: {
|
subscription__update: {
|
||||||
type: "subscription",
|
type: "subscription",
|
||||||
op: "update",
|
op: "update",
|
||||||
email: test_user.email,
|
|
||||||
name: streams.devel.name,
|
name: streams.devel.name,
|
||||||
stream_id: streams.devel.stream_id,
|
stream_id: streams.devel.stream_id,
|
||||||
property: "pin_to_top",
|
property: "pin_to_top",
|
||||||
|
|
|
@ -10,6 +10,11 @@ below features are supported.
|
||||||
|
|
||||||
## Changes in Zulip 4.0
|
## Changes in Zulip 4.0
|
||||||
|
|
||||||
|
**Feature level 40**
|
||||||
|
|
||||||
|
* [`GET /events`](/api/get-events): Remove email field from update
|
||||||
|
subscription events.
|
||||||
|
|
||||||
**Feature level 39**
|
**Feature level 39**
|
||||||
|
|
||||||
* Added new [GET /users/{email}](/api/get-user-by-email) endpoint.
|
* Added new [GET /users/{email}](/api/get-user-by-email) endpoint.
|
||||||
|
|
|
@ -30,7 +30,7 @@ DESKTOP_WARNING_VERSION = "5.2.0"
|
||||||
#
|
#
|
||||||
# Changes should be accompanied by documentation explaining what the
|
# Changes should be accompanied by documentation explaining what the
|
||||||
# new level means in templates/zerver/api/changelog.md.
|
# 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
|
# 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
|
# only when going from an old version of the code to a newer version. Bump
|
||||||
|
|
|
@ -3697,7 +3697,6 @@ def do_change_subscription_property(
|
||||||
event = dict(
|
event = dict(
|
||||||
type="subscription",
|
type="subscription",
|
||||||
op="update",
|
op="update",
|
||||||
email=user_profile.email,
|
|
||||||
property=event_property_name,
|
property=event_property_name,
|
||||||
value=event_value,
|
value=event_value,
|
||||||
stream_id=stream.id,
|
stream_id=stream.id,
|
||||||
|
|
|
@ -1226,7 +1226,6 @@ subscription_update_event = event_dict_type(
|
||||||
("stream_id", int),
|
("stream_id", int),
|
||||||
("value", value_type),
|
("value", value_type),
|
||||||
("name", str),
|
("name", str),
|
||||||
("email", str),
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
_check_subscription_update = make_checker(subscription_update_event)
|
_check_subscription_update = make_checker(subscription_update_event)
|
||||||
|
|
|
@ -601,14 +601,6 @@ paths:
|
||||||
- type: integer
|
- type: integer
|
||||||
- type: boolean
|
- type: boolean
|
||||||
- type: string
|
- 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
|
additionalProperties: false
|
||||||
example:
|
example:
|
||||||
{
|
{
|
||||||
|
@ -616,7 +608,6 @@ paths:
|
||||||
"type": "subscription",
|
"type": "subscription",
|
||||||
"property": "pin_to_top",
|
"property": "pin_to_top",
|
||||||
"value": true,
|
"value": true,
|
||||||
"email": "user10@zulip.testserver",
|
|
||||||
"stream_id": 11,
|
"stream_id": 11,
|
||||||
"name": "test_stream",
|
"name": "test_stream",
|
||||||
"id": 0,
|
"id": 0,
|
||||||
|
|
Loading…
Reference in New Issue