-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Duplicate "Beginning of New Chat" Message and Email in LHN when Changing Assignee #24459
Comments
Triggered auto assignment to @muttmuure ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Duplicate chats being created when editing a task assignee. What is the root cause of that problem?The root cause of the issue is that we're having duplicate personal details (one optimistic and other one which was returned from the server) when selecting a new user. When selecting the new task assignee for the second time, the task option selector only shows the optimistically created personalDetail because of this check (The personalDetail that the server sends does not have login attribute set). As such, we're clicking on the personalDetails of the optimistically created user instead of the one returned from the server. This causes What changes do you think we should make in order to solve the problem?There are multiple changes that we can do here to fix this. The most straightforward approach is to change the check here to:
This will cause the real chat to always show up, and as such, the duplicated optimistic chat won't be created. What alternative solutions did you explore? (Optional)Another option would be to disable the this check but it might cause more regressions. We can also update the backend so that it returns |
Can't currently log into New Expensify |
This seems to be expected behaviour. |
@muttmuure This is a bug. The issue here is that we're creating duplicate reports. |
I only received one "Beginning of New Chat" message. Can you send a screenshot of the duplicate report so I am on the same page? |
I switched assignee back and forth from mmoore+2020 to mmoore+2021, and it created a second task. Is that what the issue is referring to? |
@muttmuure Sorry for the wrong call here. I just checked this again and it seems to be no longer reproducible. Digging further into the code, it turns out that this was fixed in this PR 3 days ago. We're good to close this! |
No worries @allroundexperts - definitely always worth double checking. |
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:
Expected Result:
The "Beginning of New Chat" message and email should only appear once in LHN when changing the assignee with a new email.
Actual Result:
When changing the assignee to a new email, the "Beginning of New Chat" message and email appear twice in LHN, causing duplication.
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?
Version Number: 1.3.53-1
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
Notes/Photos/Videos: Any additional supporting documentation
screen-capture.-.2023-08-03T052143.076.mp4
Recording.1167.mp4
Expensify/Expensify Issue URL:
Issue reported by: @tewodrosGirmaA
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691065190422649
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: