To be able to receive registrations for a course an open registration window is necessary.
The registration window can be started by the corresponding dean.
A Registration Window has the following attributes:
ID
Start: LocalDateTime
End: LocalDateTime
Status
Details
1. Add Endpoint to start a registration window
Add an endpoint to create a new registration window:
Only one registration window can be open (only one with status open, throw an exception if one is already open)
Restrict the API call to the dean
Set the status to open
The dean can enter the start and endtime when creating a new registration window
2. Start the registration window process
When a new registration window is created a new registration window process should be created.
Add the ID, start and end time to the registration window process.
3. When creating a new registration add the currently open registration window ID
When a registration is added by a student, add the current registration window id to the registration.
4. Set the status to finished when the registration window process ends
Add a service task at the end of the process and set the registration window status to finished
@VladKay I have tried to remember the functionality that was originally planned. You can use this epic to validate if we have everything to get started with registration windows.
Description
To be able to receive registrations for a course an open registration window is necessary. The registration window can be started by the corresponding dean.
A Registration Window has the following attributes:
Details
1. Add Endpoint to start a registration window
Add an endpoint to create a new registration window:
2. Start the registration window process
When a new registration window is created a new registration window process should be created. Add the ID, start and end time to the registration window process.
3. When creating a new registration add the currently open registration window ID
When a registration is added by a student, add the current registration window id to the registration.
4. Set the status to finished when the registration window process ends
Add a service task at the end of the process and set the registration window status to finished
5. Unit tests
Don't forget to write Unit Tests for each task