-
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-11-20] [$250] QBO - Back button on workspace editor returns to Accounting after changing Import settings #51696
Comments
Triggered auto assignment to @jasperhuangg ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
This also happens on prod, NAB |
Job added to Upwork: https://www.upwork.com/jobs/~021851664505290782444 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
Triggered auto assignment to @slafortune ( |
Edited by proposal-police: This proposal was edited at 2024-11-01 04:47:21 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Back button on workspace editor returns to Accounting after changing Import settings What is the root cause of that problem?In the below code:
the fallback route navigates to new FullScreenNavigator instead of back to the existing one: App/src/libs/Navigation/Navigation.ts Lines 233 to 238 in f7d08e0
This is the reason we return to the accounting page. What changes do you think we should make in order to solve the problem?We need to just use If similar bug occurs in other connections or places, we should fix that too. What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.QBO - Back button on workspace editor returns to Accounting after changing Import settings What is the root cause of that problem?The root cause lies in here
QuickbooksImportPage is the first route in the RHP navigator so when we goBack with fallbackRoute the isFirstRouteInNavigator will be true and we will navigate to the fallbackRoute (in this case policy accounting page)App/src/libs/Navigation/Navigation.ts Lines 234 to 235 in f7f6167
so the import route will be replaced by duplicate POLICY_ACCOUNTING route as we already had an existing accounting route in the nav state What changes do you think we should make in order to solve the problem?We don't need the fallbackRoute in the goBack so should remove this line
we should also make similar fix here
What alternative solutions did you explore? (Optional) |
@twilight2294 I noticed you updated the proposal after another contributor added theirs. Previously, the permalink pointed to a different page, but now it points to the same page indicated by the other contributor. It's not an issue, but I just wanted to mention that whenever we update the proposal, it’s helpful to leave a comment saying, 'Proposal updated.' |
Thanks for the proposals @FitseTLT @twilight2294 ! |
@jayeshmangwani fallback routes are used for direct link(or refreshing of the page). For cases where there are multiple pages in a flow when the route below the current route in the stack can not be generated from the link with our customRouter, we will need to provide the backTo link directly as a fallbackRoute so it will navigate to the correct page before the current page in the flow but in the current case we don't need them. To test that you can switch to small screen on web and refresh it and click goBack and if it navigates correctly without the fallbackRoute it means fallbackRoute is not needed. |
Thanks for the explanation @FitseTLT! What I’m trying to say is that we’ve added a fallback route to many accounting pages. I’m currently checking how many of those pages are experiencing the same issue as this one. |
Thanks for the proposals above! Both suggestions involve removing the fallback route, but I’d prefer going with @FitseTLT 's Proposal of removing the onBackButtonPress altogether. they initially indicated the correct page where the issue originates, for this specific issue. For other pages with similar issues, we can do thorough testing in the PR. 🎀 👀 🎀 C+ reviewed |
Current assignee @jasperhuangg is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.60-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 2024-11-20. 🎊 For reference, here are some details about the assignees on this issue:
|
@jayeshmangwani @slafortune @jayeshmangwani The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Do we agree 👍 or 👎 |
Stevie is ooo - I'll process payment tomorrow: PAYMENT SUMAMRY FOR NOV 20
|
@FitseTLT payment sent and contract ended - thank you! 🎉 |
$250 approved for @jayeshmangwani |
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: 9.0.55-4
Reproducible in staging?: Y
Reproducible in production?: No, new feature
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
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): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
App will return to workspace list
Actual Result:
App returns to Accounting page when tapping back button from workspace editor after changing Import settings
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Screen_Recording_20241029_230206_Chrome.2.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @slafortuneThe text was updated successfully, but these errors were encountered: