diff --git a/zerver/lib/events.py b/zerver/lib/events.py index c9dd3bd391..5720dc5d73 100644 --- a/zerver/lib/events.py +++ b/zerver/lib/events.py @@ -743,7 +743,7 @@ def fetch_initial_state_data( "config_options": [ { "key": c.name, - "label": c.description, + "label": c.label, "validator": c.validator.__name__, } for c in integration.config_options diff --git a/zerver/lib/webhooks/common.py b/zerver/lib/webhooks/common.py index 5b3a9d99d2..b0d5ad4daa 100644 --- a/zerver/lib/webhooks/common.py +++ b/zerver/lib/webhooks/common.py @@ -57,7 +57,7 @@ OptionalUserSpecifiedTopicStr: TypeAlias = Annotated[str | None, ApiParamConfig( @dataclass class WebhookConfigOption: name: str - description: str + label: str validator: Callable[[str, str], str | bool | None] diff --git a/zerver/tests/test_bots.py b/zerver/tests/test_bots.py index bd15efcab9..592229c724 100644 --- a/zerver/tests/test_bots.py +++ b/zerver/tests/test_bots.py @@ -46,7 +46,7 @@ stripe_sample_config_options = [ display_name="Stripe", config_options=[ WebhookConfigOption( - name="stripe_api_key", description="Stripe API key", validator=_check_string + name="stripe_api_key", label="Stripe API key", validator=_check_string ) ], ),