-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$250] Task – Edited subtask name not updated in chat with user B in LHN #47655
Comments
Triggered auto assignment to @zanyrenney ( |
We think that this bug might be related to #vip-vsb |
@zanyrenney z 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 |
Edited by proposal-police: This proposal was edited at 2024-08-20 02:20:04 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.LHN Message is not updated on dm of the user and the user the task assgineed to when the task title is edited What is the root cause of that problem?In the LHN, if the last action is a task action, the displayed last message is retrieved from the task's App/src/components/LHNOptionsList/OptionRowLHNData.tsx Lines 65 to 79 in f58439c
As a result, the displayed last message in the LHN does not update when the task report is updated. What changes should we make to solve this problem?We need to adjust the To address this issue:
These changes will ensure that the displayed last message in the LHN updates correctly when the task report is updated. But if we only want the reportName data we can only use the lastActionChildReport.reportName as dependency to be more efficient. If we also need to update the childReportName of lastTaskAction:function getOptimisticDMTaskNameUpdate (taskReport, taskName) {
const assigneeAccountID = getTaskAssigneeAccountID(taskReport);
const dmReport = ReportUtils.getChatByParticipants([assigneeAccountID, currentUserAccountID]);
const reportActions = allReportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${dmReport.reportID}`];
const taskAction = Object.values(reportActions).find((action) => action.childReportID === taskReport.reportID);
return {
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${dmReport.reportID}`,
value: {
[taskAction.reportActionID]: {
childReportName: taskName,
pendingFields: {
...(taskName && {reportName: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE}),
},
errorFields: null,
},
},
};
} Include similar code in the optimistic data of edit task in: Line 505 in 6334d36
What alternative solutions did you explore? (Optional) |
nice! looking at external label noq |
Job added to Upwork: https://www.upwork.com/jobs/~01df2aca4c9f6dbfa6 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Edited subtask name not updated in 1:1 chat with user B in LHN What is the root cause of that problem?When we get the Line 384 in 844c6bf
App/src/libs/OptionsListUtils.ts Lines 661 to 664 in 844c6bf
Line 41 in 844c6bf
Line 50 in 844c6bf
But the problem here is that After the What changes do you think we should make in order to solve the problem?The
Then we can pass What alternative solutions did you explore? (Optional)NA |
Edit, @allroundexperts , is taking this one over (slack) |
Triggered auto assignment to @cead22, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@allroundexperts I don't think it's a good idea because
|
Proposalupdated |
|
@mkzie2 I think I had different results when testing this offline. When I was offline, no matter how many times I refreshed, the LHN did not update with the correct data. Can you post a video of the data updating after refreshing when offline? |
@allroundexperts The video here. Untitled.mp4 |
Hm... I see now. I was 'refreshing' the page. Instead, I just moved across the screens. |
Current assignee @cead22 is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @mkzie2 You have been assigned to this job! |
@zanyrenney / @cead22 For this issue, could you please unassign me from C+ and assign the @allroundexperts instead? |
This issue has not been updated in over 15 days. @cead22, @allroundexperts, @zanyrenney, @mkzie2 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! |
@zanyrenney The PR was deployed to production. Please help to process the payment here. |
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: 9.0.22-1
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): applausetester+jp_e_category_2@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Edited subtask name updated in 1:1 chat with user B in LHN
Actual Result:
Edited subtask name not updated in 1:1 chat with user B in LHN
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6576273_1724088874978.Subt_edit.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jayeshmangwaniThe text was updated successfully, but these errors were encountered: