Skip to content

chore(analytics): sweep saveDataRecording from snaps test mocks#31996

Merged
NicolasMassart merged 2 commits into
mainfrom
analytics/finish-pr-e-core-platform
Jun 23, 2026
Merged

chore(analytics): sweep saveDataRecording from snaps test mocks#31996
NicolasMassart merged 2 commits into
mainfrom
analytics/finish-pr-e-core-platform

Conversation

@NicolasMassart

@NicolasMassart NicolasMassart commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

Removes saveDataRecording: false from the inline build() return value in snap-controller-init.test.ts. The field was stale after the legacy saveDataRecording chain was removed in N8 (#31256).

This is PR-E of 6 in the owner-scoped sequence finishing the legacy MetaMetrics migration (#26820). PRs A–E are parallel mock-sweeps; PR-F does the interface removal once all five merge.

Changelog

CHANGELOG entry: null

Related issues

Refs: #26820

Manual testing steps

N/A — test mock cleanup only; unit tests cover the changed file.

Screenshots/Recordings

Before

N/A

After

N/A

Pre-merge author checklist

Performance checks (if applicable)

  • I've tested on Android
    • Ideally on a mid-range device; emulator is acceptable
  • I've tested with a power user scenario
    • Use these power-user SRPs to import wallets with many accounts and tokens
  • I've instrumented key operations with Sentry traces for production performance metrics

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.

Note

Low Risk
Single-line test mock cleanup with no production code or analytics behavior changes.

Overview
Removes the obsolete saveDataRecording: false field from the AnalyticsEventBuilder.build() mock in snap-controller-init.test.ts, aligning the test stub with the current AnalyticsTrackingEvent shape after the legacy MetaMetrics saveDataRecording chain was dropped.

No runtime or snap-controller behavior changes—test mock cleanup only as part of the broader analytics migration (PR-E in a parallel mock-sweep sequence).

Reviewed by Cursor Bugbot for commit 4a3ea16. Bugbot is set up for automated code reviews on this repo. Configure here.

@NicolasMassart NicolasMassart requested a review from a team as a code owner June 18, 2026 12:37
@github-actions

Copy link
Copy Markdown
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.

Removes `saveDataRecording: false` from the inline `build()` return
value in `snap-controller-init.test.ts`. The field was stale after
the legacy `saveDataRecording` chain was removed in N8 (#31256).

Part of #26820.

Co-authored-by: Cursor <cursoragent@cursor.com>
@NicolasMassart NicolasMassart force-pushed the analytics/finish-pr-e-core-platform branch from 8412929 to 8cb8b95 Compare June 18, 2026 13:18
@NicolasMassart NicolasMassart added the skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. label Jun 18, 2026
@NicolasMassart NicolasMassart marked this pull request as ready for review June 18, 2026 13:52
@NicolasMassart NicolasMassart removed the skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. label Jun 18, 2026
@github-project-automation github-project-automation Bot moved this to Needs dev review in PR review queue Jun 18, 2026
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes a stale saveDataRecording: false field from the mocked AnalyticsEventBuilder.build() return value in the Snap controller init unit test, aligning the test stub with the post-legacy MetaMetrics migration event shape.

Changes:

  • Delete obsolete saveDataRecording property from the inline AnalyticsTrackingEvent mock in snap-controller-init.test.ts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@NicolasMassart NicolasMassart enabled auto-merge June 22, 2026 16:37
@NicolasMassart NicolasMassart added this pull request to the merge queue Jun 23, 2026
@github-project-automation github-project-automation Bot moved this from Needs dev review to Review finalised - Ready to be merged in PR review queue Jun 23, 2026
Merged via the queue into main with commit eb32c57 Jun 23, 2026
76 checks passed
@NicolasMassart NicolasMassart deleted the analytics/finish-pr-e-core-platform branch June 23, 2026 14:13
@github-project-automation github-project-automation Bot moved this from Review finalised - Ready to be merged to Merged, Closed or Archived in PR review queue Jun 23, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 23, 2026
@metamaskbotv2 metamaskbotv2 Bot added the release-8.1.0 Issue or pull request that will be included in release 8.1.0 label Jun 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-8.1.0 Issue or pull request that will be included in release 8.1.0 size-XS team-mobile-platform Mobile Platform team

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants