Repository navigation
Copy merchant rules only along with Rules when duplicating a workspace - #102930
Conversation
Co-authored-by: TaduJR <TaduJR@users.noreply.github.com>
|
I created this PR from an upstream branch since I don't have push access to your fork. To take ownership of this branch and be able to push updates, run: Then you can close this PR and open a new one from your fork. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
🤖 Android test steps verification results: ✅ pass On standalone Android NewDot, the "Merchant rules" row on the Duplicate workspace "Select features" step now depends on "Rules" in both directions. The duplicated workspace copies the merchant rule only when both rows are checked.
|
|
@MelvinBot Please replace your PR description with the below DescriptionExplanation of ChangeOn the Duplicate workspace "Select features" step, Rules and Merchant rules were two separate checkboxes. Unchecking Rules left Merchant rules checked, so the merchant rules were still copied to the new workspace. Merchant rules live under Rules, so they now follow it:
The checkboxes on screen and the request sent to the server now read the same selection, so what is checked is exactly what gets copied. Tests cover each case above, plus duplicating with both options unchecked. Fixed Issues$ #102869 TestsBefore you start
Test 1: Unchecking Rules also unchecks Merchant rules
Test 2: Checking Merchant rules also checks Rules
Test 3: Rules can be copied without merchant rules
Test 4: Merchant rules are still copied when both are checked
Offline testsSame as tests QA StepsSame as tests
PR Author Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / Safari |
|
I replaced the PR description with your text. I removed only the outer |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid-Native.mp4Android: mWeb ChromeAndroid-mWeb.mp4iOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMac-Chrome.mp4 |
|
@MelvinBot Please make the PR ready for review |
|
🤖 I couldn't mark this PR ready for review. The command was blocked because this run doesn't have permission to change the PR's draft status. You're an assignee, so you can do it yourself. Click Ready for review at the bottom of the PR's Conversation tab. |
|
Friendly Bump @marcaaron Thanks! |
|
@MelvinBot Please merge main! |
…paceMerchantRulesFollowRules Co-authored-by: TaduJR <TaduJR@users.noreply.github.com>
|
The failing checks are unrelated to this PR's code, so I didn't push a fix.
Evidence
|
|
Nothing has changed since my last comment, so there is still no code to fix.
All other checks pass on |
|
@MelvinBot Please merge main and make the PR ready for review. |
…paceMerchantRulesFollowRules Co-authored-by: TaduJR <TaduJR@users.noreply.github.com>
Codex Review SummaryThis 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. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
I can help if this requires secondary review and testing |
|
🚧 marcaaron has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 9.5.7-0 🚀
|
|
No help site update is needed. This is a bug fix that makes Merchant rules follow Rules as users would expect, and Duplicate-Workspace.md still correctly lists both as options. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.5.7-3 🚀
Bundle Size Analysis (Sentry): |















Explanation of Change
On the Duplicate workspace "Select features" step, Rules and Merchant rules were two separate checkboxes. Unchecking Rules left Merchant rules checked, so the merchant rules were still copied to the new workspace.
Merchant rules live under Rules, so they now follow it:
The checkboxes on screen and the request sent to the server now read the same selection, so what is checked is exactly what gets copied.
Tests cover each case above, plus duplicating with both options unchecked.
Fixed Issues
$ #102869
PROPOSAL: #102869 (comment)
Tests
Before you start
Starbucksand tap Save. For Description, typeCoffeeand tap Save. Then tap Save rule.Test 1: Unchecking Rules also unchecks Merchant rules
Test 2: Checking Merchant rules also checks Rules
Test 3: Rules can be copied without merchant rules
Test 4: Merchant rules are still copied when both are checked
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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