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:
PieterCK
2025-06-19 14:17:09 +07:00
committed by Tim Abbott
parent feb25b0e6b
commit 4775f9673f
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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]

View File

@@ -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
)
],
),