Commit Graph

444 Commits

Author SHA1 Message Date
Max Metz
29b611c780 instead of overwriting the recipient's addresses, the bsmd address will simply (always) be added to the list of recipients. 2024-07-31 15:30:06 +02:00
Max Metz
0d13ffd626 manually overwritting the email address of all recipients of an Email notification with the proxy-mail 'bremencalling@bsmd.de'. This is useful to test the feature before enabling it to the live-system. 2024-07-31 15:18:47 +02:00
Max Metz
0de0baf1d4 the evaluation function (traffic-light validation) additionally performs the notification function to generate notifications. Integrated within the scheduler. 2024-07-31 14:13:41 +02:00
Max Metz
b078386520 refactored the account-data of the Email-server, so it can be easily adapted later on. Decoupled into a novel file notifications/accounts.py with some simple unit tests. 2024-07-31 12:30:37 +02:00
Max Metz
0de47e2627 creating only one notification per notification_type, even if multiple users request the same notification_type. 2024-07-31 12:05:48 +02:00
Max Metz
fae07bdadf relocating logo_bremen_calling.png and default_email_template to a novel folder in the library: resources. Adapted the dynamic path functions in the library. Created tests, which assert, when the files are missing. Relocating functions from stubs/email_template.py to the email_handling.py to avoid confusion. 2024-07-31 11:49:44 +02:00
Max Metz
19b4f34fee found the bremen_calling_logo.png file within the client's resources. Mapping towards that file when creating email notifications. This alleviates an additional dependency. 2024-07-31 09:04:35 +02:00
Max Metz
40393fd476 adding the Notifier to schedule routines with an execution routine of 15 minutes. Notifications must be at least 10 minutes old and still relevant to be sent. 2024-07-31 08:35:40 +02:00
Max Metz
3d1391ed45 included the Notifier in the routine. Will be executed every 15 minutes for notifications, which are at least 10 minutes old. 2024-07-31 08:28:44 +02:00
Max Metz
1bdfa8997f clearing older methods of the Notifier class. There is now a one-line function, which connects to the Email-server, populates candidates for notifications, creates those notifications one-by-one and sends them. Finally, the database is updated, so a notification is sent only once. 2024-07-30 17:43:17 +02:00
Max Metz
9cef84a5a8 creating an HTML Email template for notifications, which includes a logo file (#TODO: store logo within BreCal git). Built out most of the Notifier. Provided suitable SQLQueries and updated the EmailHandler. 2024-07-30 17:20:51 +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