-
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 2023-03-09] [$1000] Wrong validation error message on choose date of birth. #15228
Comments
Triggered auto assignment to @dylanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Cannot reproduce on staging, @kavimuru can you share what platforms this occurs on and if still occurring? 🙇 |
Was able to reproduce, but we need to update steps to say set to today's date not Feb 17 cc @kavimuru |
Job added to Upwork: https://www.upwork.com/jobs/~01d2cc56f9c3202414 |
Current assignee @dylanexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Triggered auto assignment to @danieldoglas ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Validation message is incorrect or we can say incomplete What is the root cause of that problem?We are allowing ages between 5 to 150 so we are doing some validation to check age is between these numbers or not. but message is incorrect in translation: Line 617 in 90b9efa
What changes do you think we should make in order to solve the problem?We have to just change message in translation to indicate before or equal to |
Should we put this on HOLD for New Date Picker Design? |
ProposalPlease re-state the problem that we are trying to solve in this issue.The validation error message says that we can not select a particular date during DOB selection but in actual, we can select that date without any error. What is the root cause of that problem?The root cause of this problem is that current date that we use for comparison includes hours of the day as well. The selected date however, does not include the hours of the day. eg What changes do you think we should make in order to solve the problem?We can solve the problem by making sure that we're comparing against the current date with start of the day selected. The following needs to be changed:
We also need to change the following:
What alternative solutions did you explore? (Optional)
|
@rushatgabhane can we get a review of @allroundexperts proposal please? |
@danieldoglas i prefer @allroundexperts' proposal because it fixes the root cause #15228 (comment) C+ reviewed 🎀 👀 🎀 |
Makes sense to me. Assigning @allroundexperts |
Triggered auto assignment to @dylanexpensify ( |
lol |
Triggered auto assignment to @mallenexpensify ( |
@mallenexpensify I'm heading OOO! Would you mind finishing the last bits for me?? 🙇 |
@jatinsonijs @rushatgabhane @allroundexperts can you please accept the job and reply here once you have? This bug is specific to the date being exactly 5 years from the current date, right? |
Currently we have it set up for 5 years. |
I've applied @mallenexpensify. |
Thanks @allroundexperts . @isagoico , when you're back from ECX, can you take a look at this? I'm unsure it should be added to TestRail because it's an extreme edge case that anyone (outside of @jatinsonijs , ha) would add a birthday of exactly 5 years. |
@mallenexpensify applied |
@mallenexpensify , you meant to tag @isagoico . :) |
@isabelastisser I swear I updated it right after I posted it! (honestly, I probably have done it more than once this week, sorry) |
Everyone is paid!! Leaving open and bumping to weekly til @isagoico is back and can review. |
@mallenexpensify Thanks for the payment. The PR for this was merged within 3 days. Am I eligible for the bonus here? |
I take my comment back. This was merged ~12 hours late. |
i have a checklist todo here |
Lol agree here, I don't think this would be a valuable addition since there's a extremely low chance of this happening to any user. So I would say :donothing: in TestRail for this case. |
Thanks for confirming @isagoico , closing |
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:
Either message should be "Date should be on or before 2018-02-16.". Or don't allow to select 16/2/2018
Actual Result:
Incorrect error message allowing to select 16/2/2018 but error message says date should be before 16/2/2018
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.72-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
date-validation.mov
Recording.1538.mp4
Expensify/Expensify Issue URL:
Issue reported by: @jatinsonijs
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1676539597780339
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: