-
Notifications
You must be signed in to change notification settings - Fork 89
Description
Observed behavior (please include a screenshot if possible)
When creating schedule exceptions in the Editor, the validation check for duplicate dates will only check against dates for exceptions that have been fully loaded in the UI (i.e., a GraphQL fetch has been performed for an individual schedule exception entity). So, it is very easy to create an exception with a duplicate date. Related: the server does not check that the date is duplicated before writing the update. Also shown in the screenshot, some pretty ugly formatting on the "New" button.
Expected behavior
When a schedule exception is being created, and a date is chosen (e.g., July 4th) that already has an exception defined (e.g., Independence Day), the duplicate date validation warning should be shown.
Steps to reproduce the problem
- Start from scratch in Editor
- Create exception for Independence Day. Set day to July 4th. Save.
- Deselect exception. Reload page.
- Create new exception for July 4th. Set day to July 4th. Save.
Step 4 should not be permitted to happen.
Any special notes on configuration used
N/A
Version of datatools-ui and datatools-server if applicable (exact commit hash or branch name)
latest dev.