mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
channel-folders: Create two channel folders in the dev database.
Adds a visible example to the PATCH /channel_folders endpoint for
reordering an organization's channel folders. So that the example
works in a normal dev environment, we also add a second channel
folder when populating the dev database.
(cherry picked from commit 4f4923ef2b)
This commit is contained in:
committed by
Tim Abbott
parent
bedc06f6c1
commit
28a37f82fa
@@ -25132,6 +25132,7 @@ paths:
|
|||||||
folders.
|
folders.
|
||||||
items:
|
items:
|
||||||
type: integer
|
type: integer
|
||||||
|
example: [2, 1]
|
||||||
required:
|
required:
|
||||||
- order
|
- order
|
||||||
encoding:
|
encoding:
|
||||||
|
|||||||
@@ -1039,14 +1039,23 @@ class Command(ZulipBaseCommand):
|
|||||||
name=SystemGroups.ADMINISTRATORS, realm=zulip_realm, is_system_group=True
|
name=SystemGroups.ADMINISTRATORS, realm=zulip_realm, is_system_group=True
|
||||||
)
|
)
|
||||||
|
|
||||||
channel_folder = check_add_channel_folder(
|
engineering_channel_folder = check_add_channel_folder(
|
||||||
zulip_realm,
|
zulip_realm,
|
||||||
"Engineering",
|
"Engineering",
|
||||||
"For convenient *channel folder* testing! :octopus:",
|
"For convenient *channel folder* testing! :octopus:",
|
||||||
acting_user=iago,
|
acting_user=iago,
|
||||||
)
|
)
|
||||||
|
information_channel_folder = check_add_channel_folder(
|
||||||
|
zulip_realm,
|
||||||
|
"Information",
|
||||||
|
"For user-facing information and questions",
|
||||||
|
acting_user=iago,
|
||||||
|
)
|
||||||
zulip_stream_dict: dict[str, dict[str, Any]] = {
|
zulip_stream_dict: dict[str, dict[str, Any]] = {
|
||||||
"devel": {"description": "For developing", "folder_id": channel_folder.id},
|
"devel": {
|
||||||
|
"description": "For developing",
|
||||||
|
"folder_id": engineering_channel_folder.id,
|
||||||
|
},
|
||||||
# ビデオゲーム - VideoGames (japanese)
|
# ビデオゲーム - VideoGames (japanese)
|
||||||
"ビデオゲーム": {
|
"ビデオゲーム": {
|
||||||
"description": f"Share your favorite video games! {raw_emojis[2]}",
|
"description": f"Share your favorite video games! {raw_emojis[2]}",
|
||||||
@@ -1055,12 +1064,22 @@ class Command(ZulipBaseCommand):
|
|||||||
"announce": {
|
"announce": {
|
||||||
"description": "For announcements",
|
"description": "For announcements",
|
||||||
"can_send_message_group": admins_system_group,
|
"can_send_message_group": admins_system_group,
|
||||||
|
"folder_id": information_channel_folder.id,
|
||||||
},
|
},
|
||||||
"design": {"description": "For design", "creator": hamlet},
|
"design": {"description": "For design", "creator": hamlet},
|
||||||
"support": {"description": "For support"},
|
"support": {
|
||||||
|
"description": "For support",
|
||||||
|
"folder_id": information_channel_folder.id,
|
||||||
|
},
|
||||||
"social": {"description": "For socializing"},
|
"social": {"description": "For socializing"},
|
||||||
"test": {"description": "For testing `code`", "folder_id": channel_folder.id},
|
"test": {
|
||||||
"errors": {"description": "For errors", "folder_id": channel_folder.id},
|
"description": "For testing `code`",
|
||||||
|
"folder_id": engineering_channel_folder.id,
|
||||||
|
},
|
||||||
|
"errors": {
|
||||||
|
"description": "For errors",
|
||||||
|
"folder_id": engineering_channel_folder.id,
|
||||||
|
},
|
||||||
# 조리법 - Recipes (Korean), Пельмени - Dumplings (Russian)
|
# 조리법 - Recipes (Korean), Пельмени - Dumplings (Russian)
|
||||||
"조리법 " + raw_emojis[0]: {
|
"조리법 " + raw_emojis[0]: {
|
||||||
"description": "Everything cooking, from pasta to Пельмени"
|
"description": "Everything cooking, from pasta to Пельмени"
|
||||||
|
|||||||
Reference in New Issue
Block a user