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:
Verified with Metrics UI:
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Open a project of you choice and a network tab in your browser
- On any view within that project use
t
shortcut. That will open the search modal with~
for finding a file. Your network tab should showtrack_event
with the additional property that should equal to the path of the view you're at. - 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. - 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