mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
backend: Add org_type to realm settings updates and events.
`org_type` already exists as a field in the Realm model and is used when organizations are created / updated in Zulip Cloud, via the `/analytics/support` view. Extends the `PATCH /realm` view to be able update `org_type` as other realm / organization settings are updated, but using the special log / action that was created for the analytics view. Adds a field to the `realm op: update` / `realm op: update_dict` events, which also means an event is now sent when and if the `org_type` is updated via the analytics view. This is similar to how updates to an organization's `plan_type` trigger events. Adds `realm_org_type` as a realm setting fetched from the `POST /register` endpoint.
This commit is contained in:
committed by
Tim Abbott
parent
9df0f1433e
commit
d2207d4ad5
@@ -883,7 +883,7 @@ def check_realm_update(
|
||||
|
||||
assert "extra_data" not in event.keys()
|
||||
|
||||
if prop in ["notifications_stream_id", "signup_notifications_stream_id"]:
|
||||
if prop in ["notifications_stream_id", "signup_notifications_stream_id", "org_type"]:
|
||||
assert isinstance(value, int)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user