-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-08-07] [$250] Switch to Expensify Classic - Field required error is shown on a field that is populated #44926
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.Switch to Expensify Classic - Field required error is shown on a field that is populated What is the root cause of that problem?We validate the form by checking the App/src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx Lines 112 to 114 in 1f0a462
App/src/libs/actions/ExitSurvey.ts Lines 41 to 67 in 1f0a462
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) |
Triggered auto assignment to @RachCHopkins ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Switch to Expensify Classic - Field required error is shown on a field that is populated What is the root cause of that problem?We are utilizing draftResponse from Onyx to validate the form App/src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx Lines 112 to 114 in 1f0a462
but we reset EXIT_SURVEY_RESPONSE_FORM_DRAFT when the user clicks the "Switch to Expensify Classic" button What changes do you think we should make in order to solve the problem?Since we clear all data when the user clicks the "Switch to Expensify Classic" button, I recommend dismissing the RHP modal after the user clicks this button.
What alternative solutions did you explore? (Optional)It's not advisable to utilize draftResponse from Onyx for form validation App/src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx Lines 110 to 114 in 80b0849
We should validate the form using its current value, similar to how we have implemented validation in other functions within our codebase
Then we can add value props to InputWrapper to reset the form value Should update the same thing in ExitSurveyReasonPage Component. |
Can confirm - I can replicate this. |
Job added to Upwork: https://www.upwork.com/jobs/~014958041fe5db1abc |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.This field is required' error is shown on a field that is populated What is the root cause of that problem?When we switch to OldDot, we clear the response form data App/src/libs/actions/ExitSurvey.ts Lines 57 to 67 in b0947e0
And then the error appears when we go back and click on the next button again because the App/src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx Lines 112 to 114 in b0947e0
What changes do you think we should make in order to solve the problem?We can do the same way as we do in the reason page by creating a state to control the value of response input and use this current value to validate
What alternative solutions did you explore? (Optional)When we validate or submit the form we can use
|
personally @cretadn22's proposal to dismissModal after redirecting to olddot sounds good to me, but if we want to go with the expected behaviour in OP, Alternative solution from @cretadn22 looks like correct pattern 👍 i'll let assign engineer make the decision on expected behaviour, in any case @cretadn22 Proposal LGTM! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @youssef-lr, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@youssef-lr, @RachCHopkins, @ishpaul777 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@youssef-lr Can you confirm the expected behavior here?
|
not overdue, pending final review |
gentle bump @youssef-lr |
I think we can just close the RHP. I don't see why it should remain open and then trigger another survey response (if we fix the bug) |
Thanks for clarifying @youssef-lr, Can you please assingn @cretadn22 as they proposed this in their solution #44926 (comment) |
📣 @ishpaul777 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.14-6 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-08-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:
|
@youssef-lr @RachCHopkins Could someone assist with processing the payment? |
Not overdue, This is only pending payment and checklist (i'll fill out today) |
@youssef-lr, @RachCHopkins, @ishpaul777, @cretadn22 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
This is ready for payment : ) @RachCHopkins |
@youssef-lr, @RachCHopkins, @ishpaul777, @cretadn22 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
This is ready for payment |
@ishpaul777 sorry for the delay - I'm just waiting on that checklist above. |
ahh I missed that.. I'll fill this out today |
[@ishpaul777] The PR that introduced the bug has been identified. Link to the PR: #34925 |
@RachCHopkins This is ready for payment |
Not overdue, Awaiting payment |
Payment Summary: Contributor: @cretadn22 paid $250 via Upwork |
Contributor has been paid, the contract has been completed, and the Upwork post has been closed. |
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: 9.0.4-6
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
No error is shown and proceeds to the next page
Actual Result:
This field is required' error is shown on a field that is populated
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6534140_1720191198095.ex_Switch_to_OD_issue.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ishpaul777The text was updated successfully, but these errors were encountered: