-
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
[$1000] Dev: Web - After deleting a thread message, the message "You" briefly shows up in the LHN before disappearing #22487
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @neil-marcellini ( |
Updated Step 4:
|
Triggered auto assignment to @bfitzexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Dev: Web - After deleting a thread message, the message "You" briefly shows up in the LHN before disappearing What is the root cause of that problem?We're rendering the TaskView here and it has actionType "CREATED" App/src/pages/home/report/ReportActionItem.js Lines 416 to 424 in 60f4817
After user edited the task, we put the "TASKEDITED" to the optimisticData, this made this condition false, and it will return the lastMessageText instead of "No activity yet".App/src/libs/ReportActionsUtils.js Lines 301 to 303 in 60f4817
So while user deleting the last message after assigning task to someone, it will update lastMessageText inside optimisticData to You .And later, when the data from backend return, it will display No activity yet since backend returned empty lastMessageText.What changes do you think we should make in order to solve the problem?Since we didn't show message for edited task inside Report or TaskReport, we should add more condition here: const visibleActions = _.filter(actions, (action) => !isDeletedAction(action) && !isEditedTaskAction(action)); The /**
* @param {Object} reportAction
* @returns {Boolean}
*/
function isEditedTaskAction(reportAction) {
return lodashGet(reportAction, 'actionName') === CONST.REPORT.ACTIONS.TYPE.TASKEDITED;
} What alternative solutions did you explore? (Optional)We should add a check to our |
Job added to Upwork: https://www.upwork.com/jobs/~01b93ac0fe26c1d0de |
Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
Not overdue, I'm going to un-assign for now. Please re-assign me when a C+ approves a proposal. |
@aimane-chnaif proposal from @hungvu193 to review in #22487 (comment) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@hungvu193 thanks for your proposal but the root cause is not correct. Awaiting proposals |
@aimane-chnaif can you please explain it? Please take a look at my evidence |
@hungvu193 why this bug happens only when delete message? Based on your RCA, "You" will be always shown when |
Aha, I missed to explain the DeleteComment part. So when user deleted a comment, it updated lastMessageText inside optimisticData to I updated my proposal here (#22487 (comment)) btw. |
@aimane-chnaif take a look at the updated proposal in #22487 (comment) when you get a moment - thanks! |
@bfitzexpensify @aimane-chnaif this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Bump to review updated proposal @aimane-chnaif - thank you! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@hungvu193's solution still doesn't work. |
Waiting for better proposal |
Thanks for your patience. You're right. I missed this case. I updated my proposal again |
How is #22487 (comment) looking @aimane-chnaif? |
Unable to repro on latest main. |
Yeah, I think it's fixed. We can close |
@hungvu193 which PR do you think it's fixed by? |
This one #23341 @aimane-chnaif . |
i have reported this bug 3 weeks ago so maybe a PR fixed this bug after i reported so am i eligible for reporting bonus ? |
@bfitzexpensify @aimane-chnaif this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
Great, closing this out. @ayazhussain79 since you reported the other bug that led to this fix, we wouldn't pay out the reporting bonus twice. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The message "You" should not appear in the LHN after deleting a thread message
Actual Result:
After deleting a thread message, the message "You" briefly shows up in the LHN before disappearing
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: Dev v1.3.38-3
Reproducible in staging?: no
Reproducible in production?: no
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-recording-2023-07-08-at-21933-am_7euWaLII.mp4
Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688765209026689
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: