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 2022-05-20][$2000] IOU balance disappears after sending money to owed user - reported by @Santhosh-Sellavel #8352

Closed
mvtglobally opened this issue Mar 30, 2022 · 22 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review

Comments

@mvtglobally
Copy link

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. Create two accounts User A and User B
  2. Login with those accounts on different devices into the newDot app.
  3. Now Request money from User B as User A Ex: Amount 2000
  4. Now using from User B send money i.e 1000 back to User A

Expected Result:

IOU Balance should be shown until fully settled.

Actual Result:

IOU Balance gets hidden from LHN for both users. One more Issue, IOU card in the chat list also gets hidden.

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.1.46-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screenshot 2022-03-02 at 12 39 49 AM

Screen.Recording.2022-03-25.at.12.10.38.AM.mov

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

View all open jobs on GitHub

@mvtglobally mvtglobally added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Mar 30, 2022
@melvin-bot
Copy link

melvin-bot bot commented Mar 30, 2022

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

@melvin-bot melvin-bot bot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Mar 30, 2022
@NicMendonca NicMendonca changed the title IOU balance gets disappeared after sending some money to the User I owe money - reported by @Santhosh-Sellavel IOU balance disappears after sending some money to the User I owe money - reported by @Santhosh-Sellavel Mar 30, 2022
@melvin-bot
Copy link

melvin-bot bot commented Mar 30, 2022

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

@NicMendonca NicMendonca removed their assignment Mar 30, 2022
@johnmlee101
Copy link
Contributor

Opening up for external. The requisites for rendering
somewhere from here below is breaking would be my guess, but would need extra eyes to see why this case isn't being handled:

<IOUAction
chatReportID={this.props.reportID}
action={this.props.action}
isMostRecentIOUReportAction={this.props.isMostRecentIOUReportAction}
/>

@MelvinBot MelvinBot removed the Overdue label Apr 4, 2022
@johnmlee101 johnmlee101 added the External Added to denote the issue can be worked on by a contributor label Apr 4, 2022
@johnmlee101 johnmlee101 removed their assignment Apr 4, 2022
@melvin-bot
Copy link

melvin-bot bot commented Apr 4, 2022

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

@jliexpensify jliexpensify changed the title IOU balance disappears after sending some money to the User I owe money - reported by @Santhosh-Sellavel IOU balance disappears after sending money to owed user - reported by @Santhosh-Sellavel Apr 5, 2022
@jliexpensify
Copy link
Contributor

@botify botify removed the Daily KSv2 label Apr 5, 2022
@MelvinBot MelvinBot added the Weekly KSv2 label Apr 5, 2022
@melvin-bot
Copy link

melvin-bot bot commented Apr 5, 2022

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 5, 2022
@melvin-bot
Copy link

melvin-bot bot commented Apr 5, 2022

Triggered auto assignment to @tgolen (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot changed the title IOU balance disappears after sending money to owed user - reported by @Santhosh-Sellavel [$250] IOU balance disappears after sending money to owed user - reported by @Santhosh-Sellavel Apr 5, 2022
@jliexpensify jliexpensify changed the title [$250] IOU balance disappears after sending money to owed user - reported by @Santhosh-Sellavel [$500] IOU balance disappears after sending money to owed user - reported by @Santhosh-Sellavel Apr 13, 2022
@jliexpensify
Copy link
Contributor

jliexpensify commented Apr 13, 2022

@mallenexpensify mallenexpensify changed the title [$1000] IOU balance disappears after sending money to owed user - reported by @Santhosh-Sellavel [$2000] IOU balance disappears after sending money to owed user - reported by @Santhosh-Sellavel Apr 27, 2022
@Julesssss
Copy link
Contributor

Making this internal and I'll submit a fix. I've located the bug and it required some existing IOU knowledge.

@Julesssss Julesssss added Internal Requires API changes or must be handled by Expensify staff and removed Exported External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Apr 28, 2022
@melvin-bot
Copy link

melvin-bot bot commented Apr 28, 2022

Current assignee @mallenexpensify is eligible for the Internal assigner, not assigning anyone new.

@Julesssss
Copy link
Contributor

@jliexpensify would you mind closing the UpWork issue and paying @Santhosh-Sellavel for raising the bug please?

@Julesssss
Copy link
Contributor

Julesssss commented Apr 28, 2022

The issue is that 'Send Money' changed how IOUReports work, causing this regression. A new iouReport is created then immediately closed which is a big problem, as we expect (and require) iouReports handled within this function to be open:

therefore should only be called if we are certain that the fetched iouReport is currently open - else we would overwrite the existing open iouReportID with a closed iouReportID.

I think we should return early if the iouAction is from 'send money'.

@Julesssss
Copy link
Contributor

Conveniently, the IOU action type is available in the reportAction:

Screenshot 2022-04-28 at 15 37 47

if (reportAction.originalMessage.type == 'pay') {
    return;
}

@mallenexpensify
Copy link
Contributor

Paid @Santhosh-Sellavel $250 for reporting and closed the Upwork job

@Julesssss
Copy link
Contributor

PR in progress

@Julesssss Julesssss added the Reviewing Has a PR in review label Apr 29, 2022
@melvin-bot

This comment was marked as off-topic.

@melvin-bot melvin-bot bot closed this as completed Apr 29, 2022
@mallenexpensify mallenexpensify changed the title [$2000] IOU balance disappears after sending money to owed user - reported by @Santhosh-Sellavel [HOLD for payment 2022-05-02][$2000] IOU balance disappears after sending money to owed user - reported by @Santhosh-Sellavel May 20, 2022
@mallenexpensify mallenexpensify added the Awaiting Payment Auto-added when associated PR is deployed to production label May 20, 2022
@mallenexpensify mallenexpensify changed the title [HOLD for payment 2022-05-02][$2000] IOU balance disappears after sending money to owed user - reported by @Santhosh-Sellavel [HOLD for payment 2022-05-20][$2000] IOU balance disappears after sending money to owed user - reported by @Santhosh-Sellavel May 20, 2022
@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 Daily KSv2 labels May 26, 2022
@puneetlath puneetlath added the Bug Something is broken. Auto assigns a BugZero manager. label Oct 19, 2022
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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests