cherrypick fix: Fix transaction metric event asset type detection (#24770) into v11.16.1#24843
Merged
dbrans merged 1 commit intoVersion-v11.16.1from May 28, 2024
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## Version-v11.16.1 #24843 +/- ##
=================================================
Coverage 67.42% 67.42%
=================================================
Files 1265 1265
Lines 49385 49385
Branches 12846 12846
=================================================
Hits 33296 33296
Misses 16089 16089 ☔ View full report in Codecov by Sentry. |
<!-- 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. --> We collect metric data for each phase of a transaction's lifecycle. During one phase, we try to detect the type of asset being transacted. This step was broken due to a missing `await`, so the asset type was never identified. Additionally, the missing `await` meant that errors were not being handled correctly, resulting in many junk Sentry error events. This seems to have been broken as part of a TypeScript refactor, in that was added in #21330 [](https://codespaces.new/MetaMask/metamask-extension/pull/24770?quickstart=1) Fixes #18300 TODO I haven't reproduced any actual bug/missing metrics data from this yet, but presumably we should see that and be able to test this. I discovered this by looking into the Sentry error volume side-effect. N/A - [x] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] 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. - [ ] 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. Co-authored-by: Derek Brans <dbrans@gmail.com>
cb98f67 to
77a36b5
Compare
Collaborator
Builds ready [77a36b5]
Page Load Metrics (1407 ± 522 ms)
|
Collaborator
|
No release label on PR. Adding release label release-11.16.1 on PR, as PR was cherry-picked in branch 11.16.1. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🍒-pick fix: Fix transaction metric event asset type detection c1bba92 (#24770) into v11.16.1
Merge conflict in
shared/modules/transaction.utils.ts(accepted incoming):