mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
streams: Add API support to update folder of a stream.
Fixes part of #31972.
This commit is contained in:
@@ -545,6 +545,7 @@ def check_stream_update(
|
||||
"stream_id",
|
||||
"first_message_id",
|
||||
"is_archived",
|
||||
"folder_id",
|
||||
}
|
||||
|
||||
if prop == "description":
|
||||
@@ -584,6 +585,9 @@ def check_stream_update(
|
||||
elif prop == "is_archived":
|
||||
assert extra_keys == set()
|
||||
assert isinstance(value, bool)
|
||||
elif prop == "folder_id":
|
||||
assert extra_keys == set()
|
||||
assert value is None or isinstance(value, int)
|
||||
else:
|
||||
raise AssertionError(f"Unknown property: {prop}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user