Closed izarutskaya closed 1 month ago
Triggered auto assignment to @abekkala (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
We think this issue might be related to the #collect project.
Job added to Upwork: https://www.upwork.com/jobs/~016e89ad61491fffbc
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 (External
)
Bank account - No error message is displayed for incorrect validation amounts
No validation is added for amount limit. https://github.com/Expensify/App/blob/3fd16441c2d4606e28f7696fd86943a3525355ce/src/pages/ReimbursementAccount/ConnectBankAccount/components/BankAccountValidationForm.tsx#L65-L81
Add a if block which will compare max/min amount with filteredValue
and add error using errors[key as keyof AmountValues] = translate('common.error.invalidAmount');
. Error message can be created or can be used from any other form.
@izarutskaya @abekkala, is there any min/max limit for these inputs? When we should throw an error? I don't understand the bug exactly.
The error message for incorrect validation amounts is not displayed. Also, the validation is not disabled due to many tries.
In failure data of VALIDATE_BANK_ACCOUNT_WITH_TRANSACTIONS
in https://github.com/Expensify/App/blob/58e257532290aa0228f1c668ed461a15f1b2b136/src/libs/actions/BankAccounts.ts#L336
We don't set the errors
, so when the data returned by the back-end does not have the errors
set, like in the case of 402 error code (back-end temporary issue) here, no errors
will be shown to the users and it looks like the app is not responsive and broken.
Add optimistic errors for code validation similar to the approach here https://github.com/Expensify/App/blob/main/src/libs/actions/BankAccounts.ts#L165
In this add
errors: ErrorUtils.getMicroSecondOnyxErrorWithTranslationKey('validationStep.validateCodeFailure'),
Store only the error translation key in Onyx, and use translate
to translate it when we display the error
I remember we discuss about this validation a while ago but couldn't find the slack thread. So I lean toward to the adding optimistic errors proposal. Let's hear another thoughts from internal engineer too.
π π π
Triggered auto assignment to @youssef-lr, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@hungvu193 FYI we're already validating the amount here (including validating the length, see {0,8}
)
Also I don't think it's related to this issue, it happens not because the amount length is invalid
cc @youssef-lr
@youssef-lr, @abekkala, @hungvu193 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Bump @youssef-lr for your decision
Setting an error optimistically sounds good to me!
Cool. So let's go with @tienifr 's proposal π
@youssef-lr can you assign @tienifr so he can start working on the issue?
@tienifr Do you have any ETA for the PR? π
@tienifr can you give a date for your PR? Thanks!
Still waiting for the PR
not deployed to prod yet
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.15-9 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-08-09. :confetti_ball:
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:
not overdue payment is tomorrow
Regression test:
Do we π or π ?
$250 approved for @hungvu193
$250 approved for @tienifr
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v9.0.6-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4709268 Email or phone of affected tester (no customers): applausetester+vd_ios071024@applause.expensifail.com Logs: https://stackoverflow.com/c/expensify/questions/4856 Issue reported by: Applause-Internal team
Action Performed:
Pre-requisite: user must have created a Workspace and have enabled Workflows.
Expected Result:
"The validate code you entered is incorrect, please try again" error should be displayed. Also, the validation should be disabled due to many tries.
Actual Result:
The error message for incorrect validation amounts is not displayed. Also, the validation is not disabled due to many tries.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/Expensify/App/assets/115492554/15c0c1aa-b91f-470d-84d3-fdefbf7603d2
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @abekkala