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:
Before the start date
More than 5 days after the start date
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:
Change the end date to the nearest date within range
Return an error and force the user to fix the issue
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.
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.