-
Notifications
You must be signed in to change notification settings - Fork 5k
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: "Transaction Finalized" metrics event on transaction confirmation #24338
Conversation
…ransaction meta object, as opposed to excepting it to have the transaction meta object as a property. This handles the breaking change brought in with 0de97df
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. |
…n calling createUpdateFinalizeTransactionEventFragment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds ready [756f043]
Page Load Metrics (1097 ± 681 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #24338 +/- ##
========================================
Coverage 67.32% 67.32%
========================================
Files 1276 1276
Lines 49739 49739
Branches 12925 12925
========================================
Hits 33482 33482
Misses 16257 16257 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this one slipped through the cracks 😞 Fix makes sense to me.
Missing release label release-11.14.5 on PR. Adding release label release-11.14.5 on PR and removing other release labels(release-11.18.0), as PR was cherry-picked in branch 11.14.5. |
0de97df brought in a number of breaking changes as it updated the transaction controller.
One of the breaking changes was changing the shape of the object included in the event when a transaction is confirmed:
(https://github.com/MetaMask/core/pull/3827/files#diff-96bc10c64242a8e23f5835532988319189239bdf40f556b86199dcbcc41c7bfcL1353-R1646)
The
handleTransactionConfirmed
handler inapp/scripts/lib/transaction/metrics.ts
was not updated to accommodate this difference. So itsif (!transactionEventPayload.transactionMeta) {
condition was always being hit, and the function was returning early. This PR corrects that, and thereby fixes the "Transaction Finalzied" eventDescription
Related issues
Fixes: #24339
Manual testing steps
SEGMENT_WRITE_KEY
set, and setting "Participate in MetaMetrics" to true.Screenshots/Recordings
tx-finalized-metrics.mp4
Pre-merge reviewer checklist