-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-06-23] [HOLD for payment 2023-06-21] [$1000] profile pic does not update in tooltip in offline mode #20672
Comments
Triggered auto assignment to @slafortune ( |
Bug0 Triage Checklist (Main S/O)
|
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @pecanoro ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Avatar is not updated in tooltip in offline mode What is the root cause of that problem?When user upload a new profile picture. It is updated in Onyx with this key
What changes do you think we should make in order to solve the problem?Get url from
import compose from '../../libs/compose';
import * as UserUtils from '../../libs/UserUtils';
import {withPersonalDetails} from '../OnyxProvider';
export default compose(
withPersonalDetails(),
withOnyx({
personalDetailsList: {
key: ONYXKEYS.PERSONAL_DETAILS_LIST,
},
})
)(UserDetailsTooltip);
const personalDetail = props.personalDetails[userDetails.login] || {};
const avatarSource = UserUtils.getAvatar(personalDetail.avatar, userDetails.login);
What alternative solutions did you explore? (Optional)None commit: eef7da9 |
Job added to Upwork: https://www.upwork.com/jobs/~0163d5011f7c3a7e5f |
Current assignee @slafortune is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Current assignee @pecanoro is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Profile picture in tooltip is not updated in offline mode. What is the root cause of that problem?The root causes is -
App/src/components/UserDetailsTooltip/index.js Lines 13 to 35 in 93957f0
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)Alternatively, we can also update the function below to change the avatar in App/src/libs/actions/PersonalDetails.js Lines 361 to 365 in 93957f0
Following changes will be needed -
ResultScreen.Recording.2023-06-13.at.9.14.27.PM.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Profile avatar in user details tooltip is not updated in offline mode. What is the root cause of that problem?UserDetailsTooltip component uses personal details list to show the avatar but this isn't updated in offline mode when profile avatar is updated as you can see here App/src/libs/actions/PersonalDetails.js Lines 361 to 412 in 93957f0
This is the root cause What changes do you think we should make in order to solve the problem?Update the personal details list data when avatar is updated. In the above updateAvatar function, add the following code to the optimisticData
Result20672_mac_chrome.mp4What alternative solutions did you explore? (Optional) |
It seems the problem is coming from this PR in which we introduced the feature. @cloudpresser can you please create a PR to fix this issue? Mostly because it's code you introduced and probably an oversight on the solution. |
@pecanoro This issue should be fixed by #20473 , |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.27-7 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-06-21. 🎊 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.
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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.28-5 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-06-23. 🎊 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.
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:
|
@gadhiyamanan, @allroundexperts , @s-alves10 offers are sent! @allroundexperts can you complete the checklist? |
@slafortune accepted, thanks! |
Offer accepted. Thank you |
@allroundexperts Waiting for you to finish the checklist so we can finish the payment and close it! |
May I ask you if this is eligible for speed bonus? |
@s-alves10 Yes! It should! Wasn't the case? |
I'm afraid not |
Yes! It should have - I missed that and can certainly add it! Bonus sent @s-alves10 |
Don't forget me @slafortune! |
@slafortune Friendly bump to handle the remaining payment issues! |
You bet @allroundexperts - can you please complete the checklist? Is there a regression test? |
@slafortune It seems like the checklist is not needed here. As per #20672 (comment) we intentionally did not update |
Thanks @allroundexperts ! I think if the checklist isn't needed for any reason, having an explanation as to why it isn't needed is super helpful to make sure we are getting everything. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
updated profile pic should show
Actual Result:
shows old profile pic
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.27-2
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
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-06-13.at.3.00.50.PM.mov
Recording.966.mp4
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686648923012819
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: