Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.4.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:
Precondition: all accounts should be expensifail
- Log in as Account A and create a workspace
- Create a Workspace
- Invite other existing accounts B and C to the workspace
- Send some messages in the #Announce room and in the workspace chat for the 2 users you have access to
- Remove the account C from the workspace
- Navigate to OldDot and Log in with account B
- Merge the account B with the account C (that was just removed from the workspace)
- Navigate back to the new expensifail app and Log In with account B
- Tap on Search Icon and write the created workspace name in step 2 e.g. "Workspace 28"
- Tap on the archived workspace
- Repeat step 9-10
Expected Result:
Primary login should be displayed in header, search page and conversation
Actual Result:
Incorrect primary login displayed MERGED_0@applausetester+omd60@applause.expensifail.com
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
Bug6293275_1701181149677.RPReplay_Final1701180382.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~0145c4b7f08b9c57c0
- Upwork Job ID: 1729508760867057664
- Last Price Increase: 2023-11-28
- Automatic offers:
- paultsimura | Contributor | 28016143
Activity
melvin-bot commentedon Nov 28, 2023
Triggered auto assignment to @conorpendergrast (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.[-]Workspace - Incorrect primary login displayed after merge with other account[/-][+][$500] Workspace - Incorrect primary login displayed after merge with other account[/+]melvin-bot commentedon Nov 28, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0145c4b7f08b9c57c0
melvin-bot commentedon Nov 28, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Nov 28, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts (
External)paultsimura commentedon Nov 28, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
After merging accounts, the login with "MERGED_0" prefix is displayed in multiple places.
What is the root cause of that problem?
This happens because after merging accounts, the other one's login gets a "MERGED_0" prefix prepended, and we do not handle this in a couple of places as we do here:
App/src/pages/home/report/ReportActionItemSingle.js
Line 86 in eece941
What changes do you think we should make in order to solve the problem?
We should update the corresponding places where we build users' display names to use
.replace(CONST.REGEX.MERGED_ACCOUNT_PREFIX, ''):App/src/libs/ReportUtils.ts
Line 1388 in aac1519
And also here:
App/src/libs/PersonalDetailsUtils.js
Lines 19 to 29 in 8bbf4ab
Optionally, if we want to keep the change in one place, we can just introduce it in
PersonalDetailsUtils.getDisplayNameOrDefaultand reuse it here:App/src/libs/ReportUtils.ts
Line 1388 in aac1519
What alternative solutions did you explore? (Optional)
allroundexperts commentedon Dec 1, 2023
@paultsimura's proposal has the correct RCA and the solution looks good to me as well. Let's go with them!
🎀 👀 🎀 C+ reviewed
28 remaining items
conorpendergrast commentedon Jan 16, 2024
@paultsimura Thanks for flagging that! Moving to daily to pay today
conorpendergrast commentedon Jan 16, 2024
Payouts:
Upwork job is here.
conorpendergrast commentedon Jan 16, 2024
Manually posting this as Melvin didn't do it:
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:
conorpendergrast commentedon Jan 19, 2024
@allroundexperts Bump on the C+ checklist please!
allroundexperts commentedon Jan 21, 2024
Checklist
conorpendergrast commentedon Jan 22, 2024
Sounds good! QA test request created: https://github.com/Expensify/Expensify/issues/362457
That's all folks, thanks!
JmillsExpensify commentedon Jan 30, 2024
$500 approved for @allroundexperts based on this comment.