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
862ef9fe88
Merge branch 'feature/api_enhancements' into develop
2024-03-27 10:08:48 +01:00
63b815c274
fixed enum serialization by using custom optional to_json() method
2024-02-27 07:31:04 +01:00
e88f3fa1de
synched enum fields to lower case like yaml
2024-02-26 07:23:09 +01:00
06e9c9b8ae
log incoming message
2024-02-24 10:05:43 +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
fc1b55c7b9
added remaining fields to user query
2024-02-14 15:51:12 +01:00
8a6ded2813
fixes for errors reported in server log
2024-02-14 15:41:21 +01:00
898cfdf07d
Merged current state of develop
2024-02-14 10:56:35 +01:00
6e114d15e7
Set default shipcall lookup to max 1 day in the past
2024-02-09 12:42:18 +01:00
e3017349b0
added finally statement to close pooledConnection under all circumstances
2024-02-05 09:48:34 +01:00
50b7dd8cc5
fix shipcall query to include times eta/etd
2024-02-04 11:20:32 +01:00
801c4a1383
fixed deleted in ship (was int, is now: bool)
2024-01-15 17:16:22 +01:00
708fa5ce37
fixed naming in query
2024-01-15 17:10:21 +01:00
801800df92
added missing fields in query
2024-01-15 17:04:49 +01:00
a4e51f2483
changed local path
2024-01-15 17:00:19 +01:00
c51264a55d
added new fields to evaluation object
2024-01-15 16:25:08 +01:00
c1d8b2e855
fixed notification endpoint to return real data for a shipcall
2024-01-13 19:09:50 +01:00
1ef74b51ba
added ship delete and fixed schema loading error for shipclass
2024-01-13 19:09:50 +01:00
dd4ae7def8
fixed error, but enum values are still serialized as int
2024-01-13 19:09:50 +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
ae9053bcaf
Added POST and PUT endpoint for /ship
2024-01-13 19:09:50 +01:00
aba1d9d00b
Changed validation rule 002 A-C so that the agency time is set as reference time allowing 15 minute deviation
2024-01-13 19:02:43 +01:00
d8fabe0f97
Fixed time comparison validation func. Now compares min/max value of array.
2024-01-13 19:01:56 +01:00
db2ba28d61
Merge branch 'bugfix/ui_fixes_1.1' into develop
2023-12-26 17:15:13 +01:00
e7e9d79c5d
Version bump to 1.1.1
2023-12-26 17:13:10 +01:00
b4764e29b6
disable port authority validation logic
2023-12-24 11:20:43 +01:00
scopesorting
191aff720b
Implemented the feature to ignore port administration. However, the flag is currently disabled.
2023-12-19 09:51:29 +01:00
scopesorting
e7b7d7e18f
correcting 0004A & 0004B
2023-12-19 09:51:29 +01:00
scopesorting
ca8a7ab291
updating rule 0004A&0004B by using a rounding method for time differences.
2023-12-19 09:51:29 +01:00
scopesorting
a29b3ead0e
bugfix of 0004A and B, where the tide window may have deviated by few seconds, so the wrong state would be concluded.
2023-12-19 09:51:29 +01:00
24757c1702
Version bump 1.0.0 -> 1.1.0
2023-12-17 11:12:52 +01:00
scopesorting
99c798bfe0
changing 'exit' with sys.exit to avoid 'NameError' for the exit call
2023-12-15 16:40:51 +01:00
scopesorting
31a5034e17
Solving: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit argument instead. Additional metadata: {'Required': False}
2023-12-15 16:40:51 +01:00
scopesorting
dfdd4da1d8
correcting minor typos in the documentation and verbosity
2023-12-15 16:40:51 +01:00
scopesorting
2f67e58ace
created a feature flag, which disables the PORT_ADMINISTRATION validation rules. Currently, the flag is 'hardcoded' once in the library. Adapting the test to properly facilitate the feature flag
...
cherry picking all open adjustments to the develop branch.
2023-12-15 16:40:51 +01:00
scopesorting
ad7637368b
removing unused if-statements
2023-12-15 16:40:51 +01:00
scopesorting
08ab984096
updating the sql handler's method of filtering for the filled-in header
2023-12-15 16:40:51 +01:00
scopesorting
836c1aa802
fixing the 'KeyError' when using an empty times dataframe. Returning 'green'
2023-12-15 16:40:51 +01:00
scopesorting
6ce6e882e9
more concise evaluation messages for 0001. Adding newlines (works on Windows) when multiple evaluation messages are shown. Properly adding the ShipcallType filters for each rule (whether incoming, outgoing or shifting). Added a regular expression to abbreviate an evaluation message when 512 characters are exceeded.
...
fixing a version conflict for validation rule functions.
2023-12-15 16:40:51 +01:00
scopesorting
d004e77650
created a feature flag, which disables the PORT_ADMINISTRATION validation rules. Currently, the flag is 'hardcoded' once in the library. Adapting the test to properly facilitate the feature flag
...
cherry picking the feature flag of 'port administration' rules
2023-12-15 16:40:51 +01:00
scopesorting
ad593ff2a2
more concise evaluation messages for 0001. Adding newlines (works on Windows) when multiple evaluation messages are shown. Properly adding the ShipcallType filters for each rule (whether incoming, outgoing or shifting). Added a regular expression to abbreviate an evaluation message when 512 characters are exceeded.
2023-12-01 09:44:22 +02:00
scopesorting
fce8ce0c68
changing the ParticipantType to an IntFlag, so multiple roles are possible. Adapting every validation rule (0001, 0003, 0004, 0005), which may be affected by this change. Changing the filter for a participant type to properly include the change. Changing the pier_side rule (0006B), which uses the shipcall and times_terminal. New shipcalls should now be evaluated properly, unless no participant is assigned at all. If the ladder case can occur, the validation rules 0001N+0001O will be added (held back for now).
2023-12-01 09:44:09 +02:00
scopesorting
6f9b4a6b5a
removing verbosity in validation rule functions, and returning 'None', when a selected times dataframe is empty. In case of empty results, the function now properly computes the delta towards a query time and returns YELLOW, when a violation is observed. This should finally fix the bugs for 0001 A-M
2023-12-01 09:43:49 +02:00
scopesorting
9a12d74e77
updating validation rules 0001 A-M. Instead of filtering by times_df (which may not exist), the rules make use of the shipcall_participant_map. When one of the participants in a rule is not assigned, no violation is observed. When there are multiple entries of a participant (due to an input bug), the function still verifies properly. When critical time is observed, and there is not yet an entry for the respective key time, there will be a 'yellow' state.
2023-12-01 09:43:31 +02:00