mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
integrations: Rename config_options "description" field.
This renames WebhookConfigOption's "description" field to "label". That name is consistent with how config_data is declared on the events and API level, it's also a more accurate description of how the field is used in the web client, as the UI label element for the config_options.
This commit is contained in:
@@ -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
|
||||
|
@@ -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]
|
||||
|
||||
|
||||
|
@@ -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
|
||||
)
|
||||
],
|
||||
),
|
||||
|
Reference in New Issue
Block a user