-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix reintroduced dependencies from conflict resolution #41152
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 |
@@ -520,7 +520,8 @@ function MoneyRequestConfirmationList({ | |||
if (updatedTagsString !== TransactionUtils.getTag(transaction) && updatedTagsString) { | |||
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 |
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
MoneyTemporaryForRefactorRequestConfirmationList
PR, 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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