goshencollege / gc-communicator

1 stars 0 forks source link

Maximum range for announcement end date #56

Open davidwkdavidwk opened 2 years ago

davidwkdavidwk commented 2 years ago

Issue

When creating an announcement there is no restriction on the end date allowing users to create announcements which will run for years.

Desired function

The end date for an announcement should not be allowed to be:

Potential alternatives

It would be nice if the UI imposed the restriction but, at the very least, it should be enforced when the Announcement entity is created. If the end date is out of range it would be fine for the server to either:

Additional context

If a new announcement has an error when it's submitted there isn't any way to send the user back to the form with an error message. It might be good to create that functionality.