Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integrations: Rename config_options "description" field.

PieterCK4775f9673f39
diff --git a/zerver/lib/events.py b/zerver/lib/events.py
index c9dd3bd3912..5720dc5d739 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 5b3a9d99d28..b0d5ad4daa1 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 bd15efcab93..592229c7246 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
)
],
),