You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$500] Task - Unable to copy task complete/reopen message #27884
Ahhh yes, so this was only meant to be added to the ADD_COMMENT reportActions not these other task actions. I can update it so that happens
Context: You can assign a task to an infinite number of people, and they might not have access to the parent report of the task so they get a reportAction in the DM between the owner and the assignee with a link to the task report. The childReportID is added to those to make sure they all link to the same task report.
Activity
melvin-bot commentedon Sep 20, 2023
Triggered auto assignment to @anmurali (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 20, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)lcsvcn commentedon Sep 20, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue
The copied task message is pasted
What is the root cause of that problem?
The cause of the problem is that we need to wrap the
TaskActionis not using theCopyTextToClipboard, where other text are using it.What changes do you think we should make in order to solve the problem?
We need to wrap the text with the
CopyTextToClipboardcomponent. Similar on what is done here:App/src/pages/iou/ReceiptSelector/index.js
Lines 118 to 121 in 4c207ec
So at this part, we need to wrap the report action message with the component above, that way it is know that needs to be copied:
App/src/components/ReportActionItem/TaskAction.js
Lines 23 to 25 in 4c207ec
What alternative solutions did you explore? (Optional)
melvin-bot commentedon Sep 26, 2023
@anmurali Eep! 4 days overdue now. Issues have feelings too...
anmurali commentedon Sep 27, 2023
Yep, can reproduce
[-]Task - Unable to copy task complete/reopen message[/-][+][$500] Task - Unable to copy task complete/reopen message[/+]melvin-bot commentedon Sep 27, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0181f1cb78999beeb1
melvin-bot commentedon Sep 27, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (
External)39 remaining items
melvin-bot commentedon Oct 18, 2023
@cead22, @MariaHCD, @anmurali, @s77rt Still overdue 6 days?! Let's take care of this!
melvin-bot commentedon Oct 20, 2023
@cead22, @MariaHCD, @anmurali, @s77rt 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!
MariaHCD commentedon Oct 23, 2023
cc: @thienlnam if you have any context around why the
childReportIDis included in the TASKREOPENED / TASKCOMPLETED report actions: #27884 (comment)thienlnam commentedon Oct 23, 2023
That shouldn't be happening, the code that adds those reportActions doesn't include a childReportID
https://github.com/Expensify/Auth/blob/53aea0415eddf80a82db5283ace0162feba26a19/auth/lib/Report.cpp#L5828-L5845
I wonder if it's happening via the FE? Or if this is still reproducible with a new task report
MariaHCD commentedon Oct 25, 2023
Still seeing it on new task reports 🤔
It seems to me that we're deliberately setting the childReportID to the task reportID here?
thienlnam commentedon Oct 25, 2023
Ahhh yes, so this was only meant to be added to the ADD_COMMENT reportActions not these other task actions. I can update it so that happens
Context: You can assign a task to an infinite number of people, and they might not have access to the parent report of the task so they get a reportAction in the DM between the owner and the assignee with a link to the task report. The childReportID is added to those to make sure they all link to the same task report.
MariaHCD commentedon Oct 26, 2023
Thanks, @thienlnam! Approved the BE fix, tested locally and it worked as expected:
Screen.Recording.2023-10-26.at.11.30.24.AM.mov
We'll update this issue once the fix is deployed.
MariaHCD commentedon Oct 30, 2023
Heads up, @s77rt, the backend fix was deployed to production. Can we retest? Thanks!
s77rt commentedon Oct 30, 2023
@MariaHCD It's fixed! 🚀
MariaHCD commentedon Oct 30, 2023
Nice, thanks! I don't think any payments are required or anything else is needed from engineering? So we should be good to close this one out.