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

[HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$250] Task- User avatar when opening from task preview mention is not the same as chat header avatar #42027

Closed
6 tasks done
lanitochka17 opened this issue May 12, 2024 · 54 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented May 12, 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.72-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Assign task
  3. Enter title > Next
  4. Click Assignee
  5. Enter a random email address that does not have Expensify account
  6. Create the task
  7. After a while, click on the user mention in the task preview in the main chat

Expected Result:

User avatar when opening from task preview mention will be the same as chat header avatar

Actual Result:

User avatar when opening from task preview mention is not the same as chat header avatar

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

Bug6478651_1715526208648.20240512_225919.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f5ef607fad2434e6
  • Upwork Job ID: 1789924778097631232
  • Last Price Increase: 2024-05-27
  • Automatic offers:
    • tienifr | Contributor | 102496803
Issue OwnerCurrent Issue Owner: @CortneyOfstad
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels May 12, 2024
Copy link

melvin-bot bot commented May 12, 2024

Triggered auto assignment to @jasperhuangg (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented May 12, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open Staging deploy checklist to see the list of PRs included in this release, then work quickly on the following:

  1. If you find which PR caused the issue/bug, you can reassign it to the person responsible for it.
    • If the author is OOO or won’t get online before the daily deploy is due, you are responsible for finding the best fix/path forward. Don’t hesitate to ask for help!
  2. Try to reproduce the issue, if the bug is on production, remove the DeployBlocker label but stay assigned to fix it (or find out which PR broke it to get help from the author).
    • You can adjust the urgency of the issue to better represent the gravity of the bug.
    • If the issue is super low priority, feel free to un-assign yourself.
    • Be careful with PHP warnings, sometimes it is more complex than just adding a null coalescing operator as they might be uncovering some bigger bug.
    • If it was a one-off issue that requires no action (for example, Bedrock was down or it is a duplicated issue), you can close it.

Remember rule #2: Never un-assign yourself from a real DeployBlocker unless you are 100% sure someone else is assigned and will take care of it.

Copy link
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.

@lanitochka17
Copy link
Author

@jasperhuangg FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@Beamanator
Copy link
Contributor

Interesting, so the first time I click on the mention, I see the accountID is 17146630 with avatar https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_23.png - in the profile page, which is correct according to onyx

But in the Report Screen header, in MultipleAvatars we're passing an accountID of 1024805772, which seems to be the optimistic accountID - which is in Onyx, and has a default avatar of https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_13.png

@Beamanator
Copy link
Contributor

In HeaderView, I'm seeing that the report has participantAccountIDs as [1024805772]

So it looks like the NEW accountID is returned in the CreateTask network request, but it looooks like the optimistic account ID isn't being removed, AND it's still being linked to in some places (the report screen header & the "This is the beginning of your chat" intro text avatar

@Beamanator
Copy link
Contributor

I did, however, just reproduce in production so this shouldn't be a blocker - i'm going to test again on another platform

@Beamanator Beamanator 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. and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 DeployBlocker Indicates it should block deploying the API labels May 13, 2024
@melvin-bot melvin-bot bot changed the title Task- User avatar when opening from task preview mention is not the same as chat header avatar [$250] Task- User avatar when opening from task preview mention is not the same as chat header avatar May 13, 2024
Copy link

melvin-bot bot commented May 13, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01f5ef607fad2434e6

@Beamanator
Copy link
Contributor

Yep I just reproduced in prod again:

Screen.Recording.2024-05-13.at.10.43.58.AM.mov

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

melvin-bot bot commented May 13, 2024

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

Copy link

melvin-bot bot commented May 13, 2024

Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue labels Jun 4, 2024
@tienifr
Copy link
Contributor

tienifr commented Jun 4, 2024

@allroundexperts @Beamanator Some notes:

For now I think it's best to just fix the currently affected endpoint & bring up the sanitizing comment in slack to see what others think

  1. As per this, the Onyx response sanitization part is not implemented in the ^ PR.
  2. Also, in PR Use fallback user avatar in cases where the user is unknown to us #39229 we expected to show fallback avatar for completely new users and will show the actual/colorful avatars later when BE responds. So it seems like this issue is now expected.

However, I still think we need to clear the optimistically generated personal details and report's participants which otherwise would cause an issue that I already described in the ^ PR. Fortunately, the report's participants was already cleared in some other PRs so I just need to implement clearing optimistic personal details.

Moreover, I believe the Onyx issue mentioned in the second point of my proposal here (using merge before set in the same batch for the same key) is quite a systematic problem that should be put to the table for broader and thorough discussions and solutions in the BE.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 11, 2024
@melvin-bot melvin-bot bot changed the title [$250] Task- User avatar when opening from task preview mention is not the same as chat header avatar [HOLD for payment 2024-06-18] [$250] Task- User avatar when opening from task preview mention is not the same as chat header avatar Jun 11, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 11, 2024
Copy link

melvin-bot bot commented Jun 11, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jun 11, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.81-11 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 2024-06-18. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Jun 11, 2024

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:

  • [@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@allroundexperts] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@allroundexperts] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@allroundexperts] Determine if we should create a regression test for this bug.
  • [@allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@CortneyOfstad] Link the GH issue for creating/updating the regression test once above steps have been agreed upon: https://github.com/Expensify/Expensify/issues/407187

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 13, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-06-18] [$250] Task- User avatar when opening from task preview mention is not the same as chat header avatar [HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$250] Task- User avatar when opening from task preview mention is not the same as chat header avatar Jun 13, 2024
Copy link

melvin-bot bot commented Jun 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 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 2024-06-20. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Jun 13, 2024

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:

  • [@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@allroundexperts] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@allroundexperts] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@allroundexperts] Determine if we should create a regression test for this bug.
  • [@allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@CortneyOfstad] Link the GH issue for creating/updating the regression test once above steps have been agreed upon: https://github.com/Expensify/Expensify/issues/407187

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 18, 2024
@CortneyOfstad
Copy link
Contributor

@allroundexperts can you please complete the checklist by EOD so there is no delay in payment tomorrow? Thanks!

@CortneyOfstad
Copy link
Contributor

@allroundexperts bump on the checklist above ^^^

@allroundexperts
Copy link
Contributor

On it today!

@melvin-bot melvin-bot bot added the Overdue label Jun 23, 2024
@allroundexperts
Copy link
Contributor

Checklist

  1. There isn't any PR which caused this issue. It seems like we had an inconsistency in the way that backend was sending a merge before set.
  2. N/A
  3. N/A
  4. A regression test would be useful here. The test steps given in the OP seem easy to follow.

@CortneyOfstad
Copy link
Contributor

Payment Summary

@tienifr — paid $250 via Upwork
@allroundexperts — to be paid $250 via NewDot

@JmillsExpensify
Copy link

$250 approved for @allroundexperts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants