Skip to content
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] Contact Method - The profile avatar changes when the default contact email is updated #34815

Closed
2 of 6 tasks
lanitochka17 opened this issue Jan 19, 2024 · 21 comments
Closed
2 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@lanitochka17
Copy link

lanitochka17 commented Jan 19, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.28-0
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:

  1. Go to Settings > Profile > Contact Method > Add Contact Method
  2. Change the contact method to the newly added one and observe the profile avatar; it changes

Expected Result:

The profile avatar should not change when the default contact email is updated

Actual Result:

The profile avatar changes when the default contact email is updated

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6347761_1705678905632.avatar.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0139065cb9535c6083
  • Upwork Job ID: 1748378817917579264
  • Last Price Increase: 2024-01-19
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 19, 2024
Copy link

melvin-bot bot commented Jan 19, 2024

Triggered auto assignment to @sakluger (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot changed the title Contact Method - The profile avatar changes when the default contact email is updated [$500] Contact Method - The profile avatar changes when the default contact email is updated Jan 19, 2024
Copy link

melvin-bot bot commented Jan 19, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0139065cb9535c6083

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 19, 2024
Copy link

melvin-bot bot commented Jan 19, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee (External)

@barros001
Copy link
Contributor

This seems to be a BE issue. When the default contact method is updated the backend returns a new avatar:

        {
            "key": "personalDetailsList",
            "onyxMethod": "merge",
            "value": {
                "15912050": {
                    "accountID": 15912050,
                    "avatar": "https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_18.png",
                    "displayName": "[email protected]",
                    "firstName": "",
                    "lastName": "",
                    "login": "[email protected]",
                    "payPalMeAddress": "",
                    "phoneNumber": "",
                    "pronouns": "",
                    "status": null,
                    "timezone": {
                        "automatic": true,
                        "selected": "America/New_York"
                    },
                    "validated": true
                }
            }
        }

vs:

        {
            "key": "personalDetailsList",
            "onyxMethod": "merge",
            "value": {
                "15912050": {
                    "accountID": 15912050,
                    "avatar": "https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_12.png",
                    "displayName": "[email protected]",
                    "firstName": "",
                    "lastName": "",
                    "login": "[email protected]",
                    "payPalMeAddress": "",
                    "phoneNumber": "",
                    "pronouns": "",
                    "status": null,
                    "timezone": {
                        "automatic": true,
                        "selected": "America/New_York"
                    },
                    "validated": true
                }
            }
        }

The account ID remains the same but the avatar changes, likely because behind the scenes there are two separate accounts and the backend is failing to maintain the avatar fixed, similarly to how accountID is handled.

@cjoshidev
Copy link

Agree with @barros001

I have found out that if the case user does have an image it is not causing the change.

And also there is one more bug if the user does have an image attached to the email and if the other email doesn't have any image.

Removing the email with the image is not removing the image. It will be shown for other email as well

Copy link

melvin-bot bot commented Jan 21, 2024

📣 @cjoshi-zeals! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@cjoshidev
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~01c8c1ca43cddf7d39

Copy link

melvin-bot bot commented Jan 21, 2024

⚠️ Invalid email. Please make sure to create an Expensify account with this email first here.

@cjoshidev
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~01c8c1ca43cddf7d39

Copy link

melvin-bot bot commented Jan 21, 2024

⚠️ Missing/invalid email or upwork profile link. Please make sure you add both your Expensify email and Upwork profile link in the format specified.

@cjoshidev
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~01c8c1ca43cddf7d39

Copy link

melvin-bot bot commented Jan 21, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@melvin-bot melvin-bot bot added the Overdue label Jan 22, 2024
@jjcoffee
Copy link
Contributor

Yeah I agree with @barros001. This is arguably a regression from #32090 where we switched to using the avatar returned by the BE instead of generating it from hashing the accountID. We'd just need to change the BE to generate the avatar from the accountID.

@sakluger can you apply the Engineering tag and make this internal?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 22, 2024
@sakluger sakluger added Internal Requires API changes or must be handled by Expensify staff and removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Jan 25, 2024
Copy link

melvin-bot bot commented Jan 25, 2024

Current assignee @jjcoffee is eligible for the Internal assigner, not assigning anyone new.

Copy link

melvin-bot bot commented Jan 25, 2024

Auto-assigning issues to engineers is no longer supported. If you think this issue should receive engineering attention, please raise it in #whatsnext, and if it gets enough 👍, then please find a volunteer.

@sakluger
Copy link
Contributor

Thanks @barros001 and @jjcoffee. We aren't currently using the engineering auto-assigner, but I added to the #vip-vsb project board and will ask for a volunteer.

@melvin-bot melvin-bot bot removed the Overdue label Jan 25, 2024
@rlinoz rlinoz self-assigned this Jan 25, 2024
@melvin-bot melvin-bot bot added the Overdue label Jan 29, 2024
Copy link

melvin-bot bot commented Jan 29, 2024

@rlinoz, @sakluger, @jjcoffee Whoops! This issue is 2 days overdue. Let's get this updated quick!

@rlinoz
Copy link
Contributor

rlinoz commented Jan 29, 2024

I will try to open a PR to fix this today.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 29, 2024
@rlinoz rlinoz added the Reviewing Has a PR in review label Feb 1, 2024
@melvin-bot melvin-bot bot removed the Overdue label Feb 1, 2024
@rlinoz
Copy link
Contributor

rlinoz commented Feb 1, 2024

Waiting for a deploy to put the last PR for review.

Copy link

melvin-bot bot commented Feb 9, 2024

@rlinoz, @sakluger, @jjcoffee Whoops! This issue is 2 days overdue. Let's get this updated quick!

@rlinoz
Copy link
Contributor

rlinoz commented Feb 9, 2024

Oh this can actually be closed 😄

@rlinoz rlinoz closed this as completed Feb 9, 2024
@rlinoz rlinoz removed the Reviewing Has a PR in review label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests

6 participants