You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for overpayment refund] [$1000] Web - Duplicate particpant name and avatar at the top of the Money request message. #25819
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
So when the ownerAccountID is also the person who request the money, it will cause this issue, because now the secondaryUserDetails is also the currentUserDetails.
What changes do you think we should make in order to solve the problem?
We should add a new condition to identify the secondaryUserId:
changed the title [-]Web - Duplicate particpant name and avatar at the top of the Money request message.[/-][+][$1000] Web - Duplicate particpant name and avatar at the top of the Money request message.[/+]on Aug 30, 2023
As @situchan suggested, theres seem to be a regression from this PR. @jjcoffee if you don't think otherwise, I think we can consider that a regression happened.
@hayata-suenaga Ohh my apologies, I thought I wasn't able to repro with just our PR, but actually I misunderstood this comment as meaning that the behaviour was happening for manual requests too, but apparently it was only for distance + scans. Agree now that there was indeed a regression. Sorry for the confusion!
changed the title [-][HOLD for payment 2023-10-09] [$1000] Web - Duplicate particpant name and avatar at the top of the Money request message.[/-][+][HOLD for overpayment refund] [$1000] Web - Duplicate particpant name and avatar at the top of the Money request message.[/+]on Oct 26, 2023
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Aug 24, 2023
Triggered auto assignment to @mallenexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Aug 24, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)spcheema commentedon Aug 24, 2023
Proposed solution
Please re-state the problem that we are trying to solve in this issue.
Web - Duplicate the participant's name and avatar at the top of the Money request message.
What is the root cause of that problem?**
Here is the explanation:
When User A requests money then an IOU (XX) report
requested A$1.00is sent to User BSo both avatars are visible on each side. The first avatar
action.actorAccountIDis User B and the secondary avatar is the IOU report owner (User A)Now User B requests the money then
action.actorAccountIDchanged with User BThe first avatar
action.actorAccountID(which is now B) and the secondary avatar is the IOU report owner (User B) are the same.App/src/pages/home/report/ReportActionItemSingle.js
Lines 116 to 126 in 329cac3
What changes do you think we should make in order to solve the problem?**
To fix this issue we need to check if it's an iou report then use the associated report owner and manager ID similar to participants list page https://github.com/Expensify/App/blob/main/src/pages/ReportParticipantsPage.js#L61
Updated code will be like:
If actor is same owner then user manage ID
What alternative solutions did you explore? (Optional)
N/A
hungvu193 commentedon Aug 24, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Web - Duplicate participant name and avatar at the top of the Money request message.
What is the root cause of that problem?
We're always getting the second user detail from
ownerAccountIDhere:App/src/pages/home/report/ReportActionItemSingle.js
Lines 117 to 118 in 329cac3
So when the ownerAccountID is also the person who request the money, it will cause this issue, because now the
secondaryUserDetailsis also the currentUserDetails.What changes do you think we should make in order to solve the problem?
We should add a new condition to identify the secondaryUserId:
Then use it below:
What alternative solutions did you explore? (Optional)
melvin-bot commentedon Aug 29, 2023
@mallenexpensify Eep! 4 days overdue now. Issues have feelings too...
[-]Web - Duplicate particpant name and avatar at the top of the Money request message.[/-][+][$1000] Web - Duplicate particpant name and avatar at the top of the Money request message.[/+]melvin-bot commentedon Aug 30, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01fc2d76b91c3cdcd1
melvin-bot commentedon Aug 30, 2023
Current assignee @mallenexpensify is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Aug 30, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (
External)88 remaining items
hayata-suenaga commentedon Oct 23, 2023
As @situchan suggested, theres seem to be a regression from this PR. @jjcoffee if you don't think otherwise, I think we can consider that a regression happened.
jjcoffee commentedon Oct 23, 2023
@hayata-suenaga Ohh my apologies, I thought I wasn't able to repro with just our PR, but actually I misunderstood this comment as meaning that the behaviour was happening for manual requests too, but apparently it was only for distance + scans. Agree now that there was indeed a regression. Sorry for the confusion!
mallenexpensify commentedon Oct 23, 2023
Ok, I'm updating the above for payment to account for the regression and removing the urgency bonus (per CONTRIBUTING.md )
I've requested refunds of $1k from @hungvu193 and @jjcoffee , will leave this issue open til I confirm the funds have been refunded.
jjcoffee commentedon Oct 24, 2023
Will need a few days before my account gets topped back up enough to issue the refund. Sorry about this mess!
hayata-suenaga commentedon Oct 26, 2023
Melvin, we're waiting for the refound
[-][HOLD for payment 2023-10-09] [$1000] Web - Duplicate particpant name and avatar at the top of the Money request message.[/-][+][HOLD for overpayment refund] [$1000] Web - Duplicate particpant name and avatar at the top of the Money request message.[/+]jjcoffee commentedon Oct 30, 2023
@mallenexpensify Refunded! 🙇
mallenexpensify commentedon Oct 30, 2023
Thanks @jjcoffee and @hungvu193, confirming the refunds and that the total payment was $500 each.