-
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
[HOLD for payment 2024-04-15] [$500] Task - Chat messages are out of order after reassigning task, sometimes beginning of chat is duplicated #38439
Comments
Triggered auto assignment to @sakluger ( |
@sakluger 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. |
We think that this bug might be related to #vip-vsb |
ProposalPlease re-state the problem that we are trying to solve in this issue.Task - Beginning of chat shown after reassigning task from user you have no chat to recent user What is the root cause of that problem?when we select assignee we call Line 660 in e40fba1
which merge the value with the old value. Lines 623 to 625 in e40fba1
the root cause is the merge leed to merge What changes do you think we should make in order to solve the problem?we need to reset the old value of Lines 623 to 625 in e40fba1
we can do that by merge it to null then merge it to the new value. Onyx.merge(ONYXKEYS.TASK, {assigneeChatReport: null}).then(() => Onyx.merge(ONYXKEYS.TASK, {assigneeChatReport: chatReport})); What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.A duplicated beginning of the report is displayed, sometimes task is shown as the first message What is the root cause of that problem?When we select an assignee that is a new user, we create an optimistic report here and set it to Line 660 in c915e7f
And then a created action is created here. Lines 4813 to 4814 in c915e7f
What changes do you think we should make in order to solve the problem?Instead of storing assignReport in task data, we can store the assigneeChatReportID which is the ID of chat report and then get the correct data from Onyx to check here. Lines 4813 to 4814 in c915e7f
I checked all use of What alternative solutions did you explore? (Optional)Updated the chat report with updating the optimistic field correctly if the
Line 660 in c915e7f
|
Updated the issue title and description for clarify. |
Job added to Upwork: https://www.upwork.com/jobs/~01479bcdfebb5e0089 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
Reviewing today |
I'm not able to reproduce this one on latest main :/ Screen.Recording.2024-03-20.at.16.35.30.mov |
@hungvu193 You should search and select a new user first that is important step to reproduce this bug. |
Thank you, I'll try to reproduce today |
Ok, I can reproduce. Screen.Recording.2024-03-23.at.22.22.11.movBut I couldn't reproduce the issue once it already happened with that report. Here's the steps to test:
My question is can you guys still the see issue with my above reproduction steps? If not, why did it only happen the first time, since both proposals pointed out that we're using wrong optimistic data. Thank you. |
Lines 636 to 638 in e40fba1
this because we build optimistic chat report only if chatReport gotten by getChatByParticipants not found.And after that the chatReport = ReportUtils.getChatByParticipants is already exist, so no need to build optimistic chat again
|
@hungvu193 After the first time, Line 5003 in eba217f
|
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Thank you both and sorry for late reply, I was sick last few days, but it's close to select proposal. |
I still can reproduce trim.777E0B10-577E-43BB-B3A4-4E0477815FD4.MOVTips: I used high traffic account and choose a random account on the list that I've never chatted before |
I also can reproduce in the last main. Screen.Recording.2024-03-28.at.3.19.22.AM.mov |
In this case, the report data in Onyx is correctly, we only have the problem with To not have any concern about saving |
Cool just looked over everything. I also like @nkdengineer alternate solution since it's more straightforward and is better for performance without the double merge. |
📣 @hungvu193 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer You have been assigned to this job! |
@hungvu193 The PR is here. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.60-13 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-04-15. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
Summarizing payment on this issue: Contributor: @nkdengineer $500, sent offer via Upwork (https://www.upwork.com/nx/wm/offer/101873781) @hungvu193 could you please complete the BZ checklist? |
Paid @nkdengineer, just waiting on the checklist now. |
This is an edge case, so I don't think we need regression test for this one. |
Thanks! |
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.53-2
Reproducible in staging?: y
Reproducible in production?: y
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The task is displayed as the last message in the report
Actual Result:
A duplicated beginning of the report is displayed, sometimes task is shown as the first message
Workaround:
n/a
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6415381_1710533895456.video_2024-03-15_16-16-07.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: