Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correct duplicate notifications event tracking in global menu (#… #26616

Conversation

matteoscurati
Copy link
Contributor

@matteoscurati matteoscurati commented Aug 22, 2024

…26525)

Description

This PR addresses an issue where duplicate event tracking calls were made in the handleNotificationsClick function within the GlobalMenu component. This redundancy could lead to inaccurate event logging and unnecessary data collection. Also, the PR removes an unnecessary property.

Open in GitHub Codespaces

Related issues

Fixes: N/A

Manual testing steps

  1. Open the global menu
  2. Click on the notifications menu item
  3. Verify that the event is tracked only once

Screenshots/Recordings

Before

N/A

After

N/A

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Description

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

…26525)

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

This PR addresses an issue where duplicate event tracking calls were
made in the `handleNotificationsClick` function within the `GlobalMenu`
component. This redundancy could lead to inaccurate event logging and
unnecessary data collection. Also, the PR removes an unnecessary
property.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/26525?quickstart=1)

## **Related issues**

Fixes: N/A

## **Manual testing steps**

1. Open the global menu
2. Click on the notifications menu item
3. Verify that the event is tracked only once

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

N/A

### **After**

N/A

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
@matteoscurati matteoscurati added the team-notifications Notifications team label Aug 22, 2024
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@matteoscurati matteoscurati marked this pull request as ready for review August 22, 2024 15:14
@matteoscurati matteoscurati requested a review from a team as a code owner August 22, 2024 15:14
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.83%. Comparing base (b7db14f) to head (2362b94).

Files Patch % Lines
...i/components/multichain/global-menu/global-menu.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           Version-v12.1.0   #26616   +/-   ##
================================================
  Coverage            69.83%   69.83%           
================================================
  Files                 1368     1368           
  Lines                48655    48655           
  Branches             13435    13435           
================================================
  Hits                 33974    33974           
  Misses               14681    14681           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@benjisclowder benjisclowder merged commit 4d299d8 into Version-v12.1.0 Aug 22, 2024
71 of 72 checks passed
@benjisclowder benjisclowder deleted the v12.0.1/cherry-pick-084768a1b85f99ff90fe3f6d4e706f6534a7af5b branch August 22, 2024 15:38
@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [2362b94]
Page Load Metrics (134 ± 152 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint62161942110
domContentLoaded95623115
load381514134317152
domInteractive95623115

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-notifications Notifications team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants