-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Awaiting C+ payment confo] Fix issues with the LHN previews and report actions surrounding iou/expenseReports when owed and paid. #30042
Comments
Current assignee @mountiny is eligible for the Engineering assigner, not assigning anyone new. |
Job added to Upwork: https://www.upwork.com/jobs/~01653befc45305851e |
Triggered auto assignment to @johncschuster ( |
Bug0 Triage Checklist (Main S/O)
|
Current assignee @mananjadhav is eligible for the Internal assigner, not assigning anyone new. |
Ready to work on this issue 😊 |
Wahoo, thanks! |
@koko57 let us know if you have any questions |
@mountiny thanks! for now - no questions 🙂 |
hmm good question, given its a group and it could bea nyone it makes sense that we add their name there |
@mountiny @trjExpensify sorry it takes me so long, but this logic is very confusing and I think a major refactor here is necessary. Just to make sure: do we want to make it under this ticket or should I fix the issue first (in as easy and safe way as possible) and then plan some bigger changes as a follow-up? WDYT? |
and my second question here regarding the requestor: for other chats, we have a logic not to show the lastActorDisplayName when it's a current user. Jeff Banks owes £21.96 It looks like we want to display it that way for Jeff. For Tom the title will be the same. What about the last message? Should it look the What about the workspace? |
@mountiny @trjExpensify are these correct? |
I think we can refactor it here, we do not have to rush and i agree this has been a resource of lots of issues so if we can find a better cleaner solution that will be be great In terms of the requestor, i think this is a great question and i feel like this might be unnecessary complication we could get rid off to simplify stuff. What do you think @trjExpensify? On the screenshots the expected results say the paid message feom the workspace in case of workspace chat lhn preview should say the workspace name paid, the name of payer is only in the expense report |
Heya! Catching up after being out for a couple of days last week.
The logic for when the iou/expenseReport LHN preview line has a name proceeding it or not should be exactly the same as a "normal" message in a chat. Why wouldn't we keep that consistency? So if it's your own request, you don't see your name. If it's someone else's request, you do see the requestor's name.
Correct! The workspace chat/DM LHN preview is simply the title of the iou/expenseReport being previewed. So in this case once the report being previewed has been paid it would be: expenseReport: |
Still working on it. Tomorrow I'll be ooo (bank holiday in Poland) will continue on Thursday |
Looks like we're working through a follow-up PR, Melv! |
The follow up has been merged too |
I think we can pay this out to @mananjadhav @trjExpensify I am not sure if this should be counted as a regression or not |
If we had to revert it once, that seems like it counts as a regression to me unfortunately. Open to other thoughts on that! |
@mountiny @trjExpensify what about the other follow-ups? Will we have another ticket for that and close this one or we'll have this one left opened? By the follow-ups I mean the one we discussed in doubled payer's PR #33966 (comment) (I also mentioned this earlier)
and what about this one?
Let me know wdyt 🙂 |
@mountiny @trjExpensify I understand about the regression but this one was a difficult PR. I was earlier going to request for the increase in the bounty but considering that we had a regression, if we can payout the standard amount that would be great. |
I do think we can keep this at $500 given the time this took to review and the complexity of the PR. We have reverted and did another attempt so its not like we have paid someone else for a fix. @koko57 Lets create new issues for these. I believe you can create issues yourself, would you mind doing so and tagging me in them to apply the correct label. Just link to this PR and frame the issue as Problem/ Solution |
Perfect, sounds good to me. So confirming the payment is $500 to @mananjadhav for the C+ review. Feel free to go ahead and request money! |
@mananjadhav once requested note here and we can close, thanks! |
I've requested the payment on NewDot. |
Closing! |
$500 payment approved for @mananjadhav based on this comment. |
Hey, just wanted to raise a little awareness: this PR likely caused a regression when an updated amount is not displayed in the LHN because of these lines: Lines 2254 to 2263 in 52adf77
Basically, that's because the I haven't seen a GH for this, just noticed it while working on one of my PRs. |
Pi believe this was raised internally but its true that the root cause is that the report action only has the original amount. So it might misbehave for smartscans specifically or when amount is edited |
@paultsimura thanks for pointing this out! @mountiny yes, the last action for this type of chat doesn't have the updated value - we only have CREATED and IOU actions for this type of report and later we don't have the MODIFIEDEXPENSE action. If we go to the details we have the MODIFIEDEXPENSE action, so the preview is displaying a proper amount. |
@koko57 Correct, but I believe we need to connect with Transaction collection in this case to make it work correctly. the report action has the IOUTransactionID and that transaction object holds the correct amount |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v1.3.87-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
Expensify/Expensify Issue URL:
Issue reported by: @trjExpensify
Slack conversation: came from this issue.
Action Performed:
Create an iouReport
Create an expenseReport
Pay an iouReport
Pay elsewhere
green button at the top right of the reportPay an expenseReport
Pay elsewhere
green button at the top right of the reportExpected Result:
When an iouReport or expenseReport is "owed" the logic is as follows:
The logic for the LHN row when someone is owed is as follows:
I.e
IOU Report
Expense Report
When an iouReport or expenseReport is "paid" the logic is as follows:
I.e
Report Action in the expense/iouReport
expenseReport LHN
workspace chat LHN
Actual Result:
The LHN preview is incorrect when someone owes:
The report action added to the iou/expenseReport is incorrect when someone pays the report:
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: