Skip to content

Revert "Remove call to getReportNameValuePairs() in method canUserPerformWriteAction from ReportUtils.ts part 5"#72897

Merged
blimpich merged 1 commit intomainfrom
revert-72619-fix/67103-part-5.2
Oct 17, 2025
Merged

Revert "Remove call to getReportNameValuePairs() in method canUserPerformWriteAction from ReportUtils.ts part 5"#72897
blimpich merged 1 commit intomainfrom
revert-72619-fix/67103-part-5.2

Conversation

@srikarparsi
Copy link
Contributor

Reverts #72619

@codecov
Copy link

codecov bot commented Oct 17, 2025

Codecov Report

❌ Patch coverage is 52.27273% with 21 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/libs/actions/IOU.ts 60.86% 9 Missing ⚠️
src/pages/ReportDetailsPage.tsx 0.00% 3 Missing ⚠️
src/components/MoneyReportHeader.tsx 0.00% 2 Missing ⚠️
...ort/ContextMenu/PopoverReportActionContextMenu.tsx 0.00% 2 Missing ⚠️
src/components/MoneyRequestHeader.tsx 0.00% 1 Missing ⚠️
...nents/ReportActionItem/MoneyRequestReceiptView.tsx 0.00% 1 Missing ⚠️
src/hooks/useSelectedTransactionsActions.ts 0.00% 1 Missing ⚠️
src/libs/ReportUtils.ts 66.66% 1 Missing ⚠️
src/pages/iou/SplitExpensePage.tsx 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/Expensify.tsx 92.30% <ø> (ø)
src/libs/OptionsListUtils/index.ts 70.58% <100.00%> (-0.06%) ⬇️
src/libs/actions/Report.ts 52.90% <100.00%> (+0.16%) ⬆️
src/components/MoneyRequestHeader.tsx 0.63% <0.00%> (+<0.01%) ⬆️
...nents/ReportActionItem/MoneyRequestReceiptView.tsx 2.20% <0.00%> (+0.01%) ⬆️
src/hooks/useSelectedTransactionsActions.ts 2.94% <0.00%> (+0.29%) ⬆️
src/libs/ReportUtils.ts 74.35% <66.66%> (-0.03%) ⬇️
src/pages/iou/SplitExpensePage.tsx 0.00% <0.00%> (ø)
src/components/MoneyReportHeader.tsx 0.18% <0.00%> (+<0.01%) ⬆️
...ort/ContextMenu/PopoverReportActionContextMenu.tsx 38.17% <0.00%> (-0.66%) ⬇️
... and 2 more

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

@situchan situchan mentioned this pull request Oct 17, 2025
54 tasks
@blimpich blimpich marked this pull request as ready for review October 17, 2025 23:09
@blimpich blimpich requested a review from a team as a code owner October 17, 2025 23:09
@blimpich blimpich merged commit 3de280d into main Oct 17, 2025
29 of 31 checks passed
@blimpich blimpich deleted the revert-72619-fix/67103-part-5.2 branch October 17, 2025 23:09
@melvin-bot melvin-bot bot added the Emergency label Oct 17, 2025
@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2025

@blimpich 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 requested review from amyevans and removed request for a team October 17, 2025 23:09
@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2025

@amyevans 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]

@github-actions
Copy link
Contributor

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

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

undefined,
isChatIOUReportArchived,
);
deleteTrackExpense(reportIDRef.current, originalMessage?.IOUTransactionID, reportAction, duplicateTransactions, duplicateTransactionViolations, isReportArchived);
Copy link

Choose a reason for hiding this comment

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

Bug: Parameter Mismatch Causes Incorrect Deletion Behavior

The deleteTrackExpense call passes isReportArchived as the sixth parameter, which is intended for isSingleTransactionView. This semantic mismatch causes the function to misinterpret the context of the deletion, potentially leading to incorrect navigation or behavior.

Fix in Cursor Fix in Web

@github-actions
Copy link
Contributor

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

@OSBotify
Copy link
Contributor

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

@blimpich
Copy link
Contributor

Straight revert, not emergency

OSBotify pushed a commit that referenced this pull request Oct 17, 2025
(cherry picked from commit 3de280d)

(cherry-picked to staging by blimpich)
@OSBotify OSBotify added the CP Staging marks PRs that have been CP'd to staging label Oct 17, 2025
@OSBotify
Copy link
Contributor

🚀 Cherry-picked to staging by https://github.com/blimpich in version: 9.2.33-4 🚀

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

@OSBotify
Copy link
Contributor

🚀 Deployed to production by https://github.com/mountiny in version: 9.2.33-4 🚀

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

@OSBotify
Copy link
Contributor

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

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

@OSBotify
Copy link
Contributor

🚀 Deployed to production by https://github.com/cristipaval in version: 9.2.34-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

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.

3 participants