Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-814

Global Header: Custom Search bar does not emit search analytics data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 1.5.0
    • UI
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      Backstage search component emits the Search analytics data such as `search`, `discover` events with additional metadata but the custom search component in global header does not emit the search analytics data.

       

      Prerequisites (if any, like setup, operators/versions):

      Setup analytics in the application.

      /packages/app/src/apis.ts

      createApiFactory(analyticsApiRef, {
       captureEvent: (event:AnalyticsEvent) => {
         console.log('Captured event:', event);
        },
      }), 

      Steps to Reproduce

      1. Use search bar and see if the events are logged in the console.

      Actual results:

      `search` and `discover` events are not emitted.

      Expected results:

      `search` and `discover` events should be emitted like default backstage search component.

      Reproducibility (Always/Intermittent/Only Once):

      Always

       

              karthik.jk Karthik Jeeyar
              karthik.jk Karthik Jeeyar
              RHIDP - Frontend Plugins & UI
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: