Improve command palette metrics tracking 9
What does this MR do and why?
Add tracking for actions
- User clicks an issue result in the command palette
- User clicks a merge request result in the command palette
- User clicks an epic result in recent epics section
- User clicks an issue result in the recent issues section
- User clicks a merge request result in the recent merge requests section
following events were added in earlier MR so all events have the same implementation
- click_project_result_in_command_palette
- click_user_result_in_command_palette
This is a part of large set of internal events we are adding to command palette and global search.
Here is a spreadsheet of all events and requested data to be collected Google Sheet.
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.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Make sure advanced search is installed and enabled
- Make sure you enable zoekt.
- In terminal run
rails runner scripts/internal_events/monitor.rb click_project_result_in_command_palette rails runner scripts/internal_events/monitor.rb click_group_result_in_command_palette rails runner scripts/internal_events/monitor.rb click_merge_request_result_in_command_palette rails runner scripts/internal_events/monitor.rb click_issue_result_in_command_palette rails runner scripts/internal_events/monitor.rb click_recent_issue_result_in_command_palette rails runner scripts/internal_events/monitor.rb click_recent_epic_result_in_command_palette rails runner scripts/internal_events/monitor.rb click_recent_merge_request_result_in_command_palette rails runner scripts/internal_events/monitor.rb click_user_result_in_command_palette
- On any gitlab page press '/'
- Search for any merge_request, click result
- Watch the terminal to indicate the hit
Related to #438845 (closed)
Edited by Tomas Bulva