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

[$1000] Web - Historical IOUs appearing in LHN like a pinned chat, above more recent chats, though they aren’t pinned #23438

Closed
1 of 6 tasks
kbecciv opened this issue Jul 23, 2023 · 61 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Jul 23, 2023

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. Open the app
  2. If you have any old historical reports, then these will appear immediately below your pinned chats and above chat with more recent activity
  3. Tap into the IOU report. The right header is also missing

Expected Result:

Old IOUs shouldn’t appear above more recent chats, all IOUs should also have modern headers that links back to the parent report to which they are attached.

Actual Result:

Again, the headers are incorrect, the chats are being sorted incorrectly in the LHN vs more recent chats

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.43-7
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Screenshot 2023-07-21 at 11 07 05

Expensify/Expensify Issue URL:
Issue reported by: @JmillsExpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689959205989049

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0113e10683f580c981
  • Upwork Job ID: 1683416987148619776
  • Last Price Increase: 2023-07-31
  • Automatic offers:
    • WikusKriek | Contributor | 26116737
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 23, 2023

Triggered auto assignment to @dylanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jul 23, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@dylanexpensify dylanexpensify added the External Added to denote the issue can be worked on by a contributor label Jul 24, 2023
@melvin-bot melvin-bot bot changed the title Web - Historical IOUs appearing in LHN like a pinned chat, above more recent chats, though they aren’t pinned [$1000] Web - Historical IOUs appearing in LHN like a pinned chat, above more recent chats, though they aren’t pinned Jul 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0113e10683f580c981

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

Current assignee @dylanexpensify is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

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

@AbeDev404
Copy link

Contributor details
Your Expensify account email: Beautifulworld820.1@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~0167895ac603e3df53

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@phamnduy
Copy link

Contributor details
Your Expensify account email: phamngocduy96@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~016a77b711407d33f1

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@mhd-sln
Copy link

mhd-sln commented Jul 24, 2023

Contributor details
Your Expensify account email: salmanmanekia@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~013fd6c7567d64dfa6

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

⚠️ Missing/invalid email or upwork profile link. Please make sure you add both your Expensify email and Upwork profile link in the format specified.

@mhd-sln
Copy link

mhd-sln commented Jul 24, 2023

Contributor details
Your Expensify account email: salmanmanekia@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~013fd6c7567d64dfa6

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@JmillsExpensify
Copy link

This is still happening to me. I had even more appear today.

@ArekChr
Copy link
Contributor

ArekChr commented Jul 25, 2023

Waiting for proposals 📣

@priyankrawat
Copy link

Contributor details
Your Expensify account email: rawat.priyank@yahoo.in
Upwork Profile Link: https://www.upwork.com/freelancers/~01dea109e55d7750c6

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@WikusKriek
Copy link
Contributor

WikusKriek commented Jul 26, 2023

This is still happening to me. I had even more appear today.

I am trying to understand exactly what is happening here.

Where you perhaps waiting on a credit bank account?

App/src/libs/ReportUtils.js

Lines 1071 to 1095 in 5ffd4e6

function isWaitingForIOUActionFromCurrentUser(report, allReportsDict = null) {
const allAvailableReports = allReportsDict || allReports;
if (!report || !allAvailableReports) {
return false;
}
// Money request waiting for current user to add their credit bank account
if (report.ownerAccountID === currentUserAccountID && report.isWaitingOnBankAccount) {
return true;
}
let reportToLook = report;
if (report.iouReportID) {
const iouReport = allAvailableReports[`${ONYXKEYS.COLLECTION.REPORT}${report.iouReportID}`];
if (iouReport) {
reportToLook = iouReport;
}
}
// Money request waiting for current user to Pay (from chat or from iou report)
if (reportToLook.ownerAccountID && (reportToLook.ownerAccountID !== currentUserAccountID || currentUserAccountID === reportToLook.managerID) && reportToLook.hasOutstandingIOU) {
return true;
}
return false;
}

problem seems to be here in this function, either in the report.isWaitingOnBankAccount is true, or reportToLook.hasOutstandingIOU is not changed.

@melvin-bot melvin-bot bot added the Overdue label Jul 27, 2023
@dylanexpensify
Copy link
Contributor

@ArekChr mind giving @WikusKriek a reply?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 28, 2023
@dylanexpensify
Copy link
Contributor

bump @ArekChr!

@tgolen
Copy link
Contributor

tgolen commented Aug 14, 2023

OK, thanks for clarifying. I'm OK with this proposal now and request that the PR also:

  • Updates the comment about the groups and the sorting
  • Removes the unnecessary unit test for the pending bank account

@melvin-bot
Copy link

melvin-bot bot commented Aug 14, 2023

📣 @mananjadhav Please request via NewDot manual requests for the Reviewer role ($1000)

@melvin-bot
Copy link

melvin-bot bot commented Aug 14, 2023

📣 @WikusKriek 🎉 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 📖

@WikusKriek
Copy link
Contributor

Starting on the PR now.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Weekly KSv2 labels Aug 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 17, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @WikusKriek got assigned: 2023-08-14 17:17:08 Z
  • when the PR got merged: 2023-08-17 20:06:05 UTC
  • days elapsed: 3

On to the next one 🚀

@mananjadhav
Copy link
Collaborator

We got delayed by a few hours, I would request if we can still apply the bonus here. The QA was done, I spent quite a lot of time on getting my builds for Android and iOS.

@dylanexpensify
Copy link
Contributor

CC @tgolen thoughts? Seems understandable to me

@dylanexpensify
Copy link
Contributor

After discussing internally, we'll be sticking with the standard timeline requirement. For context, this stemmed from discussing grace periods and the outcomes where the boundaries we establish become fuzzy and ultimately hinder the initial premise behind offering this. Thanks for your understanding <3

@dylanexpensify
Copy link
Contributor

Payment summary:

Upwork job. Please apply!

@mananjadhav
Copy link
Collaborator

Thanks for the clarification. Totally agreed.

@dylanexpensify
Copy link
Contributor

Waiting for regression period to be over!

@mananjadhav
Copy link
Collaborator

@dylanexpensify Can you please post the payment summary here? This has been in production for 7 days, but the title isn't updated.

@mananjadhav
Copy link
Collaborator

I couldn't pinpoint to a specific PR here, as the logic has existed since long.

I also don't think we need to add a regression test here.

@mananjadhav
Copy link
Collaborator

@dylanexpensify Quick bump on this one.

@mananjadhav
Copy link
Collaborator

@JmillsExpensify a quick follow up on the payout here.

@JmillsExpensify
Copy link

$1,000 approved for payment based on BZ summary.

@WikusKriek
Copy link
Contributor

@dylanexpensify can you please update the title of the issue I think the automation failed here. And this should have been payed 2 weeks ago.

@mananjadhav
Copy link
Collaborator

@dylanexpensify Can we please payout @WikusKriek? If already done, can we close this one out?

and I changed my mind about adding regression tests.

Regression Test Steps

  1. Open the app
  2. Verify that the LHN are ordered in the order of the list
    - Pinned
    - Outstanding IOUs
    - Drafts
    - Non-archived reports and settled IOUs
    - Archived reports

@WikusKriek
Copy link
Contributor

WikusKriek commented Sep 20, 2023

I have not recieved payment yet, is @dylanexpensify maybe OOO? The last time he was active here was almost one month ago. Can we maybe get someone to just do the payment and close this one out?

@dylanexpensify
Copy link
Contributor

Ah let me get it to you now @WikusKriek! Apologies I was ooo!

@dylanexpensify
Copy link
Contributor

done!

@WikusKriek
Copy link
Contributor

done!

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests