Commit Graph

434 Commits

Author SHA1 Message Date
Max Metz
d8d75afc6b Created an HTML-based Email notification template, which is adaptive to error messages. It includes a logo file from the local repository (logo_bremen_calling.png). Refactoring methods and clearing old methods. Created a one-line function to connect to the Email server. Included the Notifier's sending method in the routine will be executed every 15 minutes and includes those shipcalls, which have been evaluated at least 10 minutes ago. Located the logo file and email template in a resources/ folder within the library. Manually overwriting the Emailaddress of all notification recipients, so the BSMD mail is used throughout testing. 2024-07-31 18:58:39 +02:00
Max Metz
cea615fe63 building out and preparing the EmailHandler's adaptive content. Using HTML formatting. 2024-07-30 11:41:46 +02:00
Max Metz
5ae2d74745 removed a comment. Notification types in the User's schema will remain booleans (email, whatsapp, signal, popup). Daniel clarified that some time ago. 2024-06-10 09:03:35 +02:00
Max Metz
d682cb3d26 Created Notifier object, which provides the logic to create notifications and issue them to the respective users, depending on the type of notification they have selected. Building the skeleton, where the methods will be filled functionally soon. Adapted the History-schema. 2024-06-10 08:09:51 +02:00
Max Metz
0d227a02c7 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-06-10 07:27:58 +02:00
50e9261267 avoid thread termination by catching exception thrown on failed times GET 2024-05-15 09:48:45 +02:00
97d4fa9faf Bugfix for update deadlock and increased version to 1.2.1.1 2024-05-15 09:48:22 +02:00
c5df95625d reduced retry to single request and reset the error text line 2024-05-13 19:31:59 +02:00
6973ec64fe Fixed wrong Uri reference for devel version 2024-05-13 19:29:47 +02:00
d4fe104984 Added log4net settings to App.config 2024-05-13 19:25:54 +02:00
1bb4cc5225 Increased version to 1.3 2024-05-06 13:45:05 +02:00
ecddc43633 Bugfix mixup enabled/readonly 2024-05-05 11:18:50 +02:00
8698d3a1f5 increased 1 hour comparison by 60 seconds to avoid seconds deviation 2024-05-05 11:18:35 +02:00
f07cadef80 fixed another SQL typo 2024-05-05 11:18:13 +02:00
f7604b055e fixed schedule sql 2024-05-05 11:17:58 +02:00
76bf4f01bd Maximum threshold should still be allowed (e.g. 1 hour) 2024-05-05 11:17:36 +02:00
3b01dbb7aa set schedule logging to INFO and using correct query for schedule test calls 2024-05-02 09:44:00 +02:00
707ffd0d59 Fix for traffic light status 2024-05-02 09:43:35 +02:00
45db6daffe
Merge pull request #29 from puls200/bugfix/fix_20240429
fixing: generator didn't stop after throw()
2024-04-30 06:58:49 +02:00
Max Metz
105718e2a6 fixing: generator didn't stop after throw() 2024-04-29 16:51:41 +02:00
01753540fe
Merge pull request #28 from puls200/bugfix/fix_20240429
adapting validation rules for version 1.2. Rules 0002: the time-diffe…
2024-04-29 13:43:46 +02:00
Max Metz
7f50624d23 adapting validation rules for version 1.2. Rules 0002: the time-difference threshold for 'disagreement' is expanded to 1 hour. There is now element-wise comparison of elements to circumvent instabilities from rounding pd.Timestamp objects. Rules 0001 L&M and 0003: created a feature flag, which skips the evaluation of Terminal times altogether. For version 1.2, this feature flag is enabled. 2024-04-29 12:59:14 +02:00
0fb425d970 Updated with comment from Basti to (temporarily) deaktivate rules for the terminal 2024-04-29 09:59:28 +02:00
7723a595ee Calling dialog for outgoing shipcall async to show incoming call asap 2024-04-25 10:36:43 +02:00
3569360600 Optics adjustment: Scrollbar width, text cutoff with ... and set textareas to readonly but enabled for better viewing 2024-04-25 10:36:29 +02:00
4766584512 Fixed bug where app was accidentally switched to en-us locale by old ENI code 2024-04-25 10:36:13 +02:00
dba5cb3523 added latest rules from current excel document 2024-04-25 09:38:06 +02:00
140f335704 Neue Release Notes 2024-04-25 09:08:27 +02:00
3ec97ccb2c Update Ampelfunktion.md
Neue Beschreibung ergänzt
2024-04-25 09:08:27 +02:00
130f9ff5d4 Update Ampelfunktion.md
Überschriften ergänzt
2024-04-25 09:08:26 +02:00
776efd0399 First draft of traffic light rules converted from Excel to markdown 2024-04-25 09:08:26 +02:00
ef017eee61 Make lock time editable only for port authority and show it in the overview grid 2024-04-23 17:40:21 +02:00
2e3a957947 Added history filter for own shipcalls only, added wait cursor for longer reloading ops 2024-04-23 17:40:05 +02:00
916cbde312 Removed seconds from ATA/ATD display 2024-04-23 17:39:53 +02:00
d54140e397 Fixed a bug where complete shiplist was selectable instead of only non-deleted ships after closing the shiplist editor 2024-04-23 17:39:40 +02:00
82c9b14f73 localized the shipcall type combobox selection 2024-04-23 17:39:25 +02:00
8c7169d291 Fixed bug where ship was not initially shown in overview 2024-04-23 17:39:05 +02:00
378e568124 pimped up the optics of a shipcall cell (a bit) 2024-04-23 17:38:49 +02:00
bac4354ea0 Resized agent controls to not cut off a label 2024-04-23 17:38:35 +02:00
bedf68c4d5 Avoid crash if delete is tried on deleted object 2024-04-23 17:38:13 +02:00
75585153d4 Added a manual refresh button because.. well.. they asked for it 2024-04-13 16:00:56 +02:00
15eb7615a6 Bugfix for creating new shipcalls 2024-04-13 16:00:42 +02:00
f1e392591e Remove old shipcalls if time filter ETA FROM is cleared again 2024-04-13 16:00:27 +02:00
e38a12ee50 Only allow non deleted ships to be selected and safeguard the create ship dialog 2024-04-13 16:00:10 +02:00
921062e38b fix for ship logical delete server-side 2024-04-13 15:59:51 +02:00
8e8f9d6d3e
Merge pull request #26 from puls200/feature/api_validation_rules
Feature/api validation rules
2024-04-10 15:22:27 +02:00
060d131cea Clarified date/time format strings 2024-04-10 15:18:53 +02:00
4e34a536c7 added required fields 2024-04-10 15:18:53 +02:00
6bc57cf31d added missing change 2024-04-10 15:18:53 +02:00
01eb7999f8 Created first draft 2024-04-10 15:18:53 +02:00