Skip to content

[CP Staging] Revert "refactor: isolate dismissDuplicateTransactionViolation from Onyx.connect data"#74330

Merged
luacmartins merged 1 commit intomainfrom
revert-72955-@Skalakid/refactor/useonyx-deprecate-onyx-connect/dismissDuplicateTransactionViolation-src-libs-actions-Transaction.ts
Nov 5, 2025
Merged

[CP Staging] Revert "refactor: isolate dismissDuplicateTransactionViolation from Onyx.connect data"#74330
luacmartins merged 1 commit intomainfrom
revert-72955-@Skalakid/refactor/useonyx-deprecate-onyx-connect/dismissDuplicateTransactionViolation-src-libs-actions-Transaction.ts

Conversation

@tgolen
Copy link
Copy Markdown
Contributor

@tgolen tgolen commented Nov 5, 2025

Reverts #72955

Fixed issues

$ #74255

This PR needs reverted because it lead to a deploy blocker.

We changed the key format from just the transactionID to the full Onyx collection key (transaction_123), but the code in dismissDuplicateTransactionViolation()still expects the transactionID as the key.

The original collection for the violations is here and it was extracting transaction_ from the key in the collection. So allTransactionViolation was only keyed by the transactionID.

In the new code here, the collection is keyed by transaction_<transactionID>.

This causes the lookups here to fail.

cc @Skalakid

@tgolen tgolen requested a review from NikkiWines November 5, 2025 14:56
@tgolen tgolen self-assigned this Nov 5, 2025
@tgolen tgolen requested review from a team as code owners November 5, 2025 14:56
@melvin-bot melvin-bot Bot requested review from joekaufmanexpensify and removed request for a team November 5, 2025 14:56
@tgolen tgolen changed the title Revert "refactor: isolate dismissDuplicateTransactionViolation from Onyx.connect data" [CP Staging] Revert "refactor: isolate dismissDuplicateTransactionViolation from Onyx.connect data" Nov 5, 2025
@melvin-bot melvin-bot Bot requested a review from stitesExpensify November 5, 2025 14:56
@melvin-bot
Copy link
Copy Markdown

melvin-bot Bot commented Nov 5, 2025

@stitesExpensify 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 5, 2025 14:56
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 5, 2025

LGTM 👍 Thank you for your hard work!

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 5, 2025

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pages/TransactionDuplicate/Review.tsx 0.00% 4 Missing ⚠️
src/libs/actions/Transaction.ts 0.00% 3 Missing ⚠️
Files with missing lines Coverage Δ
src/libs/actions/Transaction.ts 46.88% <0.00%> (-11.93%) ⬇️
src/pages/TransactionDuplicate/Review.tsx 0.00% <0.00%> (ø)

... and 16 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.

@luacmartins
Copy link
Copy Markdown
Contributor

Straight revert, merging without checklists

@luacmartins luacmartins merged commit dfecdfd into main Nov 5, 2025
28 of 32 checks passed
@luacmartins luacmartins deleted the revert-72955-@Skalakid/refactor/useonyx-deprecate-onyx-connect/dismissDuplicateTransactionViolation-src-libs-actions-Transaction.ts branch November 5, 2025 15:18
@melvin-bot melvin-bot Bot added the Emergency label Nov 5, 2025
@melvin-bot
Copy link
Copy Markdown

melvin-bot Bot commented Nov 5, 2025

@luacmartins 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.

OSBotify pushed a commit that referenced this pull request Nov 5, 2025
…tor/useonyx-deprecate-onyx-connect/dismissDuplicateTransactionViolation-src-libs-actions-Transaction.ts

[CP Staging] Revert "refactor: isolate dismissDuplicateTransactionViolation from Onyx.connect data"

(cherry picked from commit dfecdfd)

(cherry-picked to staging by luacmartins)
@OSBotify OSBotify added the CP Staging marks PRs that have been CP'd to staging label Nov 5, 2025
@OSBotify
Copy link
Copy Markdown
Contributor

OSBotify commented Nov 5, 2025

🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.2.44-3 🚀

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

@Julesssss
Copy link
Copy Markdown
Contributor

Requested a retest here

@Julesssss
Copy link
Copy Markdown
Contributor

This revert resolved the linked issue, I checked both off the checklist

@OSBotify
Copy link
Copy Markdown
Contributor

OSBotify commented Nov 5, 2025

🚀 Deployed to production by https://github.com/luacmartins in version: 9.2.44-5 🚀

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

@OSBotify
Copy link
Copy Markdown
Contributor

OSBotify commented Nov 5, 2025

🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.2.45-0 🚀

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

@OSBotify
Copy link
Copy Markdown
Contributor

OSBotify commented Nov 6, 2025

🚀 Deployed to production by https://github.com/luacmartins in version: 9.2.45-6 🚀

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

Labels

CP Staging marks PRs that have been CP'd to staging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants