Skip to content

[HOLD for payment 2022-03-31] Future dates in DOB date picker are not disabled. It is disabled for Incorporation Date - reported by @thesahindia #8151

Description

@mvtglobally

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:

  1. Go to workspace > Connect Bank Account
  2. Choose any option > Go to company step
  3. Check Incorporation Date field date picker
  4. Go to Personal details step and check DOB field date picker

Expected Result:

The future dates should be disabled for DOB date picker

Actual Result:

Future dates in DOB date picker are not disabled.

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.41-4
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Screen.Recording.2022-03-04.at.7.39.42.PM.mov

Expensify/Expensify Issue URL:
Issue reported by: @thesahindia
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1646403860813759

View all open jobs on GitHub

this job

Activity

  1. MelvinBot commented on Mar 15, 2022

    @MelvinBot
    Contributor

    Triggered auto assignment to @mountiny (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  2. changed the title [-]Future dates in DOB date picker are not disabled. It is disabled for Incorporation Date[/-] [+]Future dates in DOB date picker are not disabled. It is disabled for Incorporation Date - reported by @thesahindia[/+] on Mar 15, 2022
  3. mountiny commented on Mar 15, 2022

    @mountiny
    Contributor

    @luacmartins Coming from the Slack thread, there was not more people who chimed in. As you worked on the Forms overhaul, you probably have the best idea about how we want to proceed with the forms in future.

    Would you say then we would want to enable future dates, but throw error? We would need to do the validation (if it does not exist yet internally in backend)

  4. mountiny commented on Mar 15, 2022

    @mountiny
    Contributor

    Although I feel like in this case we could go with disabling it in front end. We should still make sure we have validation steps that catch bugs or bad actors, but it seems like there should be no case when users will want to add future data, so so no reason to actually allow them to.

    I can be persuaded differently though 😄

  5. luacmartins commented on Mar 15, 2022

    @luacmartins
    Contributor

    I agree that we should move forward with disabling future dates and "set the customer up for success". I agree that we should keep the validation checks. We are already doing those in the frontend and backend.

  6. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Mar 15, 2022
  7. MelvinBot commented on Mar 15, 2022

    @MelvinBot
    Contributor

    Triggered auto assignment to @jboniface (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  8. mountiny commented on Mar 15, 2022

    @mountiny
    Contributor

    @luacmartins Perfect, thank you so much!

  9. thesahindia commented on Mar 15, 2022

    @thesahindia
    Member

    Proposal

    need to pass maximumDate={new Date()} in DatePicker

    <DatePicker
    label={`${props.translate('common.dob')}`}
    containerStyles={[styles.mt4]}
    placeholder={props.translate('common.dateFormat')}
    value={props.values.dob}
    onChange={value => props.onFieldChange({dob: value})}

  10. jboniface commented on Mar 15, 2022

    @jboniface
  11. 10 remaining items

  12. mountiny commented on Mar 15, 2022

    @mountiny
    Contributor

    Thanks @rushatgabhane!

    @thesahindia Feel free to submit the PR.

  13. changed the title [-]Future dates in DOB date picker are not disabled. It is disabled for Incorporation Date - reported by @thesahindia[/-] [+][HOLD for payment 2022-03-31] Future dates in DOB date picker are not disabled. It is disabled for Incorporation Date - reported by @thesahindia[/+] on Mar 30, 2022
  14. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed on Mar 30, 2022
  15. mountiny commented on Mar 30, 2022

    @mountiny
    Contributor

    There was an issue with the deploy comments, this should be applicable for payment on Thursday 🎉

  16. jboniface commented on Mar 31, 2022

    @jboniface

    @thesahindia & @rushatgabhane i think this is the job that upwork accidentally took down, I reposted it under a new link here

  17. rushatgabhane commented on Mar 31, 2022

    @rushatgabhane
    Member

    Thanks!

  18. thesahindia commented on Mar 31, 2022

    @thesahindia
    Member

    Applied.

  19. mohanbright commented on Apr 1, 2022

    @mohanbright

    There is an option to set max date in date picker.

    Solution - At the time of selecting date picker, just need to set max date in date picker. It will take maximum 2 hrs with testing.

  20. luacmartins commented on Apr 1, 2022

    @luacmartins
    Contributor

    @mohanbright sorry, but we have already hired someone for this job and the PR with the fix has been merged. Thanks for your interest though and I hope to see more of your proposals on some of our other open issues.

  21. mountiny commented on Apr 5, 2022

    @mountiny
    Contributor

    @jboniface Has this been paid and just not closed? Can we close?

  22. jboniface commented on Apr 6, 2022

    @jboniface

    nah, I was OOO and waiting for the job to be accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions