-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Update empty field check logic #26643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@Santhosh-Sellavel 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] |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-09-04.at.2.53.38.PM.movMobile Web - ChromeScreen.Recording.2023-09-04.at.2.58.31.PM.movMobile Web - SafariScreen.Recording.2023-09-04.at.3.00.58.PM.movDesktopScreen.Recording.2023-09-04.at.2.36.40.PM.moviOSScreen.Recording.2023-09-04.at.3.08.39.PM.movAndroidScreen.Recording.2023-09-04.at.3.48.49.PM.mov |
| */ | ||
| function areModifiedFieldsPopulated(transaction) { | ||
| return transaction.modifiedMerchant !== CONST.TRANSACTION.UNKNOWN_MERCHANT && transaction.modifiedAmount !== 0 && transaction.modifiedCreated !== ''; | ||
| function areRequiredFieldsEmpty(transaction) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will have conflicts with this one #26603 lets merge that first and sync iup this branch with it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That one doesn't touch TransactionUtils 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it adds the PARTIAL_TRANSACTION_MERCHANT thats what I meant, maybe there will be no conflict, but I just wanted to go in order 😅 been waiting hours for someone to merge it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I added at the exact same spot and with the same name on purpose, to avoid conflicts 😁
|
Tests worked as expected! Are we good to merge? |
I think so! Let's do it! |
|
✋ 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/MariaHCD in version: 1.3.63-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.63-2 🚀
|
|
🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.3.64-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.64-2 🚀
|
Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/313812
Coming from this comment
Tests
Follow the steps in Display Smartscan errors #26155. Try requesting money both from another individual and a workspace.
Follow the steps again, but populating all fields when smartscanning. Confirm no red dot displays in that case.
Verify that no errors appear in the JS console
Offline tests
None
QA Steps
Same as Display Smartscan errors #26155
Try the same steps, but with a receipt with all fields visible, so it smartscans correctly. No red dot should show in that case.
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android