-
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: Expense - Not here page shows up briefly when deleting the expense #52740
Fix: Expense - Not here page shows up briefly when deleting the expense #52740
Conversation
…e..] briefly appeared
…x/45576-fix-not-found-decouple-2
…x/45576-fix-not-found-decouple-2
…ion during delete process
…x/45576-fix-not-found-decouple-2
…x/45576-fix-not-found-decouple-2
…t, to resolve not found page briefly appeared
…x/45576-fix-not-found-decouple-2
…x/45576-fix-not-found-decouple-2
…x/45576-fix-not-found-decouple-2
…x/45576-fix-not-found-decouple-2
@alitoshmatov Thanks for your feedback I've got this loading error in dev and staging Seems BE? Kapture.2024-11-26.at.14.51.26.mp4I'll try to fix the issue after that BE issue resolved |
@wildan-m is that consistently reproducible? Do you have a requestID for a failing request? |
@luacmartins yes, it consistently reproduced, I think it's FE. Asking if anyone else has experienced the same. |
…x/45576-fix-not-found-decouple-2
@alitoshmatov can you retest with this new merged main? I can't reproduce your mentioned issue I can only reproduce the loading issue which is also occurred in staging. |
@alitoshmatov actually that behavior is current staging behavior, we can't see that clearly because it's deleting and navigation fast. If we throttle the CPU, we'll see it better IIRC the expected behavior if there is a comment when deleting expense is -- it should navigate to the existing expense page, not the parent report. @luacmartins do you know if the expected behavior changes? Kapture.2024-11-28.at.10.07.04.mp4Should we fix that here? edit: I've found the offending PR, this PR cause the change of behavior Also, I've noticed that isDeletedParentAction returned by |
I found the backend bug for this. I'll work on a fix. |
It seems like the behavior has changed as you mentioned. |
I see
So we decided the behavior should be as you said, right? |
That's my understanding |
@luacmartins @alitoshmatov should we fix the behavior that accidentally changed by this PR #45563 here? |
I don't think we should change that as part of this PR. If we decide to change it, we should do so in a separate one. |
@luacmartins @alitoshmatov Then should this behavior be accepted, since the navigation successfully takes us to the correct screen, but then the useEffect in ReportScreen re-navigates us to the parent report. Right? |
I think so. I will finish up the checklist then |
Yes, I agree. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeinvoice-delete-android.movAndroid: mWeb ChromeiOS: Nativeinvoice-delete-ios.mp4iOS: mWeb Safariinvoice-delete-safari.mp4MacOS: Chrome / Safariinvoice-delete-web.movMacOS: Desktopinvoice-delete-desktop.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.
LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@luacmartins @alitoshmatov I just remember that there is a feedback on successData regarding similar pattern we use here. To avoid similar issue should we patch this PR a bit? we'll make the success data to null instead. Here is the patch #53616 |
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.0.72-0 🚀
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.0.72-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.72-1 🚀
|
Explanation of Change
This PR will not here page briefly appears when deleting the expense by navigating to target url then perform actual delete when the report details unmounted.
Fixed Issues
$ #45576
PROPOSAL: #45576 (comment)
Tests
Offline tests
Same as test
QA Steps
Same as test
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
Kapture.2024-11-19.at.12.55.58.mp4
Android: mWeb Chrome
Kapture.2024-11-19.at.12.53.50.mp4
iOS: Native
Kapture.2024-11-19.at.11.07.05.mp4
iOS: mWeb Safari
Kapture.2024-11-19.at.11.13.30.mp4
MacOS: Chrome / Safari
Kapture.2024-11-19.at.11.10.45.mp4
MacOS: Desktop
Kapture.2024-11-19.at.12.39.18.mp4