Skip to content

Add language facet tracking

Tomas Bulva requested to merge 342651-tracking into master

What does this MR do and why?

Adding missing tracking events.

Events:

  • Fetch Buckets (getting all possible filters from API)
  • Show More (clicked show more button, more than 10 filters)
  • Show Has Over Max Label (has more than 100 filters)
  • Submit Query (click apply button)
  • Parse Url Query (when URL has active filters)
  • Select Filter (click check box)

Screenshots or screen recordings

Screenshot_2023-02-09_at_11.05.58

Screenshot_2023-02-09_at_11.05.37

How to set up and validate locally

  1. Checkout this branch
  2. Enable the language aggregation
    echo 'Feature.enable(:search_blobs_language_aggregation)' | rails c
  3. Setup the Advanced Search
  4. Enable the Advanced Search
  5. Visit the search page http://gdk:3000/search
  6. Scope blob is now only visible when a group or project is selected.
  7. Scope blob contains language filter
  8. Check the snowplow events

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #342651 (closed)

Edited by Tomas Bulva

Merge request reports

Loading