Commit Graph

559 Commits

Author SHA1 Message Date
a2c56e9696 Changes for linter to return no messages at all for warning level 2024-09-12 15:52:24 +02:00
cc17e6c33a Merge branch 'feature/1.6_database_changes' into develop 2024-09-12 11:48:56 +02:00
5625cbac49 reverted settings for test version 2024-09-12 11:31:16 +02:00
79ed86937c Merge branch 'release/1.5.0' into develop 2024-09-12 11:23:08 +02:00
a90eca923d
Merge pull request #49 from puls200/hotfix/20240912
Hotfix/20240912
2024-09-12 10:48:06 +02:00
Max Metz
aaea8441f6 shifting the ship-id check into the validation object 2024-09-12 10:22:27 +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
82969c8726 Merge branch 'bugfix/validation_feedback' into release/1.5.0 2024-09-12 09:43:45 +02:00
4e39510be6 Version bump to 1.5.0.4 2024-09-11 09:11:46 +02:00
e7a6aa6584 fixed some cut and paste error and a crash when changing the assignment fails by API 2024-09-11 08:41:49 +02:00
282a860c42 Version bump to 1.5.0.2 2024-09-11 07:08:14 +02:00
a0d27289ae removed unnecessary float conversion 2024-09-10 21:46:30 +02:00
a497f7f2a0 fixed typo in error message 2024-09-10 21:15:52 +02:00
a305ee3bed Version bump to 1.5.0.2 2024-09-10 21:14:21 +02:00
38563d5b38 Simplified error display dialog 2024-09-10 18:06:28 +02:00
39c5990199
Merge pull request #48 from puls200/hotfix/20240910
Hotfix/20240910
2024-09-10 17:53:12 +02:00
Max Metz
7c5bc626d0 improving documentation 2024-09-10 17:47:44 +02:00
Max Metz
6505ad758f bsmd authorization for times PUT 2024-09-10 17:45:32 +02:00
96d0de9e56
Update validation rules document (#47)
* Update validation rules document

* clarified error message array in 400 return value

* simplified the return structure
2024-09-10 17:41:21 +02:00
Max Metz
5b68ef95cb adapting exception handling and error responses for 400 responses. Using a simplified format, which only uses the keys 'error_field' and 'error_description' 2024-09-10 17:37:08 +02:00
Max Metz
590df30fef A ship's IMO-validation was used in POST and PUT requests. This caused an issue for POST requests. 2024-09-10 14:48:20 +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
7a97cd7d95 format of exceptions now always follows baseline format. 'errors'-key is always a list of dictionaries. 2024-09-10 13:50:13 +02:00
c375b9f553 Adding proper result structure to error return message 2024-09-10 12:59:39 +02:00
4f88e493d9
Merge pull request #46 from puls200/hotfix/20240909
Hotfix/20240909
2024-09-09 19:54:34 +02:00
67c852482e Added some warnings if time intervals or particular values lie in the past for shipcall and agency 2024-09-09 18:27: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
93362d3695 Don't crash on ship delete API error 2024-09-09 13:11:56 +02:00
Max Metz
d2cd233f13 creating default handlers for every kind of Exception in the /api/ routes. Those default functions also create automatic logging with the .warning level. Relocated the .impl-calls into the Try-Exception-blocks, so they are properly logged and avoid system failures. 2024-09-09 12:46:55 +02:00
Max Metz
85973ad848 creating a default error response format for each API route 2024-09-09 12:21:32 +02:00
Max Metz
61b00b8b22 auto-converting non-lists to list values. 2024-09-09 11:55:58 +02:00
8028382e79
Merge pull request #45 from puls200/hotfix/20240905_validation_error_type
Hotfix/20240905 validation error type
2024-09-05 18:40:30 +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
7ad8011c52 Merge branch 'release/1.5.0' of github.com:puls200/brecal into release/1.5.0 2024-09-05 11:55:34 +02:00
1243ebf9e7 Adjusted error formatting and bumped test version to 1.5.0.1 2024-09-05 06:49:25 +02:00
3bce9e85b9
Merge pull request #44 from puls200/hotfix/20240903_maintenance_1.5.0
Hotfix/20240903 maintenance 1.5.0
2024-09-05 05:59:44 +02:00
Max Metz
facafd09ba adapting the .md documentation for the traffic state rules. 2024-09-04 12:29:06 +02:00
Max Metz
c7371a945a adapting traffic light validation 0002-C. This no longer requires ETA verification. Adapted the description when the error occurs and renamed the function. 2024-09-04 12:21:22 +02:00
Max Metz
e4d0ea2301 fixed serialization of marshmallow.ValidationErrors. This was caused by the 'valid_data' containing datetime objects, which were not serializable natively. 2024-09-04 12:11:32 +02:00
Max Metz
bc73bb3c08 fixed serialization of marshmallow.ValidationErrors. This was caused by the 'valid_data' containing datetime objects, which were not serializable natively. 2024-09-04 12:11:05 +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
a8d0356eb7 added the shipcall PUT rule to the docs/ApiValidatioNRules.md document 2024-09-04 11:19:47 +02:00
Max Metz
2c0a73113b shipcall PUTs may no longer change the shipcall type 2024-09-04 11:17:32 +02:00
126faff281 Removed ETA as required field from shipcall PUT/POST 2024-09-04 11:13:38 +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
76995a84e4 Added the port reference to management of berths incl. excel import 2024-09-04 09:50:53 +02:00
Max Metz
4b5ff90b34 properly serializing ValidationError exceptions. 2024-09-04 08:30:46 +02:00
759532733c
Merge pull request #42 from puls200/hotfix/20240903_json_responses
properly serializing ValidationError exceptions.
2024-09-04 08:30:12 +02:00
6cfd311bbb Version bump to 1.6 2024-09-04 08:09:13 +02:00