-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$500] Request Money - Offline Receipt & Distance request to worspace don't show requestor name #28554
Comments
Triggered auto assignment to @puneetlath ( |
Job added to Upwork: https://www.upwork.com/jobs/~0125018631320cc910 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Offline Receipt and Distance request to workspace do not show requester name What is the root cause of that problem?The root cause of the issue is that we're creating the optimistic expense report here without adding a managerID. This can be seen here. When the expense report does not have a manager account id, the value of What changes do you think we should make in order to solve the problem?We should add a new parameter to the In here, we'll pass However, for the case where the money is requested from a workspace, the
Instead of changing the What alternative solutions did you explore? (Optional)None |
ProposalPlease re-state the problem that we are trying to solve in this issue.When offline, the Receipt money request in a workspace doesn't show user name in the header. What is the root cause of that problem?The root cause lies here:
We are trying to show user details by iouReport.managerID, but the optimistic Expense reports don't have the managerID set (as it will be populated with the policy's owner ID later): Lines 2116 to 2131 in 289411f
What changes do you think we should make in order to solve the problem?This change was introduced recently in order to avoid name duplication (explained in the comment). But if the report is an expense report, the first actor's name is always a workspace name: App/src/pages/home/report/ReportActionItemSingle.js Lines 99 to 102 in 5fd69da
So we can (and should) exclude the expense report from this managerID check and use iouReport.ownerAccountID :
What alternative solutions did you explore? (Optional)Mu initial idea was to set the expense report's managerID optimistically, but in case of policy expense reports, we shouldn't use the iouReport.managerID while showing the report preview header. Why? Because it always will be the policy owner. So we can run into a situation when User A requested money from User B's workspace. And this header will show: "UserB's Workspace & User B" instead of "UserB's Workspace & User A" Proof (here I've requested money as "qa1" user with the orange avatar. And the "New User is the owner of the "Another Workspace"): |
@lanitochka17 don't I have the right of posting the first proposal in the thread of a bug if I reported it originally? It was posted here: https://expensify.slack.com/archives/C049HHMV9SM/p1696027752529129?thread_ts=1696025357.358249&channel=C049HHMV9SM&message_ts=1696027752.529129 |
@paultsimura I think @lanitochka17 forgot to post your proposal from Slack. if you have a proposal in Slack first you would be considered here. but in Slack, only bug reporters post the proposal on slack. |
@pradeepmdk thanks, I just wanted to clarify this. No offense😌 |
Hi @paultsimura. Thanks for your elaborate explanation. I think for the case you mentioned above, this condition I might be wrong here but I'm pretty sure that I tested the case you mentioned above and found it working fine. If not, then this becomes a regression from #27912. Since #27912 is still on a 7 day hold, the original author would be fixing this. |
@puneetlath, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@situchan thoughts on the proposals/discussion? |
Never mind, this isn't specific to distance requests. It's also no longer reproducible on staging. I verified it with distance requests too. We can close this. Screen.Recording.2023-10-05.at.2.45.38.PM.mov |
This was indeed fixed by #28350. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@puneetlath, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Closing this out since the bug no longer exists. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The header of the report should show "{Workspace} & {user}"
Actual Result:
The header shows only "{Workspace} &"
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.75-3
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
android_web.mov
android.mov
iOS.mp4
desktop.mov
RPReplay_Final1696025471.MP4
web.mov
Recording.119.mp4
Expensify/Expensify Issue URL:
Issue reported by: @paultsimura
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696025357358249
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: