Skip to content

[HOLD for payment 2023-07-17] [HOLD for payment 2023-07-14] Not able to split money on back button #22302

Closed

Description

@kavimuru

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. On chrome staging website > FAB icon > Split Bill > Enter amount > Click Next >Select any user > Click Next to open up the split bill page ( Do NOT click split button)
  2. Now click on the user > Click back and see that the split money page is gone

Expected Result:

Back button should not end the split bill page

Actual Result:

Back button ends the split bill page

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.37-1
Reproducible in staging?: y
Reproducible in production?: n
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

split.mp4
Recording.1174.mp4

Expensify/Expensify Issue URL:
Issue reported by: @Santhosh-Sellavel
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688586118022729

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Jul 5, 2023
  2. melvin-bot commented on Jul 5, 2023

    @melvin-bot

    Triggered auto assignment to @puneetlath (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. melvin-bot commented on Jul 5, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. OSBotify commented on Jul 5, 2023

    @OSBotify
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. melvin-bot commented on Jul 5, 2023

    @melvin-bot

    Current assignee @puneetlath is eligible for the Engineering assigner, not assigning anyone new.

  6. StevenKKC commented on Jul 6, 2023

    @StevenKKC
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Back button ends the split bill page after open user detail page.

    What is the root cause of that problem?

    The following code is called if clicks the user on the split bill confirmation page.

    const navigateToUserDetail = (option) => {
    if (!option.accountID) {
    return;
    }
    Navigation.navigate(ROUTES.getProfileRoute(option.accountID));
    };

    The Money Request page and the Profile page are separate screens, seperate RHP flows.
    As a result, the following code will replace navigation routes. and the money request flow will be removed after navigating to the user profile page.

    if (action.payload.name === NAVIGATORS.RIGHT_MODAL_NAVIGATOR) {
    const {minimalAction, targetName} = getMinimalAction(action, navigation.getRootState());
    if (minimalAction) {
    // If the target name is RHP that means this action is responsible for changing flow within the RHP e.g. from settings to search. In that case we want to use REPLACE.
    if (targetName === NAVIGATORS.RIGHT_MODAL_NAVIGATOR) {
    minimalAction.type = 'REPLACE';
    }
    root.dispatch(minimalAction);
    return;
    }
    }

    Therefore clicking back will close the modal and end the split bill process.

    What changes do you think we should make in order to solve the problem?

    According to the above code comments, replacing routes when changing flow is intended.
    However, I think navigating from split bill or money request to user detail page should follow the same flow and not replace routes.
    We can change this line as below.

    -   if (targetName === NAVIGATORS.RIGHT_MODAL_NAVIGATOR) {
    +   if (targetName === NAVIGATORS.RIGHT_MODAL_NAVIGATOR && minimalAction.payload.name !== 'Profile') {

    What alternative solutions did you explore? (Optional)

    None.

  7. added
    Daily
    and removed
    Hourly
    on Jul 6, 2023
  8. melvin-bot commented on Jul 6, 2023

    @melvin-bot

    Looks like something related to react-navigation may have been mentioned in this issue discussion.

    As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.

    Feel free to drop a note in #expensify-open-source with any questions.

  9. 33 remaining items

  10. added
    Daily
    and removed
    Weekly
    on Jul 13, 2023
  11. added
    Bug
    and removed
    Bug
    on Jul 17, 2023
  12. melvin-bot commented on Jul 17, 2023

    @melvin-bot

    Triggered auto assignment to @tjferriss (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  13. melvin-bot commented on Jul 17, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  14. mountiny commented on Jul 17, 2023

    @mountiny
    Contributor

    Reassinging the Bug label to get someone to pay this out

    @Santhosh-Sellavel should get $1250 for the review and reporting the bug

  15. Santhosh-Sellavel commented on Jul 17, 2023

    @Santhosh-Sellavel
    Collaborator

    Requested payment on ND

  16. tjferriss commented on Jul 19, 2023

    @tjferriss
    Contributor

    @Santhosh-Sellavel have you been paid via NewDot?

  17. Santhosh-Sellavel commented on Jul 20, 2023

    @Santhosh-Sellavel
    Collaborator

    Yeah got paid! Good to close this!

  18. melvin-bot commented on Aug 21, 2023

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineering

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions