-
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
[$500] Task - Unable to copy task complete/reopen message #27884
Comments
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issueThe 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 What changes do you think we should make in order to solve the problem?We need to wrap the text with the 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) |
@anmurali Eep! 4 days overdue now. Issues have feelings too... |
Yep, can reproduce |
Job added to Upwork: https://www.upwork.com/jobs/~0181f1cb78999beeb1 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Unable to copy task complete/reopen message, when we try to copy the message of task complete/reopen we are not able to copy it, it does nothing. What is the root cause of that problem?The error for this is that when we copy the message using context menu action (that appears when we hover over it), ti calls onPress method here - App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 184 to 189 in d7ad305
We are getting The reason we are getting reportActions empty is how we are retrieving data from ONYX here - App/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js Lines 186 to 192 in d7ad305
For the task completed and reopen action we don't have We need to use What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)We can directly use |
ProposalPlease re-state the problem that we are trying to solve in this issue.The copied task message is not pasted. The message is not copied at all What is the root cause of that problem?This is because the originalReportID here is retrieved incorrectly for task. That logic was added in this PR to make sure we get the correct original report id of the first thread report action for The problem is the condition in here matches Task report actions like So here it retrieves incorrect What changes do you think we should make in order to solve the problem?We need to fix the condition here to align with its intended use case, which is to get the original report id for first thread report action of a
What alternative solutions did you explore? (Optional)The condition |
@lcsvcn Thanks for the proposal. I don't think your RCA is correct. We have the |
@BhuvaneshPatil Thanks for the proposal. Your RCA makes sense but I don't think we got into the real root cause. As for the solutions: getting report actions for both |
@tienifr Thanks for the proposal. Your RCA is almost correct except I don't think the bug is on
This seems to describe the real root cause and I think those report actions should not have 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @cead22, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Not overdue. I think this is waiting for @cead22's input ^ |
@cead22 ^ |
In any case, I think the |
@cristipaval could you clarify if we meant to set the |
@cristipaval mentioned he'd take a look here today 🙏🏼 |
This is not reproducible anymore. Could someone confirm? Also, @MariaHCD, FWIW: the code that blames me was added last week, whereas this issue was opened three weeks ago. I just moved that logic that was the same in multiple places to a separate reusable function. |
Let me know if the issue is still reproducible to you, and I'll do my best to spend some time trying to investigate deeper. |
@cead22 @MariaHCD @anmurali @s77rt 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! |
@cead22 @MariaHCD @anmurali @s77rt this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
cc: @thienlnam if you have any context around why the |
That shouldn't be happening, the code that adds those reportActions doesn't include a childReportID I wonder if it's happening via the FE? Or if this is still reproducible with a new task report |
Still seeing it on new task reports 🤔 It seems to me that we're deliberately setting the childReportID to the task reportID here? |
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. |
Thanks, @thienlnam! Approved the BE fix, tested locally and it worked as expected: Screen.Recording.2023-10-26.at.11.30.24.AM.movWe'll update this issue once the fix is deployed. |
Heads up, @s77rt, the backend fix was deployed to production. Can we retest? Thanks! |
@MariaHCD It's fixed! 🚀 |
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. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #27119
Action Performed:
Expected Result:
The copied task message is pasted
Actual Result:
The copied task message is not pasted. The message is not copied at all
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.72-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Bug6207782_20230921_000923.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: