Bell Schedule Creation Endpoint will crash if not provided with a school ID in the request body #25

Open
opened 2023-03-10 02:06:49 +01:00 by MoralCode · 0 comments
Owner

github.com/MoralCode/ClassClockAPI@06108fe63b/blueprints/v0.py (L423)

this can be reproduced by creating a schedule without selecting a school in the admin UI.

This should return at LEAST a sane error message on the backend.
The frontend should also include validation to ensure the form cant be submitted without specifying a school.

https://github.com/MoralCode/ClassClockAPI/blob/06108fe63be3c0cebee22b08f2208d83348c84cd/blueprints/v0.py#L423 this can be reproduced by creating a schedule without selecting a school in the admin UI. This should return at LEAST a sane error message on the backend. The frontend should also include validation to ensure the form cant be submitted without specifying a school.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ClassClock/API#25
No description provided.