-
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 2024-01-17] [$500] Request Money - If user reloads the IOU details page and go back, the same IOU page is shown #33205
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01ae972c8a1958f68f |
Triggered auto assignment to @laurenreidexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.If user reloads the IOU details page and go back, the same IOU page is shown What is the root cause of that problem?We push the route when we open deeplink here App/src/libs/actions/Report.ts Lines 2031 to 2032 in 8bef4bb
But we don't push if the route is the active route which is determined in getActiveRoute App/src/libs/Navigation/Navigation.ts Lines 118 to 119 in 8bef4bb
But in this case route we navigate to has a trailing App/src/libs/actions/Report.ts Lines 2018 to 2019 in 990815f
but what we get from getActiveRoute() has no slash so getActiveRoute is returning false incorrectly thus we are pushing the route hereApp/src/libs/Navigation/linkTo.ts Lines 103 to 104 in 8bef4bb
What changes do you think we should make in order to solve the problem?We should compare them after changing them to same form in here (remove the trailing slashes) to avoid future bugs App/src/libs/Navigation/Navigation.ts Lines 118 to 119 in 8bef4bb
What alternative solutions did you explore? (Optional)We can also use more robust url comparing logic; may be use compare-urls to prevent future bugs. (We can use it also in other places where we compare urls 👍 ) |
@FitseTLT I think You can use this Regex routePath.replace(/\/$/, '') |
@Charan-hs Thx Replaced. 👍 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The IOU details page is shown again What is the root cause of that problem?The URL structure that we have here have a redundant This leads to the So when the the current route is not the active route, it will push the current route into itself based on this logic, causing the issue. What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)In 1, there're a few other routes that have the same problem, we need to fix it similarly. |
Triggered auto assignment to @tgolen, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@FitseTLT i think that using a library to normalize urls before comparing is an overkill. The app could only have small issues related to trailing slashes. Nothing more complex. I like that you gave a detailed solution and also a way to prevent such bugs in future tho |
@rushatgabhane would you mind giving some feedback on my proposal? I think the inconsistency of the routes (some having ending
@rushatgabhane also not just trailing slashes, you can modify the URL to have double |
@tgolen The reason I stated |
@FitseTLT the So making the routes consistently defined fixes the root cause, and the
@tgolen would you mind assigning me to this GH to get this fixed, thanks! |
@tienifr As I have stated clearly in my proposal ( |
@FitseTLT I understand that and you've repeated that several times, so you don't need to say it further. IMO a custom lint rule to catch that would be better than your proposal. |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR ready for review #33444. |
Looks like this has a PR and is actively being reviewed. |
PR is still ongoing. |
@tgolen @rushatgabhane @laurenreidexpensify @tienifr this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@tgolen, @rushatgabhane, @laurenreidexpensify, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Could you also take a look at this issue which appears to be caused from this? #34184 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.23-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-01-17. 🎊 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:
|
|
@laurenreidexpensify could you please add payment summary for this issue. Thank you 🙇 |
Payment Summary Contributor - @tienifr paid in Upwork $500 |
$500 approved fror @rushatgabhane based on comment above. |
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: 1.4.13-0
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Pre-requisite: user must be logged in and be a member of a workspace.
Expected Result:
Once the back button is pressed, the amount page should be shown
Actual Result:
The IOU details page is shown again
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6314731_1702651670589.Bzxg0545_1_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: