urls: Add a new endpoint for hotspot and deprecate the old one.

This commit adds a new endpoint 'users/me/onboarding_steps'
deprecating the older 'users/me/hotspots' to mark hotspot as read.

We also renamed the view `mark_hotspot_as_read` to
`mark_onboarding_step_as_read`.

Reason: Our plan is to make this endpoint flexible to support
other types of UI elements not just restricted to hotspots.
This commit is contained in:
Prakhar Pratyush
2023-12-01 16:22:41 +05:30
committed by Tim Abbott
parent 62bfc20ebc
commit ac8af3d6de
12 changed files with 66 additions and 44 deletions

View File

@@ -20,6 +20,16 @@ format used by the Zulip server that they are interacting with.
## Changes in Zulip 8.0
**Feature level 233**
* `POST /users/me/onboarding_steps`: Added a new endpoint that
deprecates the `/users/me/hotspots` endpoint. Added support for
displaying one-time notices in addition to existing hotspots.
This is now used as a common endpoint to mark both types of
onboarding steps, i.e., 'hotspot' and 'one_time_notice'.
There is no compatibility support for `/users/me/hotspots` as
no client other than web app has this feature currently.
**Feature level 232**
* [`POST /register`](/api/register-queue): Added a new