Skip to content

[$1000] [HOLD for payment 2023-06-29] [HOLD for payment 2023-06-28] Avatar is not loading when opening a 'share code' link #20993

Closed

Description

@kavimuru

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:

Precondition: account A & account B should be new accounts with no pre-existing chat history.

  1. Open a tab where account A is signed in
  2. Click on 'Profile' avatar > click on 'Share code' link > click on 'Copy URL to Clipboard button'
  3. Open a tab where account B is signed in
  4. Paste the URL to the search bar
  5. Press Enter

Expected Result:

Avatar on the details page should load

Actual Result:

Avatar on the details page is not loading

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?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

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

Screencast.from.2023-06-18.17-23-12.copy.mp4
Recording.1017.mp4

Expensify/Expensify Issue URL:
Issue reported by: @Natnael-Guchima
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687098545598949

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b83ba6ed1e06ca4e
  • Upwork Job ID: 1674016649320824832
  • Last Price Increase: 2023-06-28

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jun 18, 2023
  2. melvin-bot commented on Jun 18, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jun 18, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. OSBotify commented on Jun 18, 2023

    @OSBotify
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. melvin-bot commented on Jun 18, 2023

    @melvin-bot

    Triggered auto assignment to @deetergp (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  6. hungvu193 commented on Jun 18, 2023

    @hungvu193
    Contributor

    Proposal

    I personally don't think this is a deploy blocker because this seems a lack from personalDetails refactor.

    Please re-state the problem that we are trying to solve in this issue.

    Avatar is not loading when opening a 'share code' link

    What is the root cause of that problem?

    We only compare the login from the share url with our local personalDetails accounts. If we couldn't find it, we added fallback icon, which showed in this issue.

    if (!details) {
    // TODO: these personal details aren't in my local test account but are in
    // my staging account, i wonder why!
    if (login === CONST.EMAIL.CONCIERGE) {
    details = {
    accountID: CONST.ACCOUNT_ID.CONCIERGE,
    login,
    displayName: 'Concierge',
    avatar: UserUtils.getDefaultAvatar(CONST.ACCOUNT_ID.CONCIERGE),
    };
    } else {
    details = {
    accountID: -1,
    login,
    displayName: login,
    avatar: UserUtils.getDefaultAvatar(),

    What changes do you think we should make in order to solve the problem?

    Since we already implemented new UserDetail page (/a route). We should also migrate our ShareUrl page to use it. Because right now, we still using the login instead of accountID.
    So we should change the way we generate share url inside ShareCodePage to use accountID

    // we should use accountID instead of login and use the route /a for personal detail
     const url = isReport ? `${CONST.NEW_EXPENSIFY_URL}r/${this.props.report.reportID}` : `${CONST.NEW_EXPENSIFY_URL}a/${this.props.session.accountID}`;

    What alternative solutions did you explore? (Optional)

    N/A

    Result
    Untitled.mov
  7. 25 remaining items

  8. melvin-bot commented on Jun 28, 2023

    @melvin-bot

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

  9. laurenreidexpensify commented on Jun 28, 2023

    @laurenreidexpensify
    Contributor

    Was adding external label to get Upwork job to pay the issue reporter, ignore C+ assignment

  10. laurenreidexpensify commented on Jun 28, 2023

    @laurenreidexpensify
    Contributor

    @Natnael-Guchima I have sent offer in Upwork for reporting bonus

  11. Natnael-Guchima commented on Jun 28, 2023

    @Natnael-Guchima

    Accepted the offer. Thanks @laurenreidexpensify

  12. hungvu193 commented on Jun 28, 2023

    @hungvu193
    Contributor

    @laurenreidexpensify I think I'm eligible for payment for this issue, since my proposal was selected in the PR.
    #21081

  13. deetergp commented on Jun 28, 2023

    @deetergp
    Contributor

    I think the BugZero checklist here is moot since a refactor of the Personal Details data structure that didn't catch is what caused this issue. There's no real way to test for "Hey, when you change stuff, make sure you get all the cases." you can only do your best and then fix it quickly when you don't catch them all.

  14. laurenreidexpensify commented on Jun 30, 2023

    @laurenreidexpensify
    Contributor

    @hungvu193 that's fair - sent you an offer in upwork.
    @Natnael-Guchima - payment has been issued

  15. hungvu193 commented on Jun 30, 2023

    @hungvu193
    Contributor

    Thanks @laurenreidexpensify , accepted!

  16. Natnael-Guchima commented on Jun 30, 2023

    @Natnael-Guchima

    @hungvu193 that's fair - sent you an offer in upwork.
    @Natnael-Guchima - payment has been issued

    Received. Thanks 👍

  17. laurenreidexpensify commented on Jul 3, 2023

    @laurenreidexpensify
    Contributor

    @hungvu193 has been paid - closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2Engineering

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions