Skip to content

Fall back to a generated telemetry event name when creating new widget (7.0) - #27166

Open
dennisoelkers wants to merge 1 commit into
7.0from
backport-7.0/fix-create-new-widget-modal-telemetry-fallback
Open

Fall back to a generated telemetry event name when creating new widget (7.0)#27166
dennisoelkers wants to merge 1 commit into
7.0from
backport-7.0/fix-create-new-widget-modal-telemetry-fallback

Conversation

@dennisoelkers

Copy link
Copy Markdown
Member

Note: This is a backport of #27164 to 7.0.

Description

Motivation and Context

The dashboard "+" create-widget modal looked up the telemetry event name for a widget type directly in TELEMETRY_EVENT_TYPE.SEARCH_WIDGET_CREATE with no fallback. Since that map only defines 4 of the registered widget types, creating a Custom Aggregation, Events Overview, or Text/Markdown widget (or any plugin-provided widgetCreator not in the map) sent sendTelemetry(undefined, ...). Mirror the fallback already used by the sibling AddWidgetButton component.

/nocl No user-facing change.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have requested a documentation update.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

…tModal

The dashboard "+" create-widget modal looked up the telemetry event
name for a widget type directly in TELEMETRY_EVENT_TYPE.SEARCH_WIDGET_CREATE
with no fallback. Since that map only defines 4 of the registered
widget types, creating a Custom Aggregation, Events Overview, or
Text/Markdown widget (or any plugin-provided widgetCreator not in the
map) sent sendTelemetry(undefined, ...). Mirror the fallback already
used by the sibling AddWidgetButton component.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant