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: Update examples of queue_id for uuid format.

Lauryn Menard98074951efe5
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index fda08e5a372..84418f60b15 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -4381,7 +4381,7 @@ paths:
The ID of the registered queue.
example:
{
- "queue_id": "1375801870:2942",
+ "queue_id": "fb67bf8a-c031-47cc-84cf-ed80accacda8",
"events":
[
{
@@ -5394,7 +5394,7 @@ paths:
that it should replace the locally echoed message, rather than adding this new
message (which would be correct if the user had sent the new message from another
device).
- example: "1593114627:0"
+ example: "fb67bf8a-c031-47cc-84cf-ed80accacda8"
- name: local_id
in: query
schema:
@@ -12972,7 +12972,7 @@ paths:
{
"last_event_id": -1,
"msg": "",
- "queue_id": "1517975029:0",
+ "queue_id": "fb67bf8a-c031-47cc-84cf-ed80accacda8",
"realm_emoji":
{
"1":
@@ -16753,8 +16753,8 @@ components:
example:
{
"code": "BAD_EVENT_QUEUE_ID",
- "msg": "Bad event queue id: 1518820930:1",
- "queue_id": "1518820930:1",
+ "msg": "Bad event queue id: fb67bf8a-c031-47cc-84cf-ed80accacda8",
+ "queue_id": "fb67bf8a-c031-47cc-84cf-ed80accacda8",
"result": "error",
}
InvalidMessageError:
@@ -17024,7 +17024,7 @@ components:
`POST /api/v1/register` (see [Register a queue](/api/register-queue)).
schema:
type: string
- example: 1375801870:2942
+ example: fb67bf8a-c031-47cc-84cf-ed80accacda8
required: true
StreamIdInPath:
name: stream_id
diff --git a/zerver/tests/test_markdown.py b/zerver/tests/test_markdown.py
index b5b85a770ec..0bcf52e3bc4 100644
--- a/zerver/tests/test_markdown.py
+++ b/zerver/tests/test_markdown.py
@@ -2932,7 +2932,7 @@ class MarkdownErrorTests(ZulipTestCase):
"``` curl",
"curl {{ api_url }}/v1/register",
" -u BOT_EMAIL_ADDRESS:BOT_API_KEY",
- ' -d "queue_id=1375801870:2942"',
+ ' -d "queue_id=fb67bf8a-c031-47cc-84cf-ed80accacda8"',
"```",
]
@@ -2946,14 +2946,14 @@ class MarkdownErrorTests(ZulipTestCase):
"``` curl",
"curl {{ api_url }}/v1/register",
" -u BOT_EMAIL_ADDRESS:BOT_API_KEY",
- ' -d "queue_id=1375801870:2942"',
+ ' -d "queue_id=fb67bf8a-c031-47cc-84cf-ed80accacda8"',
"```",
]
expected = [
"",
"**curl:curl {{ api_url }}/v1/register",
" -u BOT_EMAIL_ADDRESS:BOT_API_KEY",
- ' -d "queue_id=1375801870:2942"**',
+ ' -d "queue_id=fb67bf8a-c031-47cc-84cf-ed80accacda8"**',
"",
"",
]