Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.53k stars 2.88k forks source link

[$250] Unclear error displayed if user tries to pay IOU for deleted account request - reported by @Tushu17 #7435

Closed mvtglobally closed 1 year ago

mvtglobally commented 2 years ago

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. Request money from Account A to account B
  2. Close account A

Expected Result:

We handle it pretty badly today (see the actual result) which is an oversight. Following the discussion in this thread, we’re going to prevent it like such:

In doing so, we’ll resolve the problems we’re seeing in this issue, as there wouldn’t be a case whereby someone is seeing a “Pay” button on a request from a member with a closed account, because we rejected them when they took the action to close their account.

Flow:

  1. Member has an iouReport with an outstanding balance (i.e not $0) to settle or be paid back
  2. Navigates to Security > Close account
  3. Enters email address > click “Close account”
  4. An “Are you sure?” confirmation modal appears: “If you proceed with this action, any outstanding money requests will be cancelled or declined.”
  5. Click “Yes, close my account”
  6. The requests are cancelled/declined adding the reportAction messages to the DM as normal

Mocks: [TBD - need to add]

Actual Result:

Unclear error displayed and user is unable to pay

Platform:

Where is this issue occurring?

Notes/Photos/Videos: Any additional supporting documentation

https://user-images.githubusercontent.com/43995119/151295657-ec6f240f-5545-4583-ab34-74d612a37f42.mp4

Issue reported by: @Tushu17 Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1642285631499100

View all open jobs on GitHub

MelvinBot commented 2 years ago

Triggered auto assignment to @mateocole (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

mateocole commented 2 years ago

Question on this, do we allow Account A to close if there are pending payments?

Tushu17 commented 2 years ago

@mateocole Yes, We allow usersto delete their account even if they have pending payments.

MelvinBot commented 2 years ago

This issue has not been updated in over 14 days. @mateocole eroding to Weekly issue.

MelvinBot commented 2 years ago

Triggered auto assignment to @deetergp (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

deetergp commented 2 years ago

Not sure how this flew under the radar, but it can be worked on by an external contributor.

melvin-bot[bot] commented 2 years ago

Triggered auto assignment to @MitchExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MitchExpensify commented 2 years ago

Exported to Upwork and @Tushu17 invited for eventual reporting bonus payment

melvin-bot[bot] commented 2 years ago

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

melvin-bot[bot] commented 2 years ago

Current assignee @deetergp is eligible for the Exported assigner, not assigning anyone new.

Tushu17 commented 2 years ago

@MitchExpensify Sorry I almost forgot and applied to the job. Actually there's a similar issue(#7420) for this and I think this will get fixed there, so I think we should hold this one if it doesn't get fixed we can remove the hold.

MitchExpensify commented 2 years ago

Sounds like a plan @Tushu17

MitchExpensify commented 2 years ago

Holding on https://github.com/Expensify/App/issues/7420 to see if it fixes this issue once deployed

deetergp commented 2 years ago

Not overdue, just holding

deetergp commented 2 years ago

Still holding…

rushatgabhane commented 2 years ago

Unassigning myself because I'm OOO until May 14

deetergp commented 2 years ago

Same status as the last. Once @stitesExpensify sorts out https://github.com/Expensify/App/issues/7420, we'll re-test this one to see if it's fixed.

MitchExpensify commented 2 years ago

Waiting on #7420 to re-test

MitchExpensify commented 2 years ago

Same as above

deetergp commented 2 years ago

Still on hold

deetergp commented 2 years ago

Still holding?

deetergp commented 2 years ago

How long are we going to hold on this one?

stitesExpensify commented 2 years ago

We're holding until I do this issue, which is currently very low priority.

deetergp commented 2 years ago

Still holding. Since @stitesExpensify's blocking issue is low priority, going to set this to monthly.

MitchExpensify commented 2 years ago

Still holding on https://github.com/Expensify/App/issues/7420

deetergp commented 2 years ago

No updates as yet.

deetergp commented 2 years ago

Not overdue

deetergp commented 2 years ago

Still on hold

tjferriss commented 1 year ago

Following instructions for the weekly update chore:

@deetergp this is one of the oldest issues in the /App repo. To help us clear out the large backlog of bugs, can you:

I recognize this issue is on hold so maybe the above is irrelevant, but once it's not on hold do you expect we should take this internal given the issue's age?

deetergp commented 1 year ago

Actually, it looks like the issue this was holding on has been merged, paid, and closed. Going to take it off hold and request another re-test from @mvtglobally in #qa and see if it's still broken.

mvtglobally commented 1 year ago

@deetergp I am getting slightly different error now, but still an error without clear explanation

https://user-images.githubusercontent.com/43995119/204436211-0fccac45-7a22-4e66-b9bd-de4ebcfbfd46.mp4

MitchExpensify commented 1 year ago

Actually, it looks like the issue this was holding on has been merged, paid, and closed. Going to take it off hold and request another re-test from @mvtglobally in #qa and see if it's still broken.

Updated the title to reflect this

deetergp commented 1 year ago

I'm just going to remove external and take this one on.

JmillsExpensify commented 1 year ago

Awesome, sounds great! This is the second-oldest open issue in the repo without a PR. Now's a good time to close the loop on it.

melvin-bot[bot] commented 1 year ago

A Contributor Manager will be assigned to issue payment via Upwork if we deploy an associated Pull Request to production. Per Contributing.md.

deetergp commented 1 year ago

On my first few tries to recreate this, I got different results, but am now able to recreate @mvtglobally's results. I'm also noticing a not-particuarly-useful-for-end-users error in the middle of the screen when User B navigates to their convo with User A after the latter has closed their account. That same error is present in Maria's video, so at least it's consistent!

Screenshot 2022-12-06 at 4 11 57 PM

JmillsExpensify commented 1 year ago

Wowsers, that is indeed a not very useful RBR error message. We need to fail more gracefully here.

MitchExpensify commented 1 year ago

Discussion ongoing here

MitchExpensify commented 1 year ago

@Tushu17 Invited you to the new Upwork Job for reporting bonus payment

Tushu17 commented 1 year ago

Hello @MitchExpensify, I'm already compensated for #7420, Which we were assuming will fix this issue too. So Ig you don't need to pay me reporting bonus for this issue.

JmillsExpensify commented 1 year ago

Thanks so much for your honesty! @MitchExpensify With that in mind, I think we're set to close this issue out, right?

MitchExpensify commented 1 year ago

Yes @JmillsExpensify! Closing. And thanks @Tushu17, much appreciated

MitchExpensify commented 1 year ago

And just as a note for posterity. This is closed because we evaluated the expected behavior in this Slack thread resulting in us creating two new issues:

  1. Decline/cancel all outstanding IOUs on account close
  2. Extend “archive” pattern to DMs