-
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
[HOLD for payment 2024-02-07] [$500] IOU - Replacing Receipt with an Invalid File Format Does Not Display an Error Message #28343
Comments
Triggered auto assignment to @trjExpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01bb8307379994bc8e |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
Proposal - UpdatedPlease re-state the problem that we are trying to solve in this issueThe app allows the user to upload an invalid file format but then shows the old image. What is the root cause of that problem?If we want to forbid files with
|
ProposalPlease re-state the problem that we are trying to solve in this issueIOU - Replacing Receipt with an Invalid File Format Does Not Display an Error Message What is the root cause of that problem?
we're using
but we're getting transaction by using and we don't add errors to failureData -> the error message is not shown What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)None ResultScreen.Recording.2023-10-09.at.14.32.18.mov |
@JmillsExpensify @youssef-lr, how does this one jive with this issue for allowing all file extensions? Seems like we're silently failing in this case. CC: @AndrewGable @Gonals as well from the receipt upload implementation |
@trjExpensify the issue you linked is for attachments. We have some restrictions when it comes to what types of receipts you can upload I think. |
@ikevin127 @tienifr Thanks for proposals, everyone. Both of proposals look good.
🎀👀🎀 C+ reviewed |
Triggered auto assignment to @jasperhuangg, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Hm, that sounds correct to me. We should show an error message immediately, but we shouldn't revert the receipt until they take action on the error message to dismiss it. For example..
If we just reverted the receipt that failed to upload, a user could very well be out of pocket, so I think we need to be careful with that. |
Yeah I think I agree with that. We need to provide a way for you to get the thing you uploaded |
Yeah, so I think that should apply with a failed receipt upload when replacing a receipt here? We display the error message, and when you dismiss it, it reverts back to the original. |
So, does that mean we will now check the file format locally and show an error if it is not a supported file type, instead of sending it to the backend immediately? |
@trjExpensify, it sounds great to me. Just wanna confirm the scope, do you want to cover above ^ in this GH? (fyi, to fix the current issue, I think we only need to define |
I think we should fix it properly, yeah. Otherwise people will lose receipts that failed to be replaced. @Gonals might have some insight on the approach for this from the Scan Receipt implementation, as we should be doing the same to give them the option to download it on a failed receipt upload. |
To clarify, no, that does not mean that. We might have local validation but this issue is not about that. It is about not losing the file when we sent the request to the server, but the server failed for whatever reason. |
So it sounds like the given proposal that was approved by C+ doesn't entirely fit our requirements. We don't want to lose the optimistic file in Onyx that was uploaded, in case the user wants to redownload the file and try again. This is still open for proposals! |
Cool. @trjExpensify could you help to update the |
@hoangzinh we should be unblocked here now! :) |
@tienifr let's tackle this issue again 🔥 |
@jasperhuangg over to you for the secondary review! |
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.4.34-1 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 2024-02-07. 🎊 For reference, here are some details about the assignees on this 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:
|
👋 checklist time here! |
BugZero Checklist:
Regression Test Proposal
Do we agree 👍 or 👎 |
@hoangzinh, @trjExpensify, @jasperhuangg, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@hoangzinh those tests look good to me, thanks! |
Nice, thanks! Applause have a regression test for the failed upload side, so I've created an issue for the replace receipt side. |
Summarising payouts as follows:
Settled up, thanks! |
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:
In this case, the user has uploaded an invalid image format, so there should be an error message. The file should remain optimistically in Onyx until the user decides to clear the error.
Actual Result:
No error displays.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.74-2
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
Chrome-Desktop.mp4
Safari-Desktop.mov
bandicam.2023-09-28.00-58-54-891.mp4
Expensify/Expensify Issue URL:
Issue reported by: @tranvantoan-qn
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695720594688229
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: