Repository navigation
[Payment due @linhvovan29546] Send the search's violation names with a violation group CSV export - #107364
Conversation
|
@linhvovan29546 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] |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The Web PR has been merged but hasn't been deployed to staging yet. I've put this back on HOLD. The Web PR should reach staging today. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-11-21.at.15.57.14.mov |
linhvovan29546
left a comment
There was a problem hiding this comment.
The Web PR has been merged but hasn't been deployed to staging yet. I've put this back on HOLD. The Web PR should reach staging today.
The Auth PR is on staging, and the change looks good
|
🎯 @linhvovan29546, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
|
This is a pretty clear bug fix, so for the sake of efficiency, I think it's okay to skip the product team member review. |
|
🚧 neil-marcellini has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.5.53-0 🚀
|
|
No help site update needed — this PR fixes grouped CSV exports to respect the search’s violation filters, restoring expected behavior without adding a feature or making existing guidance incorrect. |
|
🤖 Payment issue created: #107983 |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.5.53-3 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
Exporting a
group-by:violationsearch with a selected violation group and an expense selected on its own from another group could put that expense under violations the search never showed.addSelectedGroupsFilterreplaces the search'sviolation:values with the selected groups' values, so the backend no longer knows which violations the search allowed and exports the expense under every violation it has.The Current view CSV export now sends the search's positive
violation:values assearchViolationNameList, read from the query before the selected groups replace them. The backend limits the expenses selected on their own to those violations. It is left out when the search has noviolation:filter, so those expenses keep every violation, as Search shows them.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/697169
PROPOSAL: N/A
Tests
type:expense has:submitted-violation group-by:violation violation:overLimit,missingCategory.ExportSearchToCSVrequest hassearchViolationNameList=overLimit,missingCategory.violation:filter, repeat steps 6 and 7, and verify the request has nosearchViolationNameListand C is under Over limit and Receipt required.Offline tests
Export needs a connection, so there is no offline behavior to test.
QA Steps
type:expense has:submitted-violation group-by:violation violation:overLimit,missingCategory.violation:filter, repeat steps 6 and 7, and verify the request has nosearchViolationNameListand C is under Over limit and Receipt required.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari