Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api-docs: Revise feature level 404 and 392 changes entries.
Lauryn Menard95e6af8c6480
diff --git a/api_docs/changelog.md b/api_docs/changelog.mdindex 0d9d4b21d19..c25407aea04 100644--- a/api_docs/changelog.md+++ b/api_docs/changelog.md@@ -67,12 +67,13 @@ format used by the Zulip server that they are interacting with.* [`GET /users/me/subscriptions`](/api/get-subscriptions),[`GET /streams`](/api/get-streams), [`GET /events`](/api/get-events),- [`POST /register`](/api/register-queue): Added new `empty_topic_only`- option to `topics_policy` field in Stream and Subscription objects.+ [`POST /register`](/api/register-queue): Added new `"empty_topic_only"`+ option to the `topics_policy` field on Stream and Subscription+ objects.* [`POST /users/me/subscriptions`](/api/subscribe),[`PATCH /streams/{stream_id}`](/api/update-stream): Added new- `empty_topic_only` option to `topics_policy` to support channels- with topics disabled.+ `"empty_topic_only"` option to `topics_policy` parameter for+ ["general chat" channels](/help/general-chat-channels).**Feature level 403**@@ -198,26 +199,31 @@ format used by the Zulip server that they are interacting with.* [`GET /users/me/subscriptions`](/api/get-subscriptions),[`GET /streams`](/api/get-streams), [`GET /events`](/api/get-events),- [`POST /register`](/api/register-queue): Added `topics_policy`- field to Stream and Subscription objects.+ [`POST /register`](/api/register-queue): Added the `topics_policy`+ field to Stream and Subscription objects to support channel-level+ configurations for sending messages to the empty ["general chat"+ topic](/help/general-chat-topic).* [`POST /users/me/subscriptions`](/api/subscribe),[`PATCH /streams/{stream_id}`](/api/update-stream): Added- `topics_policy` parameter to support setting and changing the- the configuration for sending messages in the empty topic of the- channel.-* `PATCH /realm`, [`POST /register`](/api/register-queue),- [`GET /events`](/api/get-events): Added `can_set_topics_policy_group`- realm setting, which is a [group-setting value](/api/group-setting-values)- describing the set of users with permission to change per-channel `topics_policy`+ `topics_policy` parameter to support setting and updating the+ channel-level configuration for sending messages to the+ empty ["general chat" topic](/help/general-chat-topic).+* `PATCH /realm`, [`GET /events`](/api/get-events),+ [`POST /register`](/api/register-queue): Added+ `can_set_topics_policy_group` realm setting, which is a+ [group-setting value](/api/group-setting-values) describing the set+ of users with permission to change the per-channel `topics_policy`setting.* `PATCH /realm`, [`GET /events`](/api/get-events),[`POST /register`](/api/register-queue):- Added a new realm setting, `topics_policy` defining the- default configuration for sending messages in empty topics.+ Added a new realm `topics_policy` setting for the organization's+ default policy for sending channel messages to the empty ["general+ chat" topic](/help/general-chat-topic).* [`GET /events`](/api/get-events), [`POST /register`](/api/register-queue):- Deprecated `mandatory_topics` field in favor of `topics_policy` realm setting.-* `PATCH /realm`: Removed `mandatory_topics` field as it is now replaced by- `topics_policy` field.+ Deprecated the realm `mandatory_topics` setting in favor of the new+ realm `topics_policy` setting.+* `PATCH /realm`: Removed the `mandatory_topics` parameter as it is now+ replaced by the realm `topics_policy` setting.**Feature level 391**diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 3433681638c..fef61c9579a 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -5173,27 +5173,30 @@ paths:description: |The URL of the organization's wide logo configured in the[organization profile](/help/create-your-organization-profile).- mandatory_topics:- type: boolean- deprecated: true- description: |- Whether [topics are required](/help/require-topics) for messages in this organization.-- **Changes**: Deprecated in Zulip 11.0 (feature level 392). This configuration is- now controlled by `topics_policy` realm setting.topics_policy:type: stringenum:- allow_empty_topic- disable_empty_topicdescription: |- Configuration defining the default policy for sending messages in empty topics.+ The organization's default policy for sending channel messages to the+ [empty "general chat" topic](/help/general-chat-topic).- - allow_empty_topic - Topics are not required to send messages in the channels.- - disable_empty_topic - Topics are required to send messages in the channels.+ - `"allow_empty_topic"`: Channel messages can be sent to the empty topic.+ - `"disable_empty_topic"`: Channel messages cannot be sent to the empty topic.- **Changes**: New in Zulip 11.0 (feature level 392). Previously, this configuration was- controlled by a boolean realm setting, `mandatory_topics`.+ **Changes**: New in Zulip 11.0 (feature level 392). Previously, this was+ controlled by the boolean realm `mandatory_topics` setting, which is now+ deprecated.+ mandatory_topics:+ type: boolean+ deprecated: true+ description: |+ Whether [topics are required](/help/require-topics) for messages in this+ organization.++ **Changes**: Deprecated in Zulip 11.0 (feature level 392). This is now+ controlled by the realm `topics_policy` setting.max_file_upload_size_mib:type: integerdescription: |@@ -18902,16 +18905,6 @@ paths:Whether this organization has been configured to enable[previews of linked websites](/help/image-video-and-website-previews).- realm_mandatory_topics:- type: boolean- deprecated: true- description: |- Present if `realm` is present in `fetch_event_types`.-- Whether [topics are required](/help/require-topics) for messages in this organization.-- **Changes**: Deprecated in Zulip 11.0 (feature level 392). This configuration is- now controlled by `topics_policy` realm setting.realm_topics_policy:type: stringenum:@@ -18920,13 +18913,26 @@ paths:description: |Present if `realm` is present in `fetch_event_types`.- Configuration defining the default policy for sending messages in empty topics.+ The organization's default policy for sending channel messages to the+ [empty "general chat" topic](/help/require-topics).++ - `"allow_empty_topic"`: Channel messages can be sent to the empty topic.+ - `"disable_empty_topic"`: Channel messages cannot be sent to the empty topic.++ **Changes**: New in Zulip 11.0 (feature level 392). Previously, this was+ controlled by the boolean `realm_mandatory_topics` setting, which is now+ deprecated.+ realm_mandatory_topics:+ type: boolean+ deprecated: true+ description: |+ Present if `realm` is present in `fetch_event_types`.- - allow_empty_topic - Topics are not required to send messages in the channels.- - disable_empty_topic - Topics are required to send messages in the channels.+ Whether [topics are required](/help/require-topics) for messages in this+ organization.- **Changes**: New in Zulip 11.0 (feature level 392). Previously, this configuration was- controlled by a boolean realm setting, `mandatory_topics`.+ **Changes**: Deprecated in Zulip 11.0 (feature level 392). This is now+ controlled by the realm `topics_policy` setting.realm_message_retention_days:type: integerdescription: |@@ -28000,22 +28006,36 @@ components:- allow_empty_topic- disable_empty_topic- empty_topic_only+ example: inheritdescription: |- Setting defining the policy for sending messages to the empty topic in- this channel.+ Whether [named topics](/help/introduction-to-topics) and the empty+ topic (i.e., ["general chat" topic](/help/general-chat-topic))+ are enabled in this channel.- - inherit - Channel will inherit the organization-level setting, `realm_topics_policy`.- - allow_empty_topic - Topics are not required to send messages in the channel.- - disable_empty_topic - Topics are required to send messages in the channel.- - empty_topic_only - Only the empty topic is available in this channel.+ - `"inherit"`: Messages can be sent to named topics in this channel,+ and the [organization-level `realm_topics_policy`][realm-topics-policy]+ is used for whether messages can be sent to the empty topic in this+ channel.+ - `"allow_empty_topic"`: Messages can be sent to both named topics and+ the empty topic in this channel.+ - `"disable_empty_topic"`: Messages can be sent to named topics in this+ channel, but the empty topic is disabled.+ - `"empty_topic_only"`: Messages can be sent to the empty topic in this+ channel, but named topics are disabled. See ["general chat"+ channels](/help/general-chat-channels).++ The `"empty_topic_only"` policy can only be set if all existing messages+ in the channel are already in the empty topic.- The `empty_topic_only` policy can only be enabled in a channel if all- messages in the channel are already in the empty topic.+ When creating a new channel, if the `topics_policy` is not specified, the+ `"inherit"` option will be set.- **Changes**: In Zulip 11.0 (feature level 404), `empty_topic_only` option- was added.+ **Changes**: In Zulip 11.0 (feature level 404), the `"empty_topic_only"`+ option was added.New in Zulip 11.0 (feature level 392).++ [realm-topics-policy]: /help/require-topics#set-the-default-general-chat-topic-configurationChannelCanAddSubscribersGroup:allOf:- $ref: "#/components/schemas/GroupSettingValue"