Skip to content

Unable to request money after settling existing ious #18718

Description

@Julesssss

cc @mountiny @luacmartins

Problem

Some IOURequests are failing. This is a new regression.

You need to settle a few requests before the bug occurs. It might also be related to workspaces. In my case it is happenening to the workspace admin.

  • As userA, Request money
  • As userB, pay it
  • As userB, Request money
  • As userA, pay it
  • As userA, request money
  • At some point we start. reusing the iouReportID which is a major regression. Theory is listed below

Screenshot 2023-05-10 at 16 53 50

This appears to be occurring because we no longer clear the chatReport.iouReportID property when an IOU is paid. Because of this, this line is reusing an iouReportID instead of generating a new one optimistically.

Screenshot 2023-05-10 at 16 51 38 (2)

Screenshot 2023-05-10 at 17 04 25

Solution

Figure out why we aren't clearing the iouReport.iouReportID, or update the mentioned logic so that we don't pass OLD iouReportIDs to the requestMoney API.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013b510aa28fd9747e
  • Upwork Job ID: 1656328070402617344
  • Last Price Increase: 2023-05-10

Activity

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

Metadata

Metadata

Labels

EngineeringHourlyKSv2ImprovementItem broken or needs improvement.InternalRequires API changes or must be handled by Expensify staff

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions