-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix reintroduced dependencies from conflict resolution #41152
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
|
Krishna2323 identified an issue: I think that while you were resolving conflicts, you mistakenly added back the dependencies that were removed #40176 (comment) I believe the fix is simple, can you check it please? cc: @eh2077, @tgolen, @Krishna2323, @sobitneupane |
|
Sorry @bondydaa, I didn't mean to assign you |
| IOU.setMoneyRequestTag(transactionID, updatedTagsString); | ||
| } | ||
| }, [policyTagLists, transaction, transactionID, policyTags, canUseViolations]); | ||
| // eslint-disable-next-line react-hooks/exhaustive-deps |
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.
I think it'll be better to document the reason why needs to have disable comments here. Yeah, I know that the original PR also didn't add the reason. Just a short reason documented will make it easier to read and maintain the code.
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.
Great idea! Please take a look and tell me what you think.
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemobile-chrome.moviOS: Nativeios.moviOS: mWeb Safarimobile-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
eh2077
left a comment
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.
I can still notice delay on Android and iOS native App and I compared it with Category on production - there's also a slight delay. So I think it's expected.
Going to approve this minor case fix.
|
✋ 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/bondydaa in version: 1.4.69-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.69-2 🚀
|
| // Keep 'transaction' out to ensure that we autoselect the option only once | ||
| // eslint-disable-next-line react-hooks/exhaustive-deps | ||
| }, [policyTagLists, policyTags, canUseViolations]); |
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 should have kept the transactionID here because at the first render there is no transaction and on the second render this effect does not run which caused #52879. Also the transactionID does not change afterwards i.e. does not cause problems as the transaction.
Details
While resolving conflicts in: Remove
MoneyTemporaryForRefactorRequestConfirmationListPR, I reintroduced dependencies that were previously removed here PR.We will update the dependencies accordingly in this new PR.
Fixed Issues
$ N/A
PROPOSAL: N/A
Tests
Preconditions: Should have a collect policy with only one tag and one category and both should be required.
Note: There should be consistent behavior when selecting/deselecting tags and categories.
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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.-.Native.mp4
Android: mWeb Chrome
Android.-.mWeb.mp4
iOS: Native
iOS.-.Native.mp4
iOS: mWeb Safari
iOS.-.mWeb.mp4
MacOS: Chrome / Safari
MacOS.-.Chorme.mp4
MacOS: Desktop
MacOS.-.Desktop.mp4