-
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
[$500] IOU - User is brought to main chat and duplicate error in report when paying same request twice #33822
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01b20888f83f6a41ed |
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?In FE, we generate an error in Line 2858 in 320ff54
So we have two errors for this action.
What changes do you think we should make in order to solve the problem?In
What alternative solutions did you explore? (Optional)If we only want to display one error message for App/src/pages/home/report/ReportActionItem.js Line 693 in 320ff54
|
@anmurali, @0xmiroslav Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
To my endpoint, in step 5, a user(me) remains on the IOU report but the bug is reproducible on step 6. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I wonder two errors should not be shown on report screen? 2 messages explain same but occur by different reasons. |
@anmurali, @0xmiroslav 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
There are 2 bugs stated in OP. No one proposed the correct root cause for the first bug |
So there are 2 errors. One is IOU error and the other unexpected error from backend. These could occur in each case. But it looks same. |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?When the Lines 2886 to 2894 in fe49e4f
So, there is 2 errors in What changes do you think we should make in order to solve the problem?We are able to delete the condition. but it may affect other experience. So, we manage by show only default item on App/src/components/DotIndicatorMessage.tsx Lines 73 to 101 in fe49e4f
+ const message = uniqueMessages[0] -
+ {isReceiptError(message) ? (
<PressableWithoutFeedback
accessibilityLabel={Localize.translateLocal('iou.error.saveFileMessage')}
-
accessibilityRole={CONST.ACCESSIBILITY_ROLE.LINK}
onPress={() => {
fileDownload(message.source, message.filename);
}}
>
<Text
-
style={styles.offlineFeedback.text}
>
<Text style={[StyleUtils.getDotIndicatorTextStyles(isErrorMessage)]}>{Localize.translateLocal('iou.error.receiptFailureMessage')}</Text>
<Text style={[StyleUtils.getDotIndicatorTextStyles(isErrorMessage), styles.link]}>{Localize.translateLocal('iou.error.saveFileMessage')}</Text>
<Text style={[StyleUtils.getDotIndicatorTextStyles(isErrorMessage)]}>{Localize.translateLocal('iou.error.loseFileMessage')}</Text>
</Text>
</PressableWithoutFeedback>
) : (
<Text
// eslint-disable-next-line react/no-array-index-key
-
style={[StyleUtils.getDotIndicatorTextStyles(isErrorMessage), textStyles]}
>
{message}
</Text>
),
+ }
- )}
Screen.Recording.2024-01-10.at.9.42.09.AM.movWhat alternative solutions did you explore? (Optional) |
I agree that single error shows from same reason. But as I know the other error occurs for unknown reason from backend. And IOU error only in IOU cases explain general issue. IOU error can't be distinguished from the unknown error for now. |
@0xmiroslav bumping you for review of the above comments/ revised proposal. |
@0xmiroslav There are 2 bugs stated in OP. No one proposed the correct root cause for the first bug I can only reproduce the second bug |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@anmurali @0xmiroslav this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale ( |
@akinwale reassigning, please take over as C+. If you don't have bandwidth, unassign yourself. Thanks |
Taking over as C+ here. @anmurali I was able to reproduce, but I got the repeated error messages as in the OP. It looks like the two messages in your test are different however, so that could probably be treated as a separate unrelated issue. What do you think? |
It makes sense to display the latest error message in this instance if there happen to be multiple, so we can move forward with @dukenv0307's proposal. 🎀👀🎀 C+ reviewed. |
Triggered auto assignment to @rlinoz, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I really can't reproduce this issue, neither in staging or dev... Am I missing something @akinwale? Screen.Recording.2024-01-24.at.16.23.36.mov |
After forcing offline, settle the IOU (pay elsewhere) on the session that was forced offline, and then settle on the other online session before putting the offline session back online. |
This is edge case and not worth fixing IMO. Similar issues (requiring 2 devices) were closed as won't fix. |
Oh I missed the part of needing 2 devices, thanks |
Since this looks like a problem of how we are displaying error messages and not really about requiring 2 devices I think this one is worth fixing. I am assigning @dukenv0307 then, thanks! |
📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@akinwale The PR is ready for review. |
Looks like automation missed this one. It was deployed to production on 2024-02-05, so the payment due date is 2024-02-12. cc @anmurali |
Not a regression.
Regression Test Steps
Do we agree 👍 or 👎? |
Honestly I think this is not an impactful bug, and needing "two" devices with the same account makes it tricky to test, so I think we can skip adding regression tests. |
Works for me. @akinwale and @dukenv0307 have been paid. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.20-2
Reproducible in staging?: Y
Reproducible in production?: Y
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
Expensify/Expensify Issue URL:
**Issue reported by:**Applause - Internal Team
Slack conversation:
Action Performed:
Precondition: User A owes User B money
Expected Result:
In Step 5, user will remain on the IOU report
In Step 6, the error message will not appear twice
Actual Result:
In Step 5, user is redirected to the main chat after reconnecting network
In Step 6, the error message is duplicated -
"'Unexpected error, please try again later. An unexpected error occurred. Please try again.'
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6329854_1704114912943.20231229_091649.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: