Skip to content

[NoQA] Revert "[No QA] Send fullstory session id to Sentry"#73982

Merged
mountiny merged 1 commit intomainfrom
revert-73843-feat/sentry-fullstory-session-id
Nov 3, 2025
Merged

[NoQA] Revert "[No QA] Send fullstory session id to Sentry"#73982
mountiny merged 1 commit intomainfrom
revert-73843-feat/sentry-fullstory-session-id

Conversation

@aldo-expensify
Copy link
Contributor

Reverts #73843

getChatFSClass: jest.fn(),
init: jest.fn(),
onReady: jest.fn().mockResolvedValue(undefined),
onReady: jest.fn(),
Copy link
Contributor

Choose a reason for hiding this comment

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

❌ Incomplete Revert - Mock Return Type Mismatch

Issue: The revert changes onReady: jest.fn().mockResolvedValue(undefined) to onReady: jest.fn(), but this creates a type mismatch.

Problem:

  • The actual onReady implementation in src/libs/Fullstory/index.native.ts returns Promise.resolve()
  • The type definition in src/libs/Fullstory/types.ts declares onReady: () => Promise<unknown>
  • After this revert, the mock will return undefined instead of a Promise, breaking any tests that call .then() on it

Suggested fix: Change line 20 to maintain Promise compatibility:

onReady: jest.fn().mockResolvedValue(undefined),

Or if reverting to a previous state that didn't need a resolved promise, verify that's the correct historical behavior.

@github-actions
Copy link
Contributor

LGTM 👍 Thank you for your hard work!

@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/CONST/index.ts 85.71% <ø> (ø)
src/Expensify.tsx 85.00% <ø> (ø)
src/libs/Fullstory/index.native.ts 0.00% <ø> (ø)
src/libs/Fullstory/index.ts 0.00% <ø> (ø)

... and 7 files with indirect coverage changes

🚀 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.

@mountiny mountiny marked this pull request as ready for review November 3, 2025 02:32
@mountiny mountiny requested a review from a team as a code owner November 3, 2025 02:32
Copy link
Contributor

@mountiny mountiny left a comment

Choose a reason for hiding this comment

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

@melvin-bot melvin-bot bot requested a review from dangrous November 3, 2025 02:32
@melvin-bot
Copy link

melvin-bot bot commented Nov 3, 2025

@dangrous Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot removed the request for review from a team November 3, 2025 02:32
@mountiny mountiny merged commit a0f0159 into main Nov 3, 2025
29 of 32 checks passed
@mountiny mountiny deleted the revert-73843-feat/sentry-fullstory-session-id branch November 3, 2025 02:32
@melvin-bot
Copy link

melvin-bot bot commented Nov 3, 2025

@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

@melvin-bot melvin-bot bot added the Emergency label Nov 3, 2025
@mountiny mountiny changed the title Revert "[No QA] Send fullstory session id to Sentry" [NoQA] Revert "[No QA] Send fullstory session id to Sentry" Nov 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

LGTM :feelsgood:. Thank you for your hard work!

@OSBotify
Copy link
Contributor

OSBotify commented Nov 3, 2025

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

OSBotify commented Nov 3, 2025

🚀 Deployed to staging by https://github.com/mountiny in version: 9.2.43-0 🚀

platform result
🖥 desktop 🖥 success ✅
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Nov 4, 2025

🚀 Deployed to production by https://github.com/luacmartins in version: 9.2.43-2 🚀

platform result
🖥 desktop 🖥 success ✅
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants