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 payment 2023-12-12] Task - Assignee with custom avatar shows default avatar in the task report #31028
Version Number: .3.96-5 Reproducible in staging?: Y Reproducible in production?: N 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:
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
What changes do you think we should make in order to solve the problem?
If we don't want to pass personalDetails from withCurrentUserPersonalDetails to WrappedComponent, we should search all pages that are using this HOC and replace props.personalDetails with usePersonalDetails() hook
We should pass personalDetails to WrappedComponent in withCurrentUserPersonalDetails HOC
Activity
melvin-bot commentedon Nov 7, 2023
Triggered auto assignment to @isabelastisser (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Nov 7, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)OSBotify commentedon Nov 7, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:melvin-bot commentedon Nov 7, 2023
Triggered auto assignment to @Li357 (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.abzokhattab commentedon Nov 7, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Task asignee with custom avator shows the default avatar in the task report view
What is the root cause of that problem?
in the following line, the
props.personalDetailsisundefinedbecause we dont connect to onyx to get the personal details object:App/src/components/ReportActionItem/TaskView.js
Line 150 in 5d45f0f
What changes do you think we should make in order to solve the problem?
either by adding:
and update the line above to use this const
OR by connecting to the onyx in the component:
Or alternatively we add those in the withCurrentUserPersonalDetails hoc
dukenv0307 commentedon Nov 8, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Assignee with custom avatar shows default avatar in the task report
What is the root cause of that problem?
#30354
In this PR we remove
personalDetailsfrom Onyx and use hook to get this. And then we don't pass this toWrappedComponentApp/src/components/withCurrentUserPersonalDetails.tsx
Line 36 in c2e4042
That makes
props.personalDetailsisundefinedand then default avatar is displayedApp/src/components/ReportActionItem/TaskView.js
Line 50 in c2e4042
What changes do you think we should make in order to solve the problem?
If we don't want to pass
personalDetailsfromwithCurrentUserPersonalDetailstoWrappedComponent, we should search all pages that are using this HOC and replaceprops.personalDetailswithusePersonalDetails()hookWe should pass
personalDetailstoWrappedComponentinwithCurrentUserPersonalDetailsHOCApp/src/components/withCurrentUserPersonalDetails.tsx
Line 36 in c2e4042
What alternative solutions did you explore? (Optional)
isabelastisser commentedon Nov 8, 2023
Hey @Li357, what's the next step here? Did you review the proposals above? Thanks!
24 remaining items
isabelastisser commentedon Dec 8, 2023
Not overdue, payment on Dec 12.
isabelastisser commentedon Dec 11, 2023
@abzokhattab, can you please complete the checklist above?
Payment is due tomorrow.
abzokhattab commentedon Dec 12, 2023
Hi @isabelastisser I guess you meant @Li357 right?
isabelastisser commentedon Dec 13, 2023
Hey @abzokhattab, @Li357 is no longer working for Expensify. Can you please complete the checklist? Thanks!
isabelastisser commentedon Dec 13, 2023
Offer sent in Upwork.
abzokhattab commentedon Dec 13, 2023
Thanks @isabelastisser I don't think we need a regression test for this as the changes included minor refactoring.
isabelastisser commentedon Dec 14, 2023
Sounds good. All set!