Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
minor: Use virtual_parent for custom fetchers.
Steve Howell927b04368e03
diff --git a/zerver/lib/export.py b/zerver/lib/export.pyindex 1839a247e7c..3c649c1840d 100644--- a/zerver/lib/export.py+++ b/zerver/lib/export.py@@ -457,6 +457,13 @@ class Config:if self.custom_fetch:# enforce a naming conventionassert self.custom_fetch.__name__.startswith("custom_fetch_")+ if self.normal_parent is not None:+ raise AssertionError(+ """+ If you have a custom fetcher, then specify+ your parent as a virtual_parent.+ """+ )if normal_parent is not None:self.parent: Optional[Config] = normal_parent@@ -815,7 +822,7 @@ def get_realm_config() -> Config:"_huddle_subscription","zerver_huddle",],- normal_parent=user_profile_config,+ virtual_parent=user_profile_config,custom_fetch=custom_fetch_huddle_objects,)