b5dd7422f4
Initializing pool connection variable with None.
...
Release pool connection handle und all circumstances especially also when a query fails
before the call is finished. This should avoid connection starvation.
fix prod. link
production fix
Fixed application path
2025-11-12 15:06:54 +01:00
5ce866936d
unified return structure to use error_field instead of message key to correspond to API specification
2024-09-16 14:17:30 +02:00
Max Metz
2ac2bc196c
potentially resolving the 'Unknown column ... in 'field list' issue
2024-08-28 18:44:45 +02:00
Max Metz
cc2a54c1c6
added extensive logging for an open, unresolved issue. The issue-log may make clear, where the issue originates
2024-08-27 21:14:30 +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
4106b9a0ef
For intervals there are now 2 fields in the times object: eta_interval_end and etd_interval_end
2024-04-03 10:39:32 +02:00
d42b3753e7
split up ata_atd in two separate fields ata and atd
2024-03-31 21:58:56 +02:00
11f72b370d
fixed a bug where shipcall id was not set on times delete
2024-03-30 21:41:03 +01:00
a5b16154c6
Fixed saving of shipcall by correctly interpreting enums now
...
The trick was to use a helper-field and a (decorated) @post_load method in the model that allows to fill the helper
fields with the values (ints) instead of strings for enums.
Trouble is: We are parsing strings from API/JSON and want to serialize as int (value in IntEnum). The helper
fields also must be skipped when setting up the query. Pretty convoluted, but gets the jon done (finally).
Also extended the database by new field 'interval_end' which is a preparation to allow not only timestamps but also
intervals when specifying times for participants.
2024-03-27 19:20:54 +01:00
f311d75c73
added ata_atd and time_point_ref fields to database, yaml and python access layer
2024-03-27 10:52:12 +01:00
b47c261487
added existence check to dictionary key usage
2024-02-14 16:55:21 +01:00
e8f6a17e7f
change parameter order
2024-02-14 16:42:55 +01:00
c6bbbf94e3
do not use execute_scalar
2024-02-14 16:24:06 +01:00
77722703ac
added trace output
2024-02-14 16:12:07 +01:00
898cfdf07d
Merged current state of develop
2024-02-14 10:56:35 +01:00
e3017349b0
added finally statement to close pooledConnection under all circumstances
2024-02-05 09:48:34 +01:00
01dda53425
Tried to create history endpoint but failed. Not working.
2024-01-13 19:09:50 +01:00
a52cc27d69
Fixed SQL and added endpoint for history data
2024-01-13 19:09:50 +01:00
scopesorting
cdb7877461
Adding validation rules (traffic light status) to the system. Post & Put calls of shipcalls and times now execute the traffic light evaluation and store the result in the connected MySQL database instance. The 'brecal_utils' library is merged with 'BreCal', including the stub objects and test functions. Requirements were adapted, and installation of a virtual environment works from scratch (on a linux system).
2023-10-19 18:32:49 +02:00
97adf65c0c
Fixed all sorts of small bugs, should be working now
2023-10-04 10:38:08 +02:00
110ff5ccce
EXTENDED TIMES TO DIFFERENTIATE BETWEEN PARTICIPANT TYPES
...
Participants can be of multiple types (e.g. agent and terminal), therefore the participant
type must be stored in the times data record in order to assign times correctly during
display and to differentiate in calculation.
2023-09-21 08:23:19 +02:00
89a6a4f726
extended times and use flags on participant, added code to have a test version of the client
2023-09-05 16:38:40 +02:00
f255b16ff4
Work in progress, edit dialog completed, saving new elements works
2023-08-23 09:38:44 +02:00
3d7906a9f2
Synchronizing data structures including the latest changes in Excel spec
...
Database
API (yaml)
Flask
2023-08-17 10:05:48 +02:00
6b93f0ac3f
Type für Participant, Content-Type in responses korrigiert
2023-08-07 12:19:20 +02:00
8a9e3884fe
Closing pooled connections
2023-07-27 09:58:06 +02:00
6d4392c1bc
fixed error result values in python api
2023-07-13 10:07:23 +02:00
15cc4bf8da
API up and running.
...
There are still open issues but in principle, it is working
2023-06-22 10:56:13 +02:00
20f38fff91
POST zum Laufen gebracht.. RTFM! :-)
2023-06-20 07:44:27 +02:00
d0a77b3f0f
die meisten GET calls sind drin, 2 funktionieren noch nicht
2023-06-19 16:04:02 +02:00
a833863761
added ship endpoint
2023-04-08 18:19:26 +02:00
8fb1d9b4d7
added logging lib
2023-03-17 09:03:26 +01:00
c69d13d1f3
Open API 3.0
...
- Added first draft of yaml file
- Added Python stubs generated by postman export tool
2023-03-02 09:22:37 +01:00