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
[$500] Scan - notifications@expensify.com only changes to Expensify after opening the message in thread #32581
Version Number: 1.4.8-1 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: Applause - Internal Team Slack conversation:
Action Performed:
Log in with a new account
Go to any chat
Create a Scan request using an image that will fail the scanning
After the scanning fails, click on the IOU preview twice to open IOU details page
Right click on the "scanning failed" system message > Reply in thread
Expected Result:
In Step 4, the owner of "scanning failed" system message is displayed as Expensify
Actual Result:
In Step 4, the owner of "scanning failed" system message is notifications@expensify.com.
It only changes to Expensify after opening the system message in thread
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Scan - notifications@expensify.com only changes to Expensify after opening the message in thread[/-][+][$500] Scan - notifications@expensify.com only changes to Expensify after opening the message in thread[/+]on Dec 6, 2023
Please re-state the problem that we are trying to solve in this issue.
notifications@expensify.com only changes to Expensify after opening the message in thread
What is the root cause of that problem?
When the personal detail for an account id doesn't exist in ONYXKEYS.PERSONAL_DETAILS_LISTReportUtils.getDisplayNameForParticipant will return the login/email
so the email is displayed but after opening in thread the personal detail for notifications@expensify.com will be inserted in ONYXKEYS.PERSONAL_DETAILS_LIST and ReportUtils.getDisplayNameForParticipant will return the proper display name Expensify and hence Expensify is displayed.
What changes do you think we should make in order to solve the problem?
Similar to what we did for concierge we can return custom made personal detail for CONST.ACCOUNT_ID.NOTIFICATIONS below this code
here
(we can also set avatar to be expensify icon)
but it is better to return this custom made personal detail only if expensify notifications personal detail is not found in onyx personal details list so that it will return the expensify notifications personal detail from onyx record whenever it exists as the avatar for expensify notification is not the same as user default avatar.
change this
or in ReportUtils.getDisplayNameForParticipant we return Expensify when accountID is CONST.ACCOUNT_ID.NOTIFICATIONS instead of the email/login when the personal detail doesn't exist in onyx
What alternative solutions did you explore? (Optional)
How about adding this required entry in the personalDetailsList itself within the backend 'OpenApp' api response, which can avoid more custom checks in front end
Still an issue in production. The personal details list now has notifications@expensify.com in it but it doesn't have a display name so it looks the same as before. Just created a PR to give it a display name, then this should be good.
Activity
[-]Scan - notifications@expensify.com only changes to Expensify after opening the message in thread[/-][+][$500] Scan - notifications@expensify.com only changes to Expensify after opening the message in thread[/+]melvin-bot commentedon Dec 6, 2023
Triggered auto assignment to @anmurali (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Dec 6, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01e866fa63ee2203e1
melvin-bot commentedon Dec 6, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Dec 6, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (
External)FitseTLT commentedon Dec 6, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
notifications@expensify.comonly changes to Expensify after opening the message in threadWhat is the root cause of that problem?
When the personal detail for an account id doesn't exist in
ONYXKEYS.PERSONAL_DETAILS_LISTReportUtils.getDisplayNameForParticipantwill return the login/emailApp/src/libs/ReportUtils.ts
Lines 1403 to 1409 in 5a0b7fd
so the email is displayed but after opening in thread the personal detail for
notifications@expensify.comwill be inserted inONYXKEYS.PERSONAL_DETAILS_LISTandReportUtils.getDisplayNameForParticipantwill return the proper display nameExpensifyand henceExpensifyis displayed.What changes do you think we should make in order to solve the problem?
Similar to what we did for concierge we can return custom made personal detail for
CONST.ACCOUNT_ID.NOTIFICATIONSbelow this codehere
App/src/libs/ReportUtils.ts
Lines 1366 to 1373 in 5a0b7fd
(we can also set avatar to be expensify icon)
but it is better to return this custom made personal detail only if expensify notifications personal detail is not found in onyx personal details list so that it will return the expensify notifications personal detail from onyx record whenever it exists as the avatar for expensify notification is not the same as user default avatar.
change this
App/src/libs/ReportUtils.ts
Lines 1374 to 1378 in 5a0b7fd
to
or in
ReportUtils.getDisplayNameForParticipantwe returnExpensifywhenaccountIDisCONST.ACCOUNT_ID.NOTIFICATIONSinstead of the email/login when the personal detail doesn't exist in onyxWhat alternative solutions did you explore? (Optional)
Pujan92 commentedon Dec 7, 2023
How about adding this required entry in the
personalDetailsListitself within the backend 'OpenApp' api response, which can avoid more custom checks in front endmelvin-bot commentedon Dec 12, 2023
@eVoloshchak, @anmurali Eep! 4 days overdue now. Issues have feelings too...
66 remaining items
melvin-bot commentedon Feb 16, 2024
Triggered auto assignment to @slafortune (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.blimpich commentedon Feb 16, 2024
Still an issue in production. The personal details list now has notifications@expensify.com in it but it doesn't have a display name so it looks the same as before. Just created a PR to give it a display name, then this should be good.
slafortune commentedon Feb 19, 2024
Thanks for the update @blimpich 🤞
blimpich commentedon Feb 19, 2024
Updated in production. Display name now works.
Screen.Recording.2024-02-19.at.12.33.49.PM.mov
blimpich commentedon Feb 19, 2024
I'm going to do a bit of code cleanup on the frontend, then I will consider this done and close the issue.
melvin-bot commentedon Feb 27, 2024
@eVoloshchak, @slafortune, @anmurali, @blimpich Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
blimpich commentedon Feb 27, 2024
Ah I forgot to close this issue. Frontend changes have been merged and a separate issue was created for paying the C+ contributor here: #37190.
Since payment is handled in that issue and this issue has been resolved I'm going to close this now.