Resolve "Add missing snowplow tracking to primary navigation"
What does this MR do and why?
Fires structured snowplow events for actions which currently lack them. Specifically, this adds events to the main menu toggle button (the hamburger icon), and the focus state of the global search input.
Screenshots or screen recordings
after global search focus |
---|
![]() |
after global search blur and menu toggle |
---|
![]() |
How to set up and validate locally
- Set up Snowplow tracking in your local GDK instance
- Install the Snowplow debugger Chrome extension
- Navigate to your local GDK and sign in
- Visit any page where the top navigation menu is visible
- Open the snowplow debugger panel
- Click on the navigation menu toggle and notice the
click_nav
event is firing with labelhamburger_menu
- Click on the global search input and notice the
focus_input
event is fired with labelglobal_search
- Click anywhere else to blur the field and notice the
blur_input
event is fired with labelglobal_search
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #376712 (closed)
Merge request reports
Activity
changed milestone to %15.5
added frontend groupfoundations navigation sectiondev snowplow tracking events typemaintenance + 1 deleted label
assigned to @mikegreiling
- Resolved by 🤖 GitLab Bot 🤖
Proper labels assigned to this merge request. Please ignore me.
@mikegreiling - please see the following guidance and update this merge request.1 Warning Please add a subtype label to this merge request. If you have added a type label and do not feel the purpose of this merge request matches one of the subtypes labels, please resolve this discussion.
Edited by 🤖 GitLab Bot 🤖
added 1 commit
- 129e83fe - Add snowplow event tracking to hamburger menu toggle
Suggested Reviewers (beta)
The individuals below may be good candidates to participate in the review based on various factors.
You can use slash commands in comments to quickly assign
/assign_reviewer @user1
.Suggested Reviewers @dbalexandre
,@rob.hunt
,@felipe_artur
,@ntepluhina
,@f_caplette
If you do not believe these suggestions are useful, please apply the label Bad Suggested Reviewer. You can also provide feedback for this feature on this issue:
https://gitlab.com/gitlab-org/gitlab/-/issues/357923
.Automatically generated by Suggested Reviewers Bot - an experimental ML-based recommendation engine created by ~"group::applied ml".
Reviewer roulette
Changes that require review have been detected!
Please refer to the table below for assigning reviewers and maintainers suggested by Danger in the specified category:
Category Reviewer Maintainer frontend Sharmad Nachnolkar ( @snachnolkar
) (UTC+5.5, 10.5 hours ahead of@mikegreiling
)Jose Ivan Vargas ( @jivanvl
) (UTC-5, same timezone as@mikegreiling
)To spread load more evenly across eligible reviewers, Danger has picked a candidate for each review slot, based on their timezone. Feel free to override these selections if you think someone else would be better-suited or use the GitLab Review Workload Dashboard to find other available reviewers.
To read more on how to use the reviewer roulette, please take a look at the Engineering workflow and code review guidelines. Please consider assigning a reviewer or maintainer who is a domain expert in the area of the merge request.
Once you've decided who will review this merge request, assign them as a reviewer! Danger does not automatically notify them for you.
If needed, you can retry the
danger-review
job that generated this comment.Generated by
DangerBundle size analysis [beta]
This compares changes in bundle size for entry points between the commits 8eb09da2 and 59c0ec58
Special assetsEntrypoint / Name Size before Size after Diff Diff in percent average 3.59 MB 3.59 MB - 0.0 % mainChunk 1.96 MB 1.96 MB - 0.0 %
Note: We do not have exact data for 8eb09da2. So we have used data from: 77f58d6a.
The target commit was too new, so we used the latest commit from master we have info on.
It might help to rerun thebundle-size-review
job
This might mean that you have a few false positives in this report. If something unrelated to your code changes is reported, you can check this comparison in order to see if they caused this change.Please look at the full report for more details
Read more about how this report works.
Generated by
DangerAllure report
allure-report-publisher
generated test report!e2e-review-qa:
test report for 59c0ec58expand test summary
+-----------------------------------------------------------------------------------------+ | suites summary | +------------------------------------+--------+--------+---------+-------+-------+--------+ | | passed | failed | skipped | flaky | total | result | +------------------------------------+--------+--------+---------+-------+-------+--------+ | Manage | 52 | 0 | 8 | 2 | 60 | ❗ | | Create | 28 | 0 | 1 | 0 | 29 | ✅ | | Plan | 47 | 0 | 1 | 0 | 48 | ✅ | | Govern | 2 | 0 | 0 | 0 | 2 | ✅ | | Feature flag handler sanity checks | 9 | 0 | 0 | 0 | 9 | ✅ | | Verify | 12 | 0 | 1 | 0 | 13 | ✅ | | Configure | 0 | 0 | 1 | 0 | 1 | ➖ | | Secure | 2 | 0 | 0 | 0 | 2 | ✅ | | Package | 0 | 0 | 1 | 0 | 1 | ➖ | | Version sanity check | 0 | 0 | 1 | 0 | 1 | ➖ | +------------------------------------+--------+--------+---------+-------+-------+--------+ | Total | 152 | 0 | 14 | 2 | 166 | ❗ | +------------------------------------+--------+--------+---------+-------+-------+--------+
added 390 commits
-
129e83fe...08470331 - 389 commits from branch
master
- 17a40b79 - Add snowplow event tracking to hamburger menu toggle
-
129e83fe...08470331 - 389 commits from branch
added 1 commit
- 64b1a011 - Add test for tracking event in top nav toggle
- Resolved by Zack Cuddy
Note to reviewer: the
toggle
event does not appear to be triggered when the dropdown is closed by clicking elsewhere on the page. I don't see any good way around this without forking the bootstrap BNavItemDropdown class which seems wildly out of scope here.Edited by Mike Greiling
added 1 commit
- a1179268 - Prevent duplicate `focus` events on global search
marked the checklist item I have evaluated the MR acceptance checklist for this MR. as completed
- Resolved by Zack Cuddy
@zcuddy would you mind reviewing this?
/cc @nickbrandt @changzhengliu this pertains to the discussion in https://gitlab.com/gitlab-data/product-analytics/-/issues/306#note_943614031. I want to make sure I'm not stepping on your teams toes with these changes.
requested review from @zcuddy
- Resolved by Mike Greiling
- Resolved by Mike Greiling
- Resolved by Mike Greiling
- Resolved by Mike Greiling
removed review request for @zcuddy
added 814 commits
-
a1179268...9c5b571a - 808 commits from branch
master
- 2468ec86 - Add snowplow event tracking to hamburger menu toggle
- c047325c - Add test for tracking event in top nav toggle
- cd59b55f - Add focus and blur events to the global search input
- 3582bd52 - Update event name for primary menu toggle
- 1ed67242 - Add tests for header search snowplow events
- abc8cab9 - Prevent duplicate `focus` events on global search
Toggle commit list-
a1179268...9c5b571a - 808 commits from branch
added 51 commits
-
abc8cab9...d211ffb3 - 45 commits from branch
master
- f2e10fd7 - Add snowplow event tracking to hamburger menu toggle
- 2f139519 - Add test for tracking event in top nav toggle
- add651ee - Add focus and blur events to the global search input
- f70ef8f0 - Update event name for primary menu toggle
- 10fab58c - Add tests for header search snowplow events
- fb5bcbaa - Prevent duplicate `focus` events on global search
Toggle commit list-
abc8cab9...d211ffb3 - 45 commits from branch
added 59 commits
-
fb5bcbaa...c980eb97 - 52 commits from branch
master
- 27761dbf - Add snowplow event tracking to hamburger menu toggle
- f337d8e4 - Add test for tracking event in top nav toggle
- 930b8777 - Add focus and blur events to the global search input
- c4068273 - Update event name for primary menu toggle
- fefa68d4 - Add tests for header search snowplow events
- 6a42ecbd - Prevent duplicate `focus` events on global search
- 3db19f70 - Add test for isFocused state check and specify event data
Toggle commit list-
fb5bcbaa...c980eb97 - 52 commits from branch
added 1 commit
- 59c0ec58 - Add specific event data to tracking test for hamburger toggle
requested review from @zcuddy
mentioned in issue gitlab-org/manage/foundations/team-tasks#176
- Resolved by Mike Greiling
added maintenancerefactor label
@zcuddy
, thanks for approving this merge request.This is the first time the merge request is approved. To ensure full test coverage, a new pipeline will be started shortly.
For more info, please refer to the following links:
enabled an automatic merge when the pipeline for bdbc79c6 succeeds
mentioned in commit 0ec72d35
added workflowstaging-canary label
added workflowcanary label and removed workflowstaging-canary label
added workflowstaging label and removed workflowcanary label
added workflowproduction label and removed workflowstaging label
added workflowpost-deploy-db-staging label and removed workflowproduction label
added workflowpost-deploy-db-production label and removed workflowpost-deploy-db-staging label
added releasedcandidate label
added devopsmanage label and removed 1 deleted label
added releasedpublished label and removed releasedcandidate label
mentioned in issue #376712 (closed)