Merging optimistic transactions violations for policy categories#62234
Merging optimistic transactions violations for policy categories#62234arosiclair merged 32 commits intoExpensify:mainfrom
Conversation
… three category action functions
|
@mananjadhav 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] |
|
Hi @m-natarajan. Apart from applying the fix in the |
|
@Tony-MK I think it's best answered by @cead22 and @arosiclair.
|
|
Yes that'd be great! If you want to do it in a separate PR I can create a separate issue for it, just let me know |
|
Yeah, I believe it's better to separate the two. Thank you. I will create the other PR by tomorrow. |
|
@mananjadhav, I updated the test cases. I noticed a problem with Test Case 3, where the violation disappears briefly, and another error is shown because the expense was not submitted before I went offline. Test.Case.3.mov |
|
I think that is unrelated to the PR. Will let @arosiclair and @cead22 confirm once. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-category-violations.movAndroid: mWeb Chromemweb-chrome-category-violations.moviOS: HybridAppios-category-violations.moviOS: mWeb Safarimweb-safari-category-violations.movMacOS: Chrome / Safariweb-category-violations.mp4MacOS: Desktopdesktop-category-violations.mov |
|
Also tagging @cead22 |
|
@Tony-MK Can you please resolve the conflicts? |
@mananjadhav, done. |
|
@mananjadhav can you retest with the new changes? |
|
@arosiclair @cead22 Tested again with the latest changes. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 9.1.69-0 🚀
|
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 9.1.69-0 🚀
|
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 9.1.69-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.69-3 🚀
|
Explanation of Change
When we delete a policy category, the violations of the policy's transactions need to be updated optimistically if the policy category was used.
Fixed Issues
$ #61306
PROPOSAL: #61306 (comment)
Test Case 1:
Test Case 2:
Test Case 3:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.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
Android.-.mWeb.mov
iOS: Native
iOS.-.Native.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Test Case 1:
macOS.-.Chrome.mov
Test Case 2:
Test.Case.2.mov
Test Case 3:
Test.Case.3.mov
Offline Test:
Offline.mov
MacOS: Desktop
macOS.-.Desktop.mov