-
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
[$500] Task - Deleted task gets highlighted and chat turns bold after deletion #35100
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0179cecbe3829d643a |
Triggered auto assignment to @dylanexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When deleting a task, the parent chat report becomes unread. What is the root cause of that problem?When canceling a task, we optimistically update the parent report's Lines 791 to 799 in 4db7b09
What changes do you think we should make in order to solve the problem?Comparing the optimistic data to the API response (which should be mostly identical), the API response does not update the {
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${parentReport?.reportID}`,
value: {
lastMessageText: ReportActionsUtils.getLastVisibleMessage(parentReport?.reportID ?? '', optimisticReportActions as OnyxTypes.ReportActions).lastMessageText ?? '',
- lastVisibleActionCreated:
- ReportActionsUtils.getLastVisibleAction(parentReport?.reportID ?? '', optimisticReportActions as OnyxTypes.ReportActions)?.childLastVisibleActionCreated ?? 'created',
},
}, ResultScreen.Recording.2024-01-24.at.22.24.50.movWhat alternative solutions did you explore? (Optional) |
|
Triggered auto assignment to @marcochavezf, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The "Deleted task" message is highlighted and the chat gets bold in LHN What is the root cause of that problem?This comes from this change in a TS migration This is the old code before that:
This is the new updated code
So there was a misunderstanding of the 'created' as being the default value, it's actually a field name that's used in This leads to the new code using the There're 2 cases:
In both cases above, the previous logic works fine and aligns with the back-end's returned What changes do you think we should make in order to solve the problem?Revert to using
The What alternative solutions did you explore? (Optional)NA |
@allroundexperts I think the RCA and solution accepted seem incorrect, would you mind taking a look at my proposal to see if it makes more sense, thanks! |
Hi @tienifr! Thank you pointing this out. I've reviewed your proposal and I think you're right, we should just revert back to the previous change instead. @marcochavezf Let's go with @tienifr's proposal. 🎀 👀 🎀 C+ reviewed |
Current assignee @marcochavezf is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Good catch @tienifr💪🏽 |
Hello guys, Line 770 in 675b2c3
App/src/pages/home/report/ReportActionItem.js Line 153 in 675b2c3
true and this will cause that Deleted task gets highlighted because of those lines App/src/pages/home/report/ReportActionItem.js Lines 155 to 158 in 675b2c3
|
If its in the regression period, then I think you should create one. |
it is , so I am going to created one shortly. Thanks! |
@kubabutkiewicz I don't think we should remove that line. We should instead make this condition more robust by checking that |
Update: Asked @akinwale to review the PR since it was within the regression period and he was the C+. |
TY @allroundexperts! @akinwale can you post an update please? 🙇♂️ |
I'll review today. |
TY! @akinwale update please? |
@dylanexpensify Review completed and the PR was merged. #35252 (comment) |
Woooot! |
@dylanexpensify Since the PR uses RCA and solution from my proposal here and here, could you assign me to this GH for compensation (same as this case), thanks! |
sure can! |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@dylanexpensify Thanks! I've accepted the offer. Since the PR was deployed to production 2 weeks ago without regressions, I think we can move forward with payments. |
Agree, paying today! |
@tienifr paid out! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.31-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4235875
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:
Expected Result:
The "Deleted task" message in not highlighted and there is no change in chat
Actual Result:
The "Deleted task" message is highlighted and the chat gets bold in LHN
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6353662_1706125398601.IMG_4702.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: