App icon indicating copy to clipboard operation
App copied to clipboard

Fix duplicate Concierge chats when NewDot accounts are merged

Open blimpich opened this issue 11 months ago • 3 comments

Problem

  1. create two accounts on staging.new.expensify.com (will need to have access to emails)
  2. on account A, switch to Expensify Classic
  3. go to Settings > Account > Merge Accounts
  4. enter in the login for account B, use the validation code emailed to you, and merge the accounts together
  5. switch back to New Expensify on account A

Expected result: Merge would be completed successfully.

Actual Result: There are two chats with Concierge

Screenshot 2024-12-04 at 2 31 47 PM

Why is this important?

Users are transitioning to NewDot and will soon begin to use the merge account feature on New Dot (in development here). This makes us look bad and is also really confusing to the user.

Solution

Figure out why we're keeping both Concierge chats in the the account merge process and fix it so that we're only returning one.

PS: Marking this as a #convert issue since it directly impacts the user experience of the Private Domain Onboarding Check project, which is a #convert initiative.

blimpich avatar Dec 10 '24 01:12 blimpich

Current assignee @sakluger is eligible for the Bug assigner, not assigning anyone new.

melvin-bot[bot] avatar Dec 10 '24 01:12 melvin-bot[bot]

Hey @blimpich - Thanks for moving the issue over to /App! Quick question - do you plan on working on this one? If so, could you please assign yourself too?

sakluger avatar Dec 10 '24 21:12 sakluger

I don't plan on working on this one right now. Will keep on my radar if my plate clears up 👍

blimpich avatar Dec 10 '24 23:12 blimpich

Okay, in that case, I'm going to switch to Weekly since it doesn't seem like a particularly high priority item.

sakluger avatar Dec 11 '24 18:12 sakluger

@sakluger this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

melvin-bot[bot] avatar Dec 24 '24 09:12 melvin-bot[bot]

This issue has not been updated in over 15 days. @sakluger eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

melvin-bot[bot] avatar Jan 06 '25 10:01 melvin-bot[bot]

No updates, waiting for a volunteer.

sakluger avatar Jan 08 '25 22:01 sakluger

Still no updates. I'll post to the Convert room this week to check on priority.

sakluger avatar Jan 21 '25 06:01 sakluger

Asked for volunteers in https://expensify.slack.com/archives/C07HPDRELLD/p1738168182051229.

sakluger avatar Jan 29 '25 16:01 sakluger

Picking up

blimpich avatar Jan 30 '25 19:01 blimpich

Update

Started work on this today. Started by writing a unit test to test the behavior. Draft PR up. Test is currently failing as expected. Will figure out a way to make it pass next.

blimpich avatar Jan 31 '25 01:01 blimpich

Update

Got a fix working that makes the test pass. Tested it locally as well and it works except there is some weirdness with the note that appears on the chat. It doesn't seem to be getting the correct user names for the note. I debugged it in App and seems like right here we're trying to get the accountIDs of the users but for some reason they accountIDs are undefined. Trying to figure that out.

Image

blimpich avatar Feb 01 '25 01:02 blimpich

Okay I'm happy with this. One of the names is still Hidden but that kind of makes sense since that account technically doesn't exist anymore. Gonna put up for review.

Image

blimpich avatar Feb 04 '25 00:02 blimpich

This issue has not been updated in over 15 days. @sakluger, @blimpich eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

melvin-bot[bot] avatar Feb 28 '25 10:02 melvin-bot[bot]

This is fixed, for some reason the automation didn't close it.

blimpich avatar Feb 28 '25 17:02 blimpich