Skip to content

Add tracking for "Find file" feature (repository)

What does this MR do and why?

Adding instrumentation to:

  • Find file button on tree view
  • Find file button on blob view
  • find file shortcut on any view

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

No visible changes. Here are some screenshots showing the tracking:

Screenshot_2024-06-07_at_17.50.34

Screenshot_2024-06-07_at_21.22.16

Verified with Metrics UI:

Screenshot_2024-06-11_at_12.32.43

Screenshot_2024-06-11_at_12.32.13

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Open a project of you choice and a network tab in your browser
  2. On any view within that project use t shortcut. That will open the search modal with ~ for finding a file. Your network tab should show track_event with the additional property that should equal to the path of the view you're at.
  3. Go to Project > Repository and click Find file button. Your network tab should show track_event with the additional property that should equal to the path of the view you're at.
  4. Select any file from the Repository view and then click Find file button. Your network tab should show track_event with the additional property that should equal to the path of the view you're at.

Related to #454655 (closed)

Edited by Paulina Sedlak-Jakubowska

Merge request reports