Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
integrations: Load optional fields for fixtureless screenshot configs.
Niloth P23a8e2674138
diff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.pyindex d52fb7248d6..c323d407a62 100644--- a/zerver/lib/integrations.py+++ b/zerver/lib/integrations.py@@ -862,6 +862,14 @@ for integration, screenshots_contents in FIXTURELESS_SCREENSHOT_CONTENT.items():for screenshot_content in screenshots_contents]+FIXTURELESS_SCREENSHOT_CONFIG_OPTIONAL_FIELDS = {}++for integration, fields in FIXTURELESS_SCREENSHOT_CONFIG_OPTIONAL_FIELDS.items():+ assert integration in FIXTURELESS_SCREENSHOT_CONFIG+ for field_name, value in fields.items():+ # Assume a single screenshot config for each integration+ setattr(FIXTURELESS_SCREENSHOT_CONFIG[integration][0], field_name, value)+DOC_SCREENSHOT_CONFIG: dict[str, list[WebhookScreenshotConfig] | list[FixturelessScreenshotConfig]] = {