-
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
[CP Staging] Fix-#39361 Composer with emoji is expanded with an empty line after returning from Settings #39378
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
@@ -102,7 +102,7 @@ type ReportScreenProps = OnyxHOCProps & CurrentReportIDContextValue & ReportScre | |||
function getReportID(route: ReportScreenNavigationProps['route']): string { | |||
// The report ID is used in an onyx key. If it's an empty string, onyx will return | |||
// a collection instead of an individual report. | |||
return String(route.params?.reportID || ''); | |||
return String(route.params?.reportID || 0); |
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.
@ishpaul777 Why is this change required? Shouldn't the previous code return the same output as 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.
BUG Screen.Recording.2024-04-02.at.3.17.03.AM.mov |
Can't reproduce, did i follow the steps correctly Screen.Recording.2024-04-02.at.3.52.37.AM.mov |
@ishpaul777 Try with a workspace chat. |
can't reproduce either Screen.Recording.2024-04-02.at.3.57.52.AM.mov |
Super weird. Let me dig into it. |
Logging out and logging in again fixed this! |
Although, this is happening on all the devices where I am signed in with the account. It seems like that when I come back on the screen, it doesn't fetch the data. After removing the changes in this PR, it starts to work 🤔 |
Okay. Confirmed that this is due to the changes of this PR. @ishpaul777 Try changing the screens quickly. |
i can't repro even now, but can you help confirming which specific change is triggering this bug, is it this https://github.com/Expensify/App/pull/39378/files#r1546910380 one if yes then the revert of original PR will not work 🤔 logically speaking |
@allroundexperts Does the bug goes away after resign reliably, it could be because of previous onyx collection wrongly fetched becuase no id was provided 🤔 |
It reappeared after I logged in again. |
Specifically, removing |
Yep, confirmed the above. This does not fix the issue reliably. I would suggest to do a proper RCA on this and fix it from the root. Adding the fix hastily would just introduce more regressions. |
i found this explaination correct #38955 (comment), and believe adding a |
Have you managed to reproduce above? |
nope :( Screen.Recording.2024-04-02.at.4.56.00.AM.mov |
Maybe try repeating the opening and closing steps several times. Adding emoji is not important. Just try to open and close the profile page 5-6 times quickly. |
tried that also Screen.Recording.2024-04-02.at.5.14.51.AM.mov |
Nice. This seems like tough bug to catch. @marcaaron By any chance, can you try to reproduce? |
@ marcaaron slack status says he is not around. @marcochavezf can you please help here reproducing |
I tested quickly and I haven't been able to reproduce the bug reported here: Screen.Recording.2024-04-01.at.6.08.02.p.m.mov
@allroundexperts are you able to reproduce it constantly? If we can confirm this introduces a bug (even if it's intermittent) I think we should revert to fix the deploy blocker and I agree we should do a proper RCA |
i dont think that will help either the change that seems to trigger the bug #39378 (comment) will also be in the revert @allroundexperts could you confirm please 🤔 |
Given that deploy blockers are time-sensitive and the checklist is not completed because we don't feel confident about the solution, I will proceed with the revert.
You can create another PR and include in the RCA why the bug will still present, meanwhile let's unblock the deploy, sorry 🙇🏽 |
Details
Fixed Issues
$ #39361
PROPOSAL:
Tests
Offline tests
QA Steps
Same as test steps
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
Screen.Recording.2024-04-02.at.3.16.41.AM.mov
Android: mWeb Chrome
Screen.Recording.2024-04-02.at.3.14.08.AM.mov
iOS: Native
Screen.Recording.2024-04-02.at.2.46.03.AM.mov
iOS: mWeb Safari
Screen.Recording.2024-04-02.at.2.42.41.AM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-02.at.2.37.50.AM.mov
MacOS: Desktop
Screen.Recording.2024-04-02.at.3.07.51.AM-1.mov