-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix open report is called twice when open a chat from start chat page #61447
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 open report is called twice when open a chat from start chat page #61447
Conversation
@ikevin127 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] |
Note: My iOS mWeb Safari inspector is currently not working at all. |
@bernhardoj As mentioned in the issue, I still get this issue on dev only where Observe this starting at about half-way and forward into the video: Screen.Recording.2025-05-06.at.12.06.31.movNote that there's no 2nd
For me it happened first at Note Note that on staging / production these existing accounts are ALWAYS fetched and never show (default avatar). But on dev even if we change to use staging server, the issue still happens which might indicate that this could be a dev-specific issue for some reason. 👉 Let me know what you think about this, if you can reproduce this on dev and whether there's anything to be done about this or we should move forward as is. cc @Julesssss |
It sounds like it's pretty reliably reproducible when starting a chat with an existing chat with history, right? Given that these conditions will be true for typical user usage I think we shouldn't triage further. Even though it's not reproducible in prod it would be good to locate the underlying issue while we're here. |
@ikevin127 looking at your video, there are 2 OpenReport because the app opens 2 reports. In 0:55, when you first open the report, the reportID is 5317xxx. Then, most likely BE returns a preexistingReportID, so you are navigated to 7332xxx in 0:56 |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromeandroid.moviOS: Nativeios.moviOS: mWeb Safariios.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
Thanks for looking into it. It does seem like there's 2 reports being opened (changes quick in URL) hence why the 2 calls which is expected, and this only seems to happen for me on dev rarely with existing test accounts. Given this, I'd say we're good to move forward here unless CME thinks otherwise 👍 ✅ Reviewer checklist completed. cc @Julesssss |
Cool, okay yes lets move forward. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Explanation of Change
Fixed Issues
$ #61285
PROPOSAL: #61285 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Open the inspect element and switch to Network tab on the web
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
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
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4