-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 payment 2023-09-20] [$1000] Chat - Shows error “OpenReport returned error” when click Reply in new thread #25538
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.The issue occurs when we open the context menu upon receiving the first message in the thread. Subsequently, when we attempt to reply within the thread using the 'Reply in Thread' option, the thread that was opened showed an error." What is the root cause of that problem?The main issue arises from how the context menu functions. When we open the context menu, it captures and stores the current report actions. However, if someone responds from a different platform or account, a new conversation thread is generated for that response. Unfortunately, this updated information doesn't reach the context menu – this is because we only send it when using showContextMenu. This leads to a problem when we attempt to reply within the thread. The system mistakenly tries to create a new thread for the report action, resulting in a backend error. Fortunately, refreshing the interface corrects this. What changes do you think we should make in order to solve the problem?Instead of relying solely on the data we get when the user initially opens the report, we can take a different approach. We should call for a refresh of the report action data using the report ID and the received report action. This way, when the user clicks "Reply" in the thread, they'll get the latest report action data. This updated data will include the newly created thread for that action. This means they'll be directed to the correct thread, avoiding the creation of a new thread and any associated errors. to do that will need to update the following: - App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 131 to 143 in 03cf0b1
onPress: (closePopover, {reportAction, reportID}) => {
// update report data .
const currentReportAction = ReportActionUtils.getReportAction(reportID, reportAction.reportActionID);
if (closePopover) {
hideContextMenu(false, () => {
ReportActionComposeFocusManager.focus();
Report.navigateToAndOpenChildReport(lodashGet(currentReportAction, 'childReportID', '0'), currentReportAction, reportID);
});
return;
}
Report.navigateToAndOpenChildReport(lodashGet(currentReportAction, 'childReportID', '0'), currentReportAction, reportID);
},
Updatefor the second issue introduced hereWe can still use the same approach by getting the report by ID in all Context Menu Actions const currentReportAction = ReportActionUtils.getReportAction(reportID, reportAction.reportActionID); and we may refactor the context menu actions to only take the reportActionID instead or reportAction What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - Shows error “OpenReport returned error” when click Reply in new thread What is the root cause of that problem?We're storing
and set this state only when we execute => we will create the new report that already exists What changes do you think we should make in order to solve the problem?Solution 1: Store reportActionID in Solution 2: Update What alternative solutions did you explore? (Optional)None |
reproducible |
Job added to Upwork: https://www.upwork.com/jobs/~013f08abe4343ca397 |
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 - @jjcoffee ( |
I think this issue has same RCA with #25539. |
@adelekennedy Agree, sounds like the same RCA - they both deal with the |
ProposalBring proposal from #25539 this can fix both issues Please re-state the problem that we are trying to solve in this issue.Chat - Shows error “OpenReport returned error” when click Reply in new thread What is the root cause of that problem?
We have the same issue with copy to clipboard action What changes do you think we should make in order to solve the problem?Instead of passing To avoid unnecessary re-render we can use We also need to add an extra filed when we show context menu like What alternative solutions did you explore? (Optional)Some other solution for this issue For each option in ResultScreencast.from.15-08-2023.12.40.29.webm |
@jjcoffee, @adelekennedy Huh... This is 4 days overdue. Who can take care of this? |
@adelekennedy I guess we're waiting for a response to your comment on the related issue before proposal review can start? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@jjcoffee |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.68-17 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-09-20. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@adelekennedy |
Payouts due:Issue Reporter: $250 @DinalJivani Upwork Eligible for 50% #urgency bonus? Y Upwork job is here. |
@adelekennedy Not sure if you missed that there was a regression here. |
@tgolen, @jjcoffee, @adelekennedy, @dukenv0307 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
just waiting for payouts |
@adelekennedy What do we need to do to finish up payments on this one? |
@jjcoffee I missed the regression above - in this case because it was my error I won't ask for a refund |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
It should not show error and show reply screen with one message sent
Actual Result:
Shows error when click Reply in new thread
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.55-7
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
Image.from.iOS.15.MP4
0-02-01-f7f385c9b89c216a4fffdb14623a06a08239f66e4933de23f402ef0c286a32d0_a09bee0eb86d0c6c.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: @DinalJivani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691362729658749
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: