Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api-docs: Document `away` as deprecated way to access presence_enabled.

Lauryn Menardb2e0b5187de2
diff --git a/templates/zerver/api/changelog.md b/templates/zerver/api/changelog.md
index ed50d848a84..820ea669764 100644
--- a/templates/zerver/api/changelog.md
+++ b/templates/zerver/api/changelog.md
@@ -20,6 +20,15 @@ format used by the Zulip server that they are interacting with.
## Changes in Zulip 6.0
+**Feature level 148**
+
+* [`POST /users/me/status`](/api/update-status):
+ [`POST /register`](/api/register-queue), [`GET /events`](/api/get-events):
+ The user status `away` field/parameter is deprecated, and as of this
+ feature level are a legacy way to access the user's `presence_enabled`
+ setting, with `away = !presence_enabled`. To be removed in a future
+ release.
+
**Feature level 147**
* [`POST /streams/{stream_id}/delete_topic`](/api/delete-topic):
diff --git a/version.py b/version.py
index c6e4ee55e7f..91a984371a9 100644
--- a/version.py
+++ b/version.py
@@ -33,7 +33,7 @@ DESKTOP_WARNING_VERSION = "5.4.3"
# Changes should be accompanied by documentation explaining what the
# new level means in templates/zerver/api/changelog.md, as well as
# "**Changes**" entries in the endpoint's documentation in `zulip.yaml`.
-API_FEATURE_LEVEL = 147
+API_FEATURE_LEVEL = 148
# 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
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 8df8079465b..0c9b22a6e77 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -1555,8 +1555,14 @@ paths:
- user_status
away:
type: boolean
+ deprecated: true
description: |
Whether the user has marked themself "away" with this status.
+
+ **Changes**: Deprecated in Zulip 6.0 (feature level 148);
+ starting with that feature level, `away` is a legacy way to
+ access the user's `presence_enabled` setting, with
+ `away = !presence_enabled`. To be removed in a future release.
status_text:
type: string
description: |
@@ -7172,11 +7178,17 @@ paths:
example: on vacation
required: false
- name: away
+ deprecated: true
schema:
type: boolean
in: query
description: |
Whether the user should be marked as "away".
+
+ **Changes**: Deprecated in Zulip 6.0 (feature level 148);
+ starting with that feature level, `away` is a legacy way to
+ access the user's `presence_enabled` setting, with
+ `away = !presence_enabled`. To be removed in a future release.
example: true
required: false
- name: emoji_name
@@ -10373,8 +10385,14 @@ paths:
properties:
away:
type: boolean
+ deprecated: true
description: |
If present, the user has marked themself "away".
+
+ **Changes**: Deprecated in Zulip 6.0 (feature level 148);
+ starting with that feature level, `away` is a legacy way to
+ access the user's `presence_enabled` setting, with
+ `away = !presence_enabled`. To be removed in a future release.
status_text:
type: string
description: |