Skip to content
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-05-02] CRITICAL: [Actionable Whispers] [$500] Unable to return to invite page after returning to confirmation page #40490

Closed
6 tasks done
kbecciv opened this issue Apr 18, 2024 · 36 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Apr 18, 2024

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.63-0
Reproducible in staging?: y
Reproducible in production?: n
Issue found when executing PR: #38709
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Track expense.
  3. Create a track scan expense.
  4. From the whisper, select Share it with my accountant.
  5. Select a workspace > Click Submit.
  6. Click back button on the Invite member RHP.
  7. Click Submit.
  8. Click back button twice.

Expected Result:

In Step 7, user should be able to submit the expense, or user should be at least allowed to proceed to invite member page.
In Step 8. the RHP will close after clicking on the back button twice.

Actual Result:

In Step 7, user is unable to proceed to invite member page after clicking on the Submit button.
In Step 8. not here RHP shows up.

Workaround:

n/a

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6453802_1713455097071.bandicam_2024-04-18_23-38-24-015.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019390c3acf2a50745
  • Upwork Job ID: 1781106052824424448
  • Last Price Increase: 2024-04-19
  • Automatic offers:
    • jjcoffee | Reviewer | 0
    • bernhardoj | Contributor | 0
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

Triggered auto assignment to @srikarparsi (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
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.

@kbecciv
Copy link
Author

kbecciv commented Apr 18, 2024

We think that this bug might be related to #vip-vsb

@thienlnam
Copy link
Contributor

Will take this over since it's related to track - feel free to re-assign if you are interested

@thienlnam thienlnam added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Apr 18, 2024
@thienlnam
Copy link
Contributor

Doesn't look like it needs to be a blocker - and we can probably make this external

@thienlnam thienlnam added the External Added to denote the issue can be worked on by a contributor label Apr 18, 2024
@melvin-bot melvin-bot bot changed the title Track expense - Unable to return to invite page after returning to confirmation page [$250] Track expense - Unable to return to invite page after returning to confirmation page Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

Job added to Upwork: https://www.upwork.com/jobs/~019390c3acf2a50745

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 18, 2024
@thienlnam thienlnam moved this to CRITICAL in [#whatsnext] #vip-vsb Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee (External)

@thienlnam thienlnam changed the title [$250] Track expense - Unable to return to invite page after returning to confirmation page [$500] Track expense - Unable to return to invite page after returning to confirmation page Apr 19, 2024
Copy link

melvin-bot bot commented Apr 19, 2024

Upwork job price has been updated to $500

@DylanDylann
Copy link
Contributor

DylanDylann commented Apr 19, 2024

Proposal

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

In Step 7, user is unable to proceed to invite member page after clicking on the Submit button.
In Step 8. not here RHP shows up.

What is the root cause of that problem?

In the confirmation page, when clicking submit we send the ShareTrackedExpense API before navigating to the invite page.
When going back to the confirmation page, the request is submitted so we do nothing

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

I think we should close the RHP if user click on back button on this invite page in this case

App/src/libs/actions/IOU.ts

Lines 3072 to 3076 in 9b2c518

if (action === CONST.IOU.ACTION.SHARE) {
Navigation.navigate(ROUTES.ROOM_INVITE.getRoute(activeReportID ?? '', CONST.IOU.SHARE.ROLE.ACCOUNTANT));
} else {
Navigation.dismissModal(activeReportID);
}

    Navigation.dismissModal(activeReportID);
    if (action === CONST.IOU.ACTION.SHARE) {
        Navigation.navigate(ROUTES.ROOM_INVITE.getRoute(activeReportID ?? '', CONST.IOU.SHARE.ROLE.ACCOUNTANT));
    } 

What alternative solutions did you explore? (Optional)

NA

@DylanDylann
Copy link
Contributor

RCA: In the confirmation page, when clicking submit we send the ShareTrackedExpense API before navigating to the invite page. When going back to the confirmation page, the request is submitted so we do nothing

@thienlnam From the RCA, could you help to confirm the expected on the OP?

In Step 7, user should be able to submit the expense, or user should be at least allowed to proceed to invite member page.
In Step 8. the RHP will close after clicking on the back button twice.

@quinthar quinthar changed the title [$500] Track expense - Unable to return to invite page after returning to confirmation page CRITICAL: [Actionable Whispers] [$500] Unable to return to invite page after returning to confirmation page Apr 19, 2024
@shubham1206agra
Copy link
Contributor

I believe the @DylanDylann solution is right. We should close the RHP and not go to the Confirmation Page again.

@shubham1206agra
Copy link
Contributor

@DylanDylann's proposal looks good to me.

🎀👀🎀 C+ reviewed

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 22, 2024
Copy link

melvin-bot bot commented Apr 22, 2024

📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Apr 22, 2024

📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@bernhardoj
Copy link
Contributor

PR is ready

cc: @jjcoffee

@jjcoffee
Copy link
Contributor

PR approved by me, @thienlnam's turn! 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 25, 2024
@melvin-bot melvin-bot bot changed the title CRITICAL: [Actionable Whispers] [$500] Unable to return to invite page after returning to confirmation page [HOLD for payment 2024-05-02] CRITICAL: [Actionable Whispers] [$500] Unable to return to invite page after returning to confirmation page Apr 25, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Apr 25, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.65-5 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-05-02. 🎊

For reference, here are some details about the assignees on this issue:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 1, 2024
Copy link

melvin-bot bot commented May 2, 2024

Issue is ready for payment but no BZ is assigned. @garrettmknight you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

@garrettmknight
Copy link
Contributor

Paid out - @jjcoffee can you complete the checklist when you get a chance?

@melvin-bot melvin-bot bot added the Overdue label May 6, 2024
@jjcoffee jjcoffee mentioned this issue May 6, 2024
50 tasks
@jjcoffee
Copy link
Contributor

jjcoffee commented May 6, 2024

  • The PR that introduced the bug has been identified. Link to the PR: Feat/track whispers #38709
  • 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: https://github.com/Expensify/App/pull/38709/files#r1590707995
  • 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: N/A - just a missed test case
  • Determine if we should create a regression test for this bug. Yes
  • 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.

Regression Test Proposal

  1. Open your self DM chat
  2. Track a new expense. Wait until the concierge actionable whisper shows up
  3. Choose Share it with my accountant
  4. Select any workspace and Submit
  5. Verify you are navigated to the invite page
  6. Press the back button
  7. Verify that the invite page is closed

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 6, 2024
@thienlnam
Copy link
Contributor

Pending payment and addition of new QA steps cc @garrettmknight

@melvin-bot melvin-bot bot removed the Overdue label May 8, 2024
@garrettmknight
Copy link
Contributor

All set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests

9 participants