Skip to content

chore(analytics): sweep saveDataRecording from bridge-controller test mocks#31994

Open
NicolasMassart wants to merge 3 commits into
mainfrom
analytics/finish-pr-d-swaps
Open

chore(analytics): sweep saveDataRecording from bridge-controller test mocks#31994
NicolasMassart wants to merge 3 commits into
mainfrom
analytics/finish-pr-d-swaps

Conversation

@NicolasMassart

@NicolasMassart NicolasMassart commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

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

This is PR-D 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
Test-only mock cleanup with no production or analytics runtime changes.

Overview
Removes the obsolete saveDataRecording: false field from the AnalyticsEventBuilder build() mock in bridge-controller-init.test.ts, aligning the test stub with AnalyticsTrackingEvent after the legacy saveDataRecording chain was dropped (N8 / #31256).

This is PR-D in the owner-scoped mock sweep ahead of removing the field from the analytics interface (#26820); runtime bridge init and metrics behavior are unchanged.

Reviewed by Cursor Bugbot for commit 263cde4. 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:36
@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.

… mocks

Removes `saveDataRecording: false` from the inline `build()` return
value in `bridge-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-d-swaps branch from c14e6dc to 7d1bb2a Compare June 18, 2026 13:20
Co-authored-by: Cursor <cursoragent@cursor.com>
@NicolasMassart NicolasMassart added skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. and removed skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. labels Jun 18, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.38%. Comparing base (4e34bc5) to head (e259246).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #31994   +/-   ##
=======================================
  Coverage   83.37%   83.38%           
=======================================
  Files        5816     5819    +3     
  Lines      151922   151988   +66     
  Branches    35741    35748    +7     
=======================================
+ Hits       126662   126728   +66     
  Misses      16588    16588           
  Partials     8672     8672           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@NicolasMassart NicolasMassart marked this pull request as ready for review June 18, 2026 14:26
@sonarqubecloud

Copy link
Copy Markdown

@NicolasMassart NicolasMassart moved this to Needs dev review in PR review queue Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Needs dev review

Development

Successfully merging this pull request may close these issues.

2 participants