-
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
[HOLD for payment 2023-06-30] [$1000] App crashes on pasting the public room URL again after navigating back #20825
Comments
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes on pasting the public room URL again after navigating back What is the root cause of that problem?We're using What changes do you think we should make in order to solve the problem?We can update the original function getTopmostReportId(state) {
if (!state) {
return;
} or we can update const getTopmostReportId = (state = navigationRef.getState()) => {
if (!navigationRef.isReady()) {
return;
}
return originalGetTopmostReportId(state);
}; What alternative solutions did you explore? (Optional)N/A |
Hey there @sonialiap as discussed in slack I know this issue still has no external tag and might not become external but here is already draft PR that solves the issue, it might help you avoid additional work |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web app crashes when user inputs again the URL after going back from sign in page What is the root cause of that problem?After opening the second time the React Navigation library returns an undefined state, which is sent to What changes do you think we should make in order to solve the problem?Instead of having guards in the children methods I recommend having the guard in the parent NavigationRoot.js: const updateSavedNavigationStateAndLogRoute = (state) => {
if (!state) {
return
}
navigationStateRef.current = state;
props.updateCurrentReportId(state);
parseAndLogRoute(state);
}; Video of the solution working: What alternative solutions did you explore? (Optional)I began trying a guard in getTopmostReportId but diving into the origin of the issue it is better to use it in the parent in case any additional method is used in updateSavedNavigationStateAndLogRoute |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
Reproducible. Moving to external Thanks @daordonez11, I'm going to let the C+ review the proposals 👍 |
Job added to Upwork: https://www.upwork.com/jobs/~0127842e1a6b2e7f94 |
Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
@daordonez11 wouldnt this be solved also using your solution here? #20558 I think if yes, we can put it on hold. But otherwise, also lets get this reviewed by @WoLewicki too, I think making this safer is a good approach @mollfpr |
Indeed it might @mountiny , yet there might be other scenarios where state is undefined that we don't know yet, and since #20558 was on hold I created a solution specific to avoid the app crash. Since react navigator returns de hydratedState undefined I'm not sure if other scenarios could trigger it. Still having the guard in |
Assigning this once since its navigation related. |
It's so weird that the state for |
@hungvu193 thanks for your proposal, but i think @daordonez11 solution is more broad/ general and can cover more cases of this error, so I am going with his proposal. |
Thanks! |
🎯 ⚡️ Woah @mollfpr / @daordonez11, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
@daordonez11 congrats on your first merged PR 🎉 |
Thanks @mountiny 💪🏼 first step on my way to C+ and help building expensify |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.31-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-06-30. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
https://github.com/Expensify/App/pull/16581/files#r1246040157
This is a regression for our navigation reboot, so the regression step should be enough.
|
Timeline: |
@avi-shek-jha offer sent for report - paid ✔️ |
Hey @sonialiap isn't urgency bonus based assignation? I was assigned on Wednesday 19 and merged by Friday 21 it took only 2 business days. I think it does apply in this case. |
@sonialiap the bonus should apply here, would you be able to update the contracts please? thanks! |
Thanks for the correction. The bonus is applied on top of the contract so no need to amend them. Issuing payment with the bonus now ⏳ 💰 |
@daordonez11 please accept the offer. Bonus is applied during payment after the offer has been accepted :) |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
3.Send a message in the room (important step)
Expected Result:
App should not crash on pasting the public room URL again after navigating back
Actual Result:
App crashes on pasting the public room URL again after navigating back
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.28-3
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
error-2023-06-14_09.49.41.mp4
Recording.977.mp4
Expensify/Expensify Issue URL:
Issue reported by: @avi-shek-jha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686715971306539
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: