-
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
[HOLD for #20373][$1000] Web - Nothing happens when clicking 'mark as unread' for first message in Task page #22059
Comments
ProposalPlease re-state the problemNothing happens when clicking 'mark as unread' for first message in Task page after clicking 'mark as done'. What is the root cause of that problem?When we click on mark as done, a Lines 201 to 206 in c0ece67
But fields like Lines 195 to 197 in c0ece67
But the function What changes do you think we should make to solve this problem?We should also update other properties of the report while adding the Lines 136 to 142 in c0ece67
This can be done with the following code: function completeTask(taskReportID, taskTitle) {
const message = `completed task: ${taskTitle}`;
const completedTaskReportAction = ReportUtils.buildOptimisticTaskReportAction(taskReportID, CONST.REPORT.ACTIONS.TYPE.TASKCOMPLETED, message);
const lastAction = completedTaskReportAction;
const currentTime = DateUtils.getDBTime();
const lastCommentText = ReportUtils.formatReportLastMessageText(lastAction.message[0].text);
const optimisticReport = {
lastVisibleActionCreated: currentTime,
lastMessageText: lastCommentText,
lastMessageHtml: lastCommentText,
lastReadTime: currentTime,
lastActorEmail: currentUserEmail,
lastActorAccountID: currentUserAccountID,
stateNum: CONST.REPORT.STATE_NUM.SUBMITTED,
statusNum: CONST.REPORT.STATUS.APPROVED,
};
const optimisticData = [
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${taskReportID}`,
value: optimisticReport
},
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${taskReportID}`,
value: {[completedTaskReportAction.reportActionID]: completedTaskReportAction},
},
];
..... What other approach did you explore?None |
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
@adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~016a6e191233b5d7c1 |
Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
replicated - this should match how we treat other actions/messages |
@adelekennedy Let's put this on hold for #20373 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@adelekennedy Do we need to have |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
you're so right!! |
Still on hold |
holding |
Still on hold, moving to Monthly |
The PR we are holding this issue for got closed. Asked for next steps here. |
@PauloGasparSv @bondydaa From #20373 (comment). That issue was closed with not much details. Can you please help us on how we should move forward with this one? @esh-g Can you please check if the issue is still reproducible? |
@adelekennedy Can you please make this |
@s77rt This does not seem to be reproducible anymore.. |
@adelekennedy We are good to close this one |
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:
New line marker should appear
Actual Result:
New line marker don't appear.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.35-5
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
Test47_Markasunread-1.mp4
Recording.3369.mp4
Expensify/Expensify Issue URL:
Issue reported by: @daveSeife
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688193259099549
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: