Skip to content
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

Mentor can only input datetimes that pass validation when adding availability #267

Open
2 tasks
esparr opened this issue Nov 13, 2023 · 0 comments
Open
2 tasks

Comments

@esparr
Copy link
Collaborator

esparr commented Nov 13, 2023

We need validation for the datetime inputs for a mentor’s availability.

Validation Cases

  • start time cannot be before end time
  • start time nor end time can be in past
  • availability cannot be longer than 12 hours

Acceptance Criteria:

  • The Validation Cases should be run every time a user attempts to create an availability.
  • If any of these cases are not met, there are 2 consequences:
    - an API call should not be made
    - an error message should be displayed for the user

If this seems like too big a ticket, you can break it up into 3 tickets, one for each Validation Case. The 2 Consequences will be required for each ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔖 Current Sprint
Development

No branches or pull requests

1 participant