-
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
[PAID] [$125] Web - App crashes when navigate /request/new/confirmation page directly #27085
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.[distance] App crashes when navigating/request/new/confirmation page directly What is the root cause of that problem?Sometimes App/src/libs/Navigation/Navigation.js Line 124 in 6b1a667
That makes the app crashes when we call
What changes do you think we should make in order to solve the problem?We should use
App/src/libs/Navigation/Navigation.js Line 124 in 6b1a667
What alternative solutions did you explore? (Optional) |
Triggered auto assignment to @strepanier03 ( |
Job added to Upwork: https://www.upwork.com/jobs/~01b6aa9a432e651fc5 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @flaviadefaria ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?We're directly accessing
What changes do you think we should make in order to solve the problem?add a defensive check in the condition that causes the crash
Behavior with fix -> trim.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when navigate /request/new/confirmation page directly] What is the root cause of that problem?App/src/libs/Navigation/Navigation.js Line 118 in 6b1a667
and App/src/libs/Navigation/Navigation.js Line 121 in 6b1a667
We are using navigationRef.current.getState() and navigationRef.getRootState() both are working differently. RHP closes time the state is reset at the time navigationRef.current.getState() completed removed the right side navigation but in the navigationRef.getRootState() only remove the state field. so that when state field is undefined trying to get index filed so its crashes.
What changes do you think we should make in order to solve the problem?when App/src/libs/Navigation/Navigation.js Line 118 in 6b1a667
so we need change this function using lodash filter only NAVIGATORS.RIGHT_MODAL_NAVIGATOR and return their state index.
in this function
lastRoute.name === NAVIGATORS.RIGHT_MODAL_NAVIGATOR && lastRoute.state.index > 0
to
lastRoute.name === NAVIGATORS.RIGHT_MODAL_NAVIGATOR && lastRoute.state && lastRoute.state.index > 0 or we can use lodash get |
It seems like @strepanier03 was assigned here first so unassigning myself. @strepanier03 let me know in case I missed something. |
@flaviadefaria - That's fine, thanks for the heads up. Been seeing the double assignment quite frequently lately so no worries at all, I got this. |
Thanks for the proposal everyone. @Sourcecodedeveloper Can you please explain why Detailed explanation with references will be appreciated. |
FYI, This was the PR which introduced the codeblock. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Thanks for the update @Sourcecodedeveloper Proposal from @Sourcecodedeveloper looks good to me. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @mountiny, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @situchan 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
The issue is not reproducible any longer on my end. We will not require the PR any longer. But I would request making the payment to the contributor as the PR was already raised and was in good shape. |
In such cases we usually follow the 25% rule so I would pay $125 to @Sourcecodedeveloper sorry this did not work out fully |
Upwork job price has been updated to $125 |
@strepanier03 Could you please pay $125 to @Sourcecodedeveloper for their work on this issue which at the later phase got resolved by other changes unrelated to this issue? Also $50 to @situchan for reporting |
Sure thing, will take care of that. |
@Sourcecodedeveloper - Can you please apply for this job or share your UPwork profile with me? I'm not sure who you are in Upwork so can't hire you directly at this time. |
@strepanier03 I can help on behalf Here it is - #23488 (comment) |
📣 @smukherjee-drapefit! 📣
|
Thank you @situchan, I appreciate it a lot! @Sourcecodedeveloper - I've sent you the offer and will check again by the end of the day to pay. @smukherjee-drapefit - This issue is already resolved and is set to be closed in the next day or two. Was there something specific you were asking to work on? Check out our contributing.md to learn more about how to work as a member of our community. |
@Sourcecodedeveloper - I've paid out your contract in UpWork and closed the contract. @situchan - I've hired you to a reporting job and will check back in for payment. Sorry, I missed that before. |
I already accepted offer from #27085 (comment) |
Aaah, that comment was hidden and I missed it, thanks for linking it. Handling now. |
Okay, everyone's been paid here and I unraveled the mess I made. Thanks again everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Navigate to RHP
Actual Result:
App crashes
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.66.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
crash.mov
Recording.4351.mp4
Expensify/Expensify Issue URL:
Issue reported by: @situchan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693886463699189
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: