-
Notifications
You must be signed in to change notification settings - Fork 3k
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 - Search - Expense from the list does not disappear after deletion #54407
Fix - Search - Expense from the list does not disappear after deletion #54407
Conversation
@rayane-djouah 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] |
This reverts commit af28f6e.
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-01-23.at.6.44.51.PM.movAndroid: mWeb ChromeScreen.Recording.2025-01-23.at.6.40.35.PM.moviOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-01-23.at.18.43.53.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-01-23.at.18.34.33.mp4MacOS: Chrome / SafariScreen.Recording.2025-01-23.at.6.26.36.PM.movScreen.Recording.2025-01-23.at.5.55.56.PM.movMacOS: DesktopScreen.Recording.2025-01-23.at.6.42.03.PM.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.
@FitseTLT let's add some unit tests as suggested in the proposal
@FitseTLT Could you please look into this edge case? When a transaction is deleted from another device, it doesn’t get deleted on the current device: Screen.Recording.2025-01-02.at.11.04.03.PM.1.movAdditionally, in the video, you can see that a scroll was triggered. I’m not entirely sure about the exact steps to reproduce this behavior, but it seems that we need to fix it. |
@rayane-djouah I don't know if it aligns with the bug you discovered but on my side when the expense deleted was the only expense on the report the transaction list is not updated so we don't trigger search. But in this case the report actions list is updated so if you agree we can apply a workaround solution by triggering the search for expense case too when the report actions list is updated by changing
WDYT |
Any updates on this one? @rayane-djouah @FitseTLT |
@FitseTLT I think that this could lead to unnecessary search API calls, which might impact performance |
Waiting on @FitseTLT to address the review comments |
@rayane-djouah I know it would result in unnecessary search API calls that's why I asked to confirm the workaround solution from FE but it appears we are out of options if we want a FE solution because the only info we have got in FE to trigger the search API is change of transactions and report actions and in this case transaction list is not changed when the deleted expense is the only expense of the iou report. |
Yea, it seems that Screen.Recording.2025-01-09.at.9.49.33.PM.movScreen.Recording.2025-01-09.at.9.49.33.PM.mov@luacmartins Can you please look for a backend fix for including deleted transactions data in response as well? @FitseTLT Let's address code review comments and add unit tests, I think that the above bug needs to be fixed from backend |
@luacmartins we're setting the transaction to null for |
@FitseTLT Let's prioritize addressing the review comments |
@rayane-djouah You can proceed |
Discussing here |
@FitseTLT just tested my BE changes against your branch and things seem to be working fine. I'm gonna put my PRs in review and hopefully we'll have the changes live early next week. |
One of the PRs is merged. Waiting deploy and then 2nd PR can be merged. |
Merged the 2nd PR. It should be deployed to production by EOW |
PR is in staging |
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.
LGTM and tests well
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.
LGTM
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.0.89-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.89-8 🚀
|
Details
Fixed Issues
$ #53687
PROPOSAL: #53687 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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
a.search.mp4
Android: mWeb Chrome
aw.search.mp4
iOS: Native
i.search.mp4
iOS: mWeb Safari
iw.search.mp4
MacOS: Chrome / Safari
w.search.mp4
MacOS: Desktop
d.sear.mp4