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

IOUBadge displayed with 0.00 total for any chat with an associated iouReport that has a total of 0 #12115

Closed
kbecciv opened this issue Oct 25, 2022 · 9 comments
Assignees
Labels
Engineering Hourly KSv2 Improvement Item broken or needs improvement. Reviewing Has a PR in review

Comments

@kbecciv
Copy link

kbecciv commented Oct 25, 2022

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. Go to URL https://staging.new.expensify.com/
  2. Log in with any account
  3. Refresh the page
  4. Cancelled all unpaid money requests
  5. Refresh the page

Expected Result:

LHN now shows many red and green bars next to new chats at top for amounts owed to me and others

Actual Result:

IOU icons should not be displayed for canceled money requests

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web
  • Mobile Web

Version Number: 1.2.19.1

Reproducible in staging?: Yes

Reproducible in production?: No

Email or phone of affected tester (no customers): any

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Recording.2546.mp4

2510

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Oct 25, 2022
@OSBotify
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.

@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2022

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

@mountiny
Copy link
Contributor

Trying to get this auth PR merged to fix this hopefully https://github.com/Expensify/Auth/pull/7095

@Julesssss Julesssss assigned Julesssss and unassigned Gonals Oct 25, 2022
@Julesssss
Copy link
Contributor

This is an internal issue.

Thankfully I have a PR in review which was improving this logic, and will resolve the issue. Preventing the need for a revert.

@Julesssss Julesssss changed the title Web/mWeb - LHN shows many red and green bars next to new chats at top for amounts owed to me and others IOUBadge displayed with 0.00 total for any chat with an associated iouReport that has a total of 0 Oct 25, 2022
@Julesssss
Copy link
Contributor

Until the last Web-E deploy, this issue existed on staging. A fix for that issue uncovered this bug.

The problem is that getActiveIOUReport retrieves IOUReports with a total of 0. This occurs when an iouReport is opened, but then all ious are rejected or canceled. This Auth PR introduces a change where the iouReportID is only returned from GetChats if the iouReport has a non-zero total. We then set the iouReportID as a param on the chatReport.

In addition, this Web-E PR will complete the fix, by linking and returning iouReports in our API commands ONLY if the iouReportID is included.

@mountiny
Copy link
Contributor

@Julesssss Julesssss added the Improvement Item broken or needs improvement. label Oct 25, 2022
@Julesssss
Copy link
Contributor

Auth PR has been approved, now we're just awaiting @cead22's review as he previously added some comments which were resolved.

@Julesssss Julesssss added the Reviewing Has a PR in review label Oct 25, 2022
@Julesssss
Copy link
Contributor

This was merged, but awaiting Auth deployment. Adding a note to the deploy checklist that it should be unblocked soon.

@Julesssss
Copy link
Contributor

Fixed, removing this blocker from the deploy checklist.

@chiragsalian chiragsalian removed the DeployBlockerCash This issue or pull request should block deployment label Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Hourly KSv2 Improvement Item broken or needs improvement. Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

6 participants