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: rename anonymous transaction events. #20736

Merged
merged 8 commits into from
Sep 28, 2023
Merged

Conversation

segun
Copy link
Contributor

@segun segun commented Sep 5, 2023

Explanation

Currently anonymous and non-anonymous events share the same name. This creates confusion on data analysis done by stakeholders and blocks some of the automations and improvements that are being done by the data team. In order to improve this, we should rename the anonymous transactions events in MM to a different name so they can be easily identified and treated differently from the non-anonymous ones.

Acceptance Criterias

  • anonymous Transaction Added event is renamed to Transaction Added Anon
  • anonymous Transaction Approved event is renamed to Transaction Approved Anon
  • anonymous Transaction Rejected event is renamed to Transaction Rejected Anon
  • anonymous Transaction Submitted event is renamed to Transaction Submitted Anon
  • anonymous Transaction Finalized event is renamed to Transaction Finalized Anon
  • No change is made to non-anonymous transactions events
  • Transaction Added Anon, Transaction Approved Anon, Transaction Rejected Anon, Transaction Submitted Anon, Transaction Finalized Anon are added to the transactions events documentation in segment-schema

Manual Testing Steps

  • launch Metamask
  • open test-dapp
  • do a send transaction
  • cancel it
  • do another send transaction
  • confirm it
  • check mix panel and see that Anonymous Transaction events now have Anon appended to the event names

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

@segun segun requested a review from a team as a code owner September 5, 2023 14:19
@segun segun self-assigned this Sep 5, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2023

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.

@segun segun changed the title rename anonymous transaction events. fix: rename anonymous transaction events. Sep 5, 2023
@segun segun force-pushed the olu/rename-anon-tx-events branch from 6278285 to e6e33a4 Compare September 5, 2023 14:20
@segun segun added team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead team-confirmations-secure-ux-PR PRs from the confirmations team needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Sep 5, 2023
@segun segun force-pushed the olu/rename-anon-tx-events branch 3 times, most recently from fde949e to 7320552 Compare September 13, 2023 13:47
@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (d1310d9) 68.42% compared to head (d27b4f0) 68.43%.
Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #20736      +/-   ##
===========================================
+ Coverage    68.42%   68.43%   +0.01%     
===========================================
  Files         1008     1008              
  Lines        40321    40333      +12     
  Branches     10783    10785       +2     
===========================================
+ Hits         27589    27601      +12     
  Misses       12732    12732              
Files Coverage Δ
shared/constants/transaction.ts 100.00% <100.00%> (ø)
app/scripts/controllers/metametrics.js 80.19% <77.78%> (+0.39%) ⬆️

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

@metamaskbot
Copy link
Collaborator

Builds ready [7320552]
Page Load Metrics (1672 ± 80 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1152241442613
domContentLoaded14382207167216780
load14392207167216780
domInteractive14382207167216780
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 701 Bytes (0.02%)
  • ui: 0 Bytes (0.00%)
  • common: 305 Bytes (0.01%)

for (const mockedEndpoint of mockedEndpoints) {
isPending = await mockedEndpoint.isPending();
}

return isPending === !hasRequest;
}, driver.timeout);
}, 100000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be rather change driver.timeout, if this change is required.

@metamaskbot
Copy link
Collaborator

Builds ready [450f6ad]
Page Load Metrics (1651 ± 33 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1161911432211
domContentLoaded1514179116516933
load1515179116516933
domInteractive1514179116516933
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 701 Bytes (0.02%)
  • ui: 0 Bytes (0.00%)
  • common: 305 Bytes (0.01%)

@segun segun force-pushed the olu/rename-anon-tx-events branch from 07788c6 to 969beae Compare September 25, 2023 10:58
@metamaskbot
Copy link
Collaborator

Builds ready [d27b4f0]
Page Load Metrics (1006 ± 433 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint911771242512
domContentLoaded731721102110
load8523841006902433
domInteractive731721102110
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 701 Bytes (0.02%)
  • ui: 0 Bytes (0.00%)
  • common: 305 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [2491ad6]
Page Load Metrics (1256 ± 496 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint862261343014
domContentLoaded701531192211
load81242512561033496
domInteractive701521192211
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 701 Bytes (0.02%)
  • ui: 99 Bytes (0.00%)
  • common: 305 Bytes (0.01%)

@segun segun merged commit 03b2a23 into develop Sep 28, 2023
9 checks passed
@segun segun deleted the olu/rename-anon-tx-events branch September 28, 2023 13:45
@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2023
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Sep 28, 2023
@metamaskbot metamaskbot added the release-11.3.0 Issue or pull request that will be included in release 11.3.0 label Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.3.0 Issue or pull request that will be included in release 11.3.0 team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead team-confirmations-secure-ux-PR PRs from the confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants