You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-08-07] [$250] IOU - Clicking back "on page not found" page takes you to a workspace page #44924
Version Number: 9.0.4-5 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers):dave0123seife+stest@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Go to a 1:1 Conversation. Make sure your seeing both account at the same time
As user A request money from User B
As user A go the IOU report that was just created and click on the Plus button to bring the menu
While the menu is still open Go to User B and Pay the expense
As user A click on "submit expense" on the menu that was opened in step 3.
Notice the error page is shown.
Click the back button found on the error page
Expected Result:
Clicking back takes you to the IOU report page
Actual Result:
Clicking back "on page not found" page takes you to a workspace page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
We also need to discuss if we want to keep shouldOpenProfileOnBackPress as true by default or should we keep it as false. If we want to keep the existing flow in other places, we will need to make it's default value as true.
Please re-state the problem that we are trying to solve in this issue.
Clicking back "on page not found" page takes you to a workspace page
What is the root cause of that problem?
We have two bugs here
When the expense is paid, the submit expense options doesn't disappear immediately. The RCA is we compare the menuItems prop wrong here so when it's changed, the component doesn't re-render.
Clicking back "on page not found" page takes you to a workspace page
. The RCA is in AccessOrNotFoundWrapper, we always go back to policy page when we click on back button if the policyID exists.
changed the title [-]IOU - Clicking back "on page not found" page takes you to a workspace page[/-][+][$250] IOU - Clicking back "on page not found" page takes you to a workspace page[/+]on Jul 10, 2024
changed the title [-][$250] IOU - Clicking back "on page not found" page takes you to a workspace page[/-][+][HOLD for payment 2024-08-07] [$250] IOU - Clicking back "on page not found" page takes you to a workspace page[/+]on Jul 31, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.14-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve 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:
[@thesahindia] The PR that introduced the bug has been identified. Link to the PR:
[@thesahindia] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@thesahindia] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@thesahindia] Determine if we should create a regression test for this bug.
[@thesahindia] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@miljakljajic] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
melvin-bot commentedon Jul 5, 2024
Triggered auto assignment to @miljakljajic (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.nyomanjyotisa commentedon Jul 5, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
IOU - Clicking back "on page not found" page takes you to a workspace page
What is the root cause of that problem?
App/src/pages/iou/request/IOURequestStartPage.tsx
Lines 124 to 130 in ffd72fb
We pass
policyIDonAccessOrNotFoundWrapperfor theIOURequestStartPageApp/src/pages/workspace/AccessOrNotFoundWrapper.tsx
Line 98 in ffd72fb
Because the
policyIDexist it will navigate toROUTES.WORKSPACE_PROFILE.getRoute(policyID)on back button pressWhat changes do you think we should make in order to solve the problem?
Remove the
policyIDonAccessOrNotFoundWrapperfor theIOURequestStartPageso it will navigate backRESULT
2024-07-06.00-56-27.mp4
What alternative solutions did you explore? (Optional)
ShridharGoel commentedon Jul 6, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
IOU - Clicking back on "Page not found" page takes to a workspace page.
What is the root cause of that problem?
AccessOrNotFound page leads to workspace page if policy ID is passed.
App/src/pages/workspace/AccessOrNotFoundWrapper.tsx
Line 98 in c5eafd3
What changes do you think we should make in order to solve the problem?
Add
shouldOpenProfileOnBackPressas a prop inAccessOrNotFoundWrapper:Update
onBackButtonPress:We also need to discuss if we want to keep
shouldOpenProfileOnBackPressas true by default or should we keep it as false. If we want to keep the existing flow in other places, we will need to make it's default value as true.shouldOpenProfileOnBackPresswill be passed toPageNotFoundFallback.Now, in IOURequestStartPage, pass it as false:
We might need to pass shouldOpenProfileOnBackPress from multiple places depending on what we are keeping as the default value.
nkdengineer commentedon Jul 8, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Clicking back "on page not found" page takes you to a workspace page
What is the root cause of that problem?
We have two bugs here
menuItemsprop wrong here so when it's changed, the component doesn't re-render.App/src/components/PopoverMenu.tsx
Line 266 in b0947e0
. The RCA is in
AccessOrNotFoundWrapper, we always go back to policy page when we click on back button if thepolicyIDexists.App/src/pages/workspace/AccessOrNotFoundWrapper.tsx
Line 98 in b0947e0
What changes do you think we should make in order to solve the problem?
menuItemscorrectlyApp/src/components/PopoverMenu.tsx
Line 266 in b0947e0
IOURequestStartPageand policy pages.App/src/pages/workspace/AccessOrNotFoundWrapper.tsx
Line 98 in b0947e0
We can add an extra prop in
PageNotFoundFallbacklikeisMoneyRequestApp/src/pages/workspace/AccessOrNotFoundWrapper.tsx
Line 87 in b0947e0
And update the condition here to not go back to policy profile page if we're in money request flow
App/src/pages/workspace/AccessOrNotFoundWrapper.tsx
Line 98 in b0947e0
And then pass
isMoneyRequest={isMoneyRequest}toPageNotFoundFallbackhereApp/src/pages/workspace/AccessOrNotFoundWrapper.tsx
Line 140 in b0947e0
What alternative solutions did you explore? (Optional)
melvin-bot commentedon Jul 8, 2024
@miljakljajic Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon Jul 10, 2024
Job added to Upwork: https://www.upwork.com/jobs/~019f96054ddd649966
[-]IOU - Clicking back "on page not found" page takes you to a workspace page[/-][+][$250] IOU - Clicking back "on page not found" page takes you to a workspace page[/+]melvin-bot commentedon Jul 10, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (
External)18 remaining items
[-][$250] IOU - Clicking back "on page not found" page takes you to a workspace page[/-][+][HOLD for payment 2024-08-07] [$250] IOU - Clicking back "on page not found" page takes you to a workspace page[/+]melvin-bot commentedon Jul 31, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jul 31, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.14-6 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-08-07. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jul 31, 2024
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:
miljakljajic commentedon Aug 7, 2024
@thesahindia is owed 250 for their work reviewing this issue
miljakljajic commentedon Aug 7, 2024
@thesahindia do we need a regression test for this issue?
@nkdengineer paid in upwork
thesahindia commentedon Aug 8, 2024
We should add a test case, here are the steps -
For actions menu -
For clicking back "on page not found" page takes you to a workspace page -
miljakljajic commentedon Aug 8, 2024
Thank you!
thesahindia commentedon Sep 10, 2024
@miljakljajic, looks like we don't have a payment summary here. Could you please add one? I need it for getting the payment approved.Missed the comment! We already have it here.
garrettmknight commentedon Sep 11, 2024
$250 approved for @thesahindia based on this payment summary