-
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] Web - Assign Task - The emoti icons do not work in chat for task #24644
Comments
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Emojis and emojiPickers shown on task completed, reopened messages but cannot be selected What is the root cause of that problem?Here
we show the quick emoji reactions if the reportaction has a message and it is not deleted so it appears for the task completion and reopening messages Presently reactions are not added and displayed because here App/src/libs/actions/Report.js Line 1675 in 202f2eb
we get the originalReportID which gives a different reportID (the parentReport chat in which this task appears as a reportAction in a report) if it is isThreadFirstChat and the isThreadFirstChat hereLine 687 in 202f2eb
gives a different report ID for the reportActions of "completed task" etc because they have a childReportID but this different reportID does not have these report actions of “completed task” etc. So originalReportAction here is an empty object and the function returns without adding emoji to the reportAction.App/src/libs/actions/Report.js Line 1678 in 202f2eb
What changes do you think we should make in order to solve the problem?So we need to add at the end of the reportAction.childType !== CONST.REPORT.TYPE.TASK or reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.TASKCOMPLETED ||
reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.TASKCANCELLED ||
reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.TASKREOPENED then the What alternative solutions did you explore? (Optional)We can add this condition here in reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.TASKCOMPLETED ||
reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.TASKCANCELLED ||
reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.TASKREOPENED ResultScreen.Recording.2023-08-09.at.10.07.47.PM.mov |
I can reproduce - In the parent thread I'm able to react but not in the completed task thread. Agree with the thread let's polish this so that either no emoji menu shows up in the completed task thread - or it allows reactions. I think the first option is cleaner |
Job added to Upwork: https://www.upwork.com/jobs/~01121b95215b1e98f4 |
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 - @ArekChr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Assign Task - The emoti icons do not work in chat for task What is the root cause of that problem?whenever task completed or reopened What changes do you think we should make in order to solve the problem?function getOriginalReportID(reportID, reportAction) {
return isThreadFirstChat(reportAction, reportID) && ![CONST.REPORT.ACTIONS.TYPE.TASKCOMPLETED, CONST.REPORT.ACTIONS.TYPE.TASKCANCELLED, CONST.REPORT.ACTIONS.TYPE.TASKREOPENED].includes(reportAction.actionName) ? lodashGet(allReports, [`${ONYXKEYS.COLLECTION.REPORT}${reportID}`, 'parentReportID']) : reportID;
} for completely removing the emoji
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Assign Task - The emoti icons do not work in chat for task What is the root cause of that problem?The task complete action has App/src/libs/actions/Report.js Line 1675 in 202f2eb
App/src/libs/actions/Report.js Line 1676 in 202f2eb
What changes do you think we should make in order to solve the problem?I think it's a BE bug. You can see in the image, the task complete action is stored in What alternative solutions did you explore? (Optional)if we don't want to change BE, we should check if the reportAction is complete task, reopentask or cancel task, we will continue addEmoji reaction.
or update
App/src/libs/actions/Report.js Line 1678 in 202f2eb
ResultScreencast.from.17-08-2023.12.04.37.webm |
@adelekennedy Why just for finished tasks? I can't react to tasks that are reopened, either. Who can help decide about this? Both options are fine for me. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Assign Task - The emojis do not work on task status message such as completed, reopened, cancelled. What is the root cause of that problem?The root cause comes from the backend. The backend stores the task status message's childReportID to task reportID. What changes do you think we should make in order to solve the problem?If we need to find the solution in the frontend instead of the backend, then we need to update getOriginalReportID. Line 2966 in e89ea9d
function getOriginalReportID(reportID, reportAction) {
return isThreadFirstChat(reportAction, reportID) && lodashGet(reportAction, 'childType', '') !== CONST.REPORT.TYPE.TASK ? lodashGet(allReports, [`${ONYXKEYS.COLLECTION.REPORT}${reportID}`, 'parentReportID']) : reportID;
} What alternative solutions did you explore? (Optional)Result2023-08-17_19-14-30.mp4 |
Let's address the backend issue directly on the server side rather than attempting a frontend workaround. @adelekennedy, I believe this issue should remain internal. @stitesExpensify, could you review this when you're available? |
works for me - I'm going to remove the external labels and add the engineering auto assigner |
Current assignee @ArekChr is eligible for the Internal assigner, not assigning anyone new. |
Triggered auto assignment to @Julesssss ( |
FYI I am OOO this week. Feel free to reassign in the meantime, or I will be back on Monday 28th |
I'm back now, but there's no way I can prioritise this in the next month FYI. |
@Julesssss @ArekChr @adelekennedy this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Same as above |
This is a low priority issue, @ArekChr should we try the frontend workaround to get this moving faster? I think the only other option is to deprioritize this until Jules is able to tackle that backend - that means delays in payments. Final alternate solution - this isn't a functional problem, it's a polish, we could clos eto free up engineering time |
I think it's best to hold the issue, as the front-end changes (if any) might not become clear until after the backend changes have been made. |
I'm moving this to monthly and removing the bug label so we don't get pings on this |
Does this issue really come from the backend? I see the backend makes the task action's childReportID to task reportID when the task action is created. I am not sure if It is intended or a bug. If it's intended, we should fix it on the frontend. |
I see isTaskAction() in ReportActionsUtils. App/src/libs/ReportActionsUtils.js Lines 594 to 601 in 54e6904
We can use the function to the proposal. If the action is the task action, then we should return the reportID instead of the parentReportID in getOriginalReportID. Lines 3245 to 3247 in 54e6904
function getOriginalReportID(reportID, reportAction) {
return isThreadFirstChat(reportAction, reportID) && !ReportActionsUtils.isTaskAction(reportAction) ? lodashGet(allReports, [`${ONYXKEYS.COLLECTION.REPORT}${reportID}`, 'parentReportID']) : reportID;
} |
Following this thread, is this task not on hold anymore? |
If nobody can reproduce I'll close it |
@Julesssss Actually, this doesn't display emoji because the complete task is stored in task report but it has |
I guess I'm not convinced we need to allow emojis on these actions. |
@Julesssss Please see the image in my proposal #24644 (comment). The data of the task system is wrong from BE and now we cannot copy the task system message and the emoji doesn't appear. We should remove all child fields in task system action. |
Okay, I see the point. It's going to be very hard to prioritise the backend fix anytime soon though. I'd suggest we close it and revisit once we're less focused on wave projects. What do you think @adelekennedy ? |
That works for me - what will remind us to re-open this though? |
Good point... I sent you a calendar event for Q1 next year :) |
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 emoti icons should work.
Actual Result:
The emoti icons do not work.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.54-11
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
2023-08-02_17-48-30.mp4
2023-08-09_15-21-10.mp4
Recording.1153.mp4
Expensify/Expensify Issue URL:
Issue reported by: @oleksandr-pantsyr
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690987850797129
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: