-
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
[HOLD for payment 2023-09-11] [$500] Report message naming logic is messed up #26450
Comments
Current assignee @JmillsExpensify is eligible for the Bug assigner, not assigning anyone new. |
Job added to Upwork: https://www.upwork.com/jobs/~0111ce66b26ea6258e |
Bug0 Triage Checklist (Main S/O)
|
Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
@JmillsExpensify Could you help to describe the test step for this issue? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Report message naming logic is messed up What is the root cause of that problem?When we build display name, we always set actor & submitter name App/src/pages/home/report/ReportActionItemSingle.js Lines 116 to 125 in 3c73b7e
It also happens with displaying avatars as well. What changes do you think we should make in order to solve the problem?We should update above logic so that if the actor is WS, then we should build display name as submitter & WS name. And also apply for avatar too. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Report message naming logic is messed up What is the root cause of that problem?The report display name is defined in App/src/pages/home/report/ReportActionItemSingle.js Lines 98 to 115 in 9b48540
What changes do you think we should make in order to solve the problem?We should get the workspace name using
What alternative solutions did you explore? (Optional) |
Hm, @Gonals you implemented this originally can you help? Any ideas what happened to cause a regression? Ideally we can quick time the fix/revert on this one if we can, so it's live for the activations next week. Looking at the file history, I think it might be this PR? |
Ended up grabbing this for a quick fix. We couldn't reproduce the full issue, but after payment, we were wrongly displaying the agent's name, instead of the workspace. Fixing that. |
@Gonals thanks! I'm happy to give you access to the account I'm using. Besides the payment issue you fixed, it's the historical reports have the incorrect naming. I imagine we're just fixing things moving forward rather than retroactively? |
Hmmm. Kinda weird. It is possible we stored the data differently back then 🤷. If you have an example, I can take a look, but that explains why I couldn't reproduce it in dev |
Hmm, weird. I can't reproduce this one either now. We can disregard and I'll let you know if I see it again. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.62-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-09-11. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@mollfpr Do you mind getting us kicked off with the checklist above and also recommending a regression test? |
Actually scratch that. This is an internal PR so I'm closing. |
Our report message naming logic is all messed up. Here's what is going on and why it's wrong.
The correct logic for the report message name should be
%submitterDisplayName & %workspaceName%
, like so.However, currently what we have is something completely different, which is the policy owner followed by the submitter. It's reverse and also incorrectly showing the policy owner rather than the workspace name (in this case the workspace name is
Expensify Contributors
, which you can see in theowes
report name).Even worse, we completely change the report message when someone pays the report. Here's another report from the same user, and now the admin who paid the report is included in the report name, again when it should be the workspace name instead.
Good news is that the correct logic for the report message is super simple:
%submitterDisplayName & %workspaceName%
Additionally, in the report preview, the report name should always take the form
%workspaceName%
and thenowes
orpaid
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: