Uploaded image for project: 'Red Hat Advanced Cluster Security'
  1. Red Hat Advanced Cluster Security
  2. ROX-31807

[Testing] Implement analytics events for base images modal and operations

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 4.10.0
    • None
    • None
    • None
    • Rox Sprint 4.10H

      Add comprehensive analytics tracking for all base images management features to measure adoption and usage.

      Implementation Details:

      • Add analytics event constants and implementations using useAnalytics hook
      • Track all base images modal interactions and outcomes
      • Include error types in failure events for debugging
      • Follow existing analytics patterns from watched images feature

      Events to Implement:
      1. BASE_IMAGES_MODAL_OPENED - When user clicks "Base images" in dropdown
      2. BASE_IMAGE_SUBMITTED - When user submits form to add base image
      3. BASE_IMAGE_ADD_SUCCESS - When POST /v2/baseimages succeeds
      4. BASE_IMAGE_ADD_FAILURE - When POST /v2/baseimages fails (include errorType property)
      5. BASE_IMAGE_REMOVED - When DELETE /v2/baseimages succeeds

      Acceptance Criteria:

      • All events fire at the correct times in the user flow
      • Error type included in failure events (INVALID_IMAGE_NAME, NO_VALID_INTEGRATION, SCAN_FAILED, DUPLICATE_PATTERN)
      • Events follow naming convention consistent with watched images events
      • Events are properly tracked in Amplitude
      • No PII or sensitive data included in event properties

              schaudhr Saif Chaudhry
              schaudhr Saif Chaudhry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: