c6954fb222
Fixed some validation issues that have cropped up over the last months
2025-10-07 12:01:57 +02:00
2576127b79
serverside fixes for detecting unchanged time values
2024-11-14 11:45:24 +01:00
72d3ad05bf
Added validation rules regarding port_id (for berth and participant assignment)
2024-10-23 09:55:56 +02:00
0d7861ec36
If a PUT or DELETE operation is attempted on a non-existant object, 404 is returned
2024-10-21 10:37:35 +02:00
4531eda8f1
more validation input fixes
2024-10-19 19:59:38 +02:00
f0720b9b1d
Fixed some more small bugs in validation when only a partial times dataset is put
2024-10-19 19:58:46 +02:00
scopesorting
fb8b732b1d
regardless of the BSMD flag, BSMD users are now able to perform shipc… ( #51 )
...
* regardless of the BSMD flag, BSMD users are now able to perform shipcall PUT-requests
* regardless of the BSMD flag, BSMD users are now able to perform shipcall PUT-requests
* docstrings and BSMD-flag handling
2024-10-19 19:56:08 +02:00
1d64a83d32
Fixed error in validation when times data was updated for operations
2024-09-30 08:32:18 +02:00
Max Metz
82ad56812e
correcting an issue in the DELETE methods for SHIPS and TIMES, where the ID may have been provided as a null value or was incorrectly converted (string instead of integer)
2024-09-12 10:19:26 +02:00
Max Metz
6505ad758f
bsmd authorization for times PUT
2024-09-10 17:45:32 +02:00
Max Metz
c90b002806
Times POST no longer raises a ValidationError when the provided time is in the past.
2024-09-10 14:17:03 +02:00
Max Metz
9127cdeac8
BSMD users are now allowed to POST times entry, if they are assigned to the ShipcallParticipantMap or the special BSMD-flag-clause takes place
2024-09-09 17:06:03 +02:00
Max Metz
ab7b1ed34f
every ValidationError is defined to return a dictionary. In case of validation errors without such a call, a function enforces a default with an undefined key to ensure the correct format.
2024-09-05 12:46:04 +02:00
Max Metz
2f678267c8
time estimations are no longer dependency on times POST requests. This refers to eta_berth, etd_berth, operations_start, operations_end.
2024-09-04 11:41:03 +02:00
Max Metz
3d2405e8fb
maintenance of API Input Validation (ship & times)
2024-09-04 10:27:46 +02:00
Max Metz
1ff972883f
adding input validation for time intervals
2024-09-04 10:27:38 +02:00
Max Metz
e1d9570268
solving the concatenation issue of a list and a None-type.
2024-08-27 20:52:10 +02:00
Max Metz
e526337c6a
added a reference check to PUT-requests (shipcall), so each provided ID must exist. Corrected some input validation functions to solve known bugs
2024-08-12 19:43:19 +02:00
Max Metz
d54fed9160
corrected open issues of the API validation functions. Made some validation errors more verbose, improved robustness, refactored some of the methods and adapted many unit tests to the novel format.
2024-08-06 20:46:40 +02:00
Max Metz
cd8c246d72
adapting times POST, PUT, DELETE to properly include the special case, where a BSMD user should also be allowed to handle times entries of an AGENCY, if the agency has the flag set.
2024-07-25 10:42:44 +02:00
Max Metz
3d2e1f5158
Added input validation for API requests. Refactored some methods, added docstrings. Solved marshmallow-warnings in BreCal.schemas.model. Added unit tests, now totaling 215. Added proposals to refactor all SQL queries into an object at BreCal.database.sql_queries.SQLQuery for better standardization. Created a helper-object to handle Emails, which prepares the notification-feature.
2024-07-25 10:42:44 +02:00