-
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
[$250] Web - New Room -Console error when creating New Room #11800
Comments
Triggered auto assignment to @joelbettner ( |
It would be good to know if there are any noticeable affects on the actual user experience, but I do agree that we should make sure we aren't throwing any errors in the console. Going to add the "external" label. |
Triggered auto assignment to @dylanexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Triggered auto assignment to @dangrous ( |
ProposalI believe this error log happen because the API Screen.Recording.2022-10-16.at.12.29.31.movSolution diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js
index fc9b2e5a8..42ff95269 100644
--- a/src/libs/actions/Report.js
+++ b/src/libs/actions/Report.js
@@ -1255,7 +1255,8 @@ function addPolicyReport(policy, reportName, visibility) {
},
];
- API.write(
+ // eslint-disable-next-line rulesdir/no-api-side-effects-method
+ API.makeRequestWithSideEffects(
'AddWorkspaceRoom',
{
policyID: policyReport.policyID,
@@ -1264,8 +1265,9 @@ function addPolicyReport(policy, reportName, visibility) {
reportID: policyReport.reportID,
},
{optimisticData, successData},
- );
- Navigation.navigate(ROUTES.getReportRoute(policyReport.reportID));
+ ).then(() => {
+ Navigation.navigate(ROUTES.getReportRoute(policyReport.reportID));
+ });
}
/** Result Screen.Recording.2022-10-16.at.12.35.46.mov |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
Hey @mollfpr (and @thesahindia)! So I think you're correct as to what's causing the issue - looking at the logs we're indeed getting feedback that the user doesn't have access to the newly created report. However, generally, we try to avoid using You probably got here but it looks like the request that's causing the issue is here Also, just to note - In testing locally, I am not getting the same error issue, I think because any requests are basically instant (but am seeing it on prod and staging) so that's something to be aware of; we should make sure the fixes actually work the way we expect them to when there might be a delay. cc @thienlnam for any further insight if you have it! |
@dangrous, we don't have a upwork job for this. Let's reassign @dylanexpensify |
@dangrous Thanks for the feedback! Yeah I guess you're right about How about we call Since the optimistic data is set to cc @thesahindia |
ProposalSince the root cause is defined here we need to delay call of Solution
diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js
index 06bbce049..2cc94dfd2 100755
--- a/src/pages/home/report/ReportActionsView.js
+++ b/src/pages/home/report/ReportActionsView.js
@@ -99,7 +99,6 @@ class ReportActionsView extends React.Component {
this.setState({newMarkerSequenceNumber: 0});
});
- Report.subscribeToReportTypingEvents(this.props.report.reportID);
this.keyboardEvent = Keyboard.addListener('keyboardDidShow', () => {
if (!ReportActionComposeFocusManager.isFocused()) {
return;
@@ -326,6 +325,8 @@ class ReportActionsView extends React.Component {
} else {
Performance.markEnd(CONST.TIMING.SWITCH_REPORT);
}
+
+ Report.subscribeToReportTypingEvents(this.props.report.reportID);
}
render() { Result Screen.Recording.2022-10-20.at.23.42.33.mov |
@mollfpr this is great! I'll go ahead and assign you, if you want to apply to the Upwork job when you have a moment. Sorry for all the back and forth, and I'm happy we got here! |
📣 @mollfpr You have been assigned to this job by @dangrous! |
@dangrous @thesahindia PR raised 🚀 I also added the fix for a similar issue when creating New Chat / New Group Chat. So not just checking |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist will need to be completed before the issue can be closed:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist will need to be completed before the issue can be closed:
|
Great job @mollfpr! I just merged. |
@thesahindia @mollfpr @dangrous have we seen any regressions with this? |
@dylanexpensify We haven’t. The PR is still in QA. |
I... do not, unfortunately. I know they're working on some deploy issues so it might be a bit before it gets up. |
Issue not reproducible during KI retests. (First week) |
The PR has been merged into prod (not sure why we didn't get the notification here. But the 7 day clock can start, and looks like from that ^ we're off to a good start. |
@thesahindia @mollfpr can you both please apply to the above upwork job? 🙇 |
@dylanexpensify Applied, thank you! |
Done! |
@dylanexpensify, this is ready for the payment. |
Issue not reproducible during KI retests. (Second week) |
Bump @dylanexpensify 🚀 |
Sorry y'all! Getting payment sorted this AM! |
Offers sent @thesahindia @mollfpr |
@dylanexpensify Applied, thank you! |
@dylanexpensify, accepted 🚀 |
paid out, contracts closed! Appreciate y'all! |
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:
Go to URL https://staging.new.expensify.com/
Login with expensify account
Click on FAB->New Room
Enter the data to create a New Room
Expected Result:
There should be no error in the console
Actual Result:
An error message appeared in the console
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: v1.2.14-0
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Bug5775247_Recording__2351.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: