settings: Add realm-level setting 'zulip_update_announcements_stream'.

This commit adds a realm-level setting named
'zulip_update_announcements_stream' that configures the
stream to which zulip updates should be posted.

Fixes part of #28604.
This commit is contained in:
Prakhar Pratyush
2024-01-26 19:15:37 +05:30
committed by Tim Abbott
parent e6109ba192
commit fe1a20ebb3
29 changed files with 393 additions and 13 deletions

View File

@@ -918,7 +918,12 @@ def check_realm_update(
assert "extra_data" not in event
if prop in ["new_stream_announcements_stream_id", "signup_announcements_stream_id", "org_type"]:
if prop in [
"new_stream_announcements_stream_id",
"signup_announcements_stream_id",
"zulip_update_announcements_stream_id",
"org_type",
]:
assert isinstance(value, int)
return