-
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
[HOLD for payment 2024-10-29] [HOLD for payment 2024-10-25] [$250] The waypoint editor opens as a Not Found page #50961
Comments
Triggered auto assignment to @trjExpensify ( |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
Hm, I can't really triage this if it's dev only. @paultsimura adding you as you reported it. 👍 |
Edited by proposal-police: This proposal was edited at 2024-10-16 23:18:43 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.the "Not found" page opens What is the root cause of that problem?Regression from #50772 Not found page in waypoint page would show if there's no waypoints from the draft transaction. In this case when we get the correct request type:
to init the draft transaction where we initialize the optimistic waypoints:
Lines 341 to 351 in 3a1d1a8
At this time the However, before #50772, we attached a screen listener that triggers
So this works fine on staging and production. But after #50772, App/src/libs/Navigation/OnyxTabNavigator.tsx Lines 127 to 129 in 286212c
This causes a problem when we previously select a tab, then close the RHP and reopen the RHP, the What changes do you think we should make in order to solve the problem?We should not check the request type barely based on transaction. It is
We can use const transactionRequestType = useMemo(() => !isEmptyObject(transaction) ? TransactionUtils.getRequestType(transaction) : selectedTab, [transaction, selectedTab]); App/src/pages/iou/request/IOURequestStartPage.tsx Lines 63 to 69 in a1d92ef
useEffect(() => {
if (transaction?.reportID === reportID || isLoadingSelectedTab) {
return;
}
IOU.initMoneyRequest(reportID, policy, isFromGlobalCreate, transactionRequestType);
}, [transaction, policy, reportID, iouType, isFromGlobalCreate, isLoadingSelectedTab]); What alternative solutions did you explore? (Optional)Or we can enforce the App/src/libs/Navigation/OnyxTabNavigator.tsx Lines 127 to 131 in 286212c
const didCallOnTabSelectedRef = useRef(true); if (selectedTab === newSelectedTab && !didCallOnTabSelectedRef.current) {
return;
}
didCallOnTabSelectedRef.current = false;
Tab.setSelectedTab(id, newSelectedTab as SelectedTabRequest);
onTabSelected(newSelectedTab as IOURequestType); |
@trjExpensify I think this should be a deploy blocker as a regression from #50772 which will be deployed soon. |
Noted: #50772 (comment) |
Job added to Upwork: https://www.upwork.com/jobs/~021846693147955823744 |
Current assignee @paultsimura is eligible for the External assigner, not assigning anyone new. |
Thank you for the investigation @mkzie2. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @flodnv, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I left a comment here suggesting to fix this as a separate issue. |
@bernhardoj, even though the root cause existed before, it only started to affect the flow after your PR. Therefore, it looks like a regression to me 🤔 |
Yeah, I don't agree that it's a separate issue. That PR now causes users to hit an error page when they open the waypoints editor. We shouldn't send that to prod until it's fixed. |
Yes, I think it should be treated as a regression personally. |
Ok then, tagging @rayane-djouah as the original C+ for clarity. |
I agree that we should fix it before reaching prod, but the reason I personally don't think it counts as a regression is, that I or @rayane-djouah wouldn't expect that the money request initialization is not working correctly. It's a hidden bug and never works which is only discovered after the PR. There have been a few cases like this in the past. In the past, I usually do the follow-up, but it doesn't count as a regression. I suggest treating it as a separate issue since @mkzie2 has already proposed a working solution. I can open the PR but I will borrow the solution above 😅. |
@trjExpensify We have another regression from the same pr #51029 |
The PR hit staging. This makes the Submit Scan/Distance expense flow completely malfunctioned and should be fixed with urgency. I can raise PR immediately if needed. |
Bug is fixed. Recording.2053.mp4 |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.50-8 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 2024-10-25. 🎊 For reference, here are some details about the assignees on this 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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.51-4 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 2024-10-29. 🎊 For reference, here are some details about the assignees on this 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:
|
@flodnv, @paultsimura, @trjExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
👋 Checklist time please, @paultsimura! |
Payment Summary
BugZero Checklist (@trjExpensify)
|
@trjExpensify this issue turned out to be a regression that got fixed by the original PR authors. |
Ah cool, okay. Closing it out then! |
@flodnv @trjExpensify Be sure to fill out the Contact List! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number:
Reproducible in staging?: need reproduction
Reproducible in production?: needs reproduction
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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
Expensify/Expensify Issue URL:
Issue reported by: @paultsimura
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1729104627493469
Action Performed:
Expected Result:
the waypoint editor opens
Actual Result:
the "Not found" page opens
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Screen.Recording.2024-10-16.at.20.46.56.mov
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: