-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[BONUS PAYOUT ONLY] [$1000] Chat - Redundant "Unexpected error" below the IOU" message after split from 2 devices #18839
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
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The issue here is each What is the root cause of that problem?The problem is we are displaying the error without checking if the report is valid or not in the code below. App/src/pages/home/report/ReportActionItem.js Lines 352 to 357 in 9b48b8e
What changes do you think we should make in order to solve the problem?To fix this, we simply check if the report is valid and use it to decide whether to display error messages or not. const isReportValid = !lodashGet(this.props.report, 'errorFields.addWorkspaceRoom') && !lodashGet(this.props.report, 'errorFields.createChat'); <OfflineWithFeedback
onClose={() => ReportActions.clearReportActionErrors(this.props.report.reportID, this.props.action)}
pendingAction={this.props.draftMessage ? null : this.props.action.pendingAction}
errors={this.props.action.errors}
shouldShowErrorMessages={isReportValid} // Added this line
errorRowStyles={[styles.ml10, styles.mr2]}
needsOffscreenAlphaCompositing={this.props.action.actionName === CONST.REPORT.ACTIONS.TYPE.IOU}
>...</OfflineWithFeedback> What alternative solutions did you explore? (Optional)
|
cc @yuwenmemon would you be bale to handle this one since it seems like related to your PR, thanks! |
Not overdue, waiting on input from @yuwenmemon |
Not overdue, waiting on Yuwen's input |
@therealsujitk's proposal seems good to me. |
Job added to Upwork: https://www.upwork.com/jobs/~0136c6f52250bef4a6 |
Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new. |
📣 @therealsujitk You have been assigned to this job by @yuwenmemon! |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Current assignee @yuwenmemon is eligible for the External assigner, not assigning anyone new. |
Invited @parasharrajat , @therealsujitk - can you share your Upworks profile? |
Sure, [redacted] |
@parasharrajat & @yuwenmemon, I'm not sure if you were notified of my mention in the PR since you aren't assigned to it yet. Can you kindly take a look at the suggested changes I've made in my PR and if I should go through with it. I'd like to get your opinion before the weekend so there's time for you to review the PR by monday. |
I will check this today. |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.29-11 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-06-28. 🎊 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.
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:
|
|
@yuwenmemon all good with no regression test? |
Good with me |
Paying now! |
@jliexpensify @yuwenmemon can a bonus be considered for this one since there were no further changes after the three day period and the only delay was the final review.
|
Hmm weird - I was going off this. Is that not correct? |
Ah @jliexpensify the reason for that is because I was assigned to this before and then unassigned because we decided to go with a different approach and was assigned again here. @MelvinBot took the first time I was assigned instead of the last, I've already reported this and was told it'll be fixed. |
Ok, going to re-open this. @s77rt you should then also qualify for a $500 bonus too - can you confirm that @therealsujitk 's timeline is correct? |
@jliexpensify Yes, that timeline is correct |
Ok @s77rt and @therealsujitk i'll whip up a job to pay the extra $500. |
Job - https://www.upwork.com/jobs/~01346cf257dfdd21bd Invited both! |
@jliexpensify Accepted! Thanks! |
@jliexpensify offer accepted, thanks! |
Paid and closed job, cheers. |
Uh oh!
There was an error while loading. Please reload this page.
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:
PR #18328
says "We shouldn't need to use a generic error message for failure data for the request money / send money flow when creating a New Chat, just like split bill. Otherwise, it will just be redundant with the error sent by the API.". And step 8 of the PR says "Make sure there is no "Unexpected error" below the IOU" (second error message).
In scenario above (steps) as chat is invalid then no need for second redundant message under IOU
Actual Result:
Second redundant "unexpected error" message under IOU is displayed.
is redundant, he second error message under IOU is redundant as chat is invalid and will be deleted.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.13.0
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
Bug6052638_video_45.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: