Commit Graph

481 Commits

Author SHA1 Message Date
Max Metz
ea028f6d73 resolving conflicts after rebasing. This simply originated from the remote branch of the PR converging from the develop branch. 2024-08-01 18:21:21 +02:00
Max Metz
40e7a4b3af 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-08-01 18:15:11 +02:00
Max Metz
8060b0ee30 building out and preparing the EmailHandler's adaptive content. Using HTML formatting. 2024-08-01 18:15:11 +02:00
Max Metz
979804f8cc removed a comment. Notification types in the User's schema will remain booleans (email, whatsapp, signal, popup). Daniel clarified that some time ago. 2024-08-01 18:15:11 +02:00
Max Metz
36b6173b36 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-08-01 18:15:11 +02:00
be6c898415
Merge pull request #30 from puls200/feature/api_input_validation
API Input-Validierung
2024-08-01 14:27:42 +02:00
Max Metz
e1a623ab41 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 19:01:52 +02:00
Max Metz
63040c7f21 building out and preparing the EmailHandler's adaptive content. Using HTML formatting. 2024-07-31 19:01:52 +02:00
Max Metz
ad1e0249d7 removed a comment. Notification types in the User's schema will remain booleans (email, whatsapp, signal, popup). Daniel clarified that some time ago. 2024-07-31 19:01:52 +02:00
Max Metz
09f6f247a1 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-07-31 19:01:52 +02:00
Max Metz
0a17d9b220 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-31 19:01:52 +02:00
Max Metz
5769889fea resolving the validation issue in shipcalls, which was caused by a faulty fields type in the ShipcallSchema. 2024-07-31 14:59:59 +02:00
cc724bdb30 Updated validation rule documentation 2024-07-25 11:13:51 +02:00
Max Metz
cd8c246d72 adapting times POST, PUT, DELETE to properly include the special case, where a BSMD user should also be allowed to handle times entries of an AGENCY, if the agency has the flag set. 2024-07-25 10:42:44 +02:00
83520a2bc7 Fixed small issues for ships endpoint validation 2024-07-25 10:42:44 +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
e33833235d Bugfix for comparer when times value is null and DateTime.Now is inconsistent 2024-07-25 10:41:22 +02:00
d4903b80d4 Updated postman collection 2024-07-25 08:14:36 +02:00
d7de35236c Version bump to 1.4 2024-07-22 10:40:08 +02:00
14569ad7bc Reset values button on times and times terminal dialog boxes to completely undo entries.
Also fixed bug where clear context menu was disabled and wouldn't disappear
2024-07-22 08:51:20 +02:00
9bf84f8baa remove required fields for Times and Times Terminal 2024-07-22 08:22:09 +02:00
31c54f9d8f ETD is always enabled if user is bsmd group (was typo? can't recall) 2024-07-22 07:06:41 +02:00
ad16ae4945 Bugfix: ATA/ATD values do not get changed when already displayed 2024-07-18 07:22:25 +02:00
1a5591cc39 even more small fixes 2024-07-14 15:12:49 +02:00
e30309bca2 fixed more small things and version bump to 1.3.0.3 2024-07-13 19:18:41 +02:00
64977d5819 Small-time fixes to things previously changed and version bump to 1.3.0.2 2024-07-12 16:29:32 +02:00
9d017524ef Added shifting sequence number, storage hidden in flags. This is a prototype. 2024-07-12 09:32:09 +02:00
24138fc1e9 Fixed an error regarding berth display in AGENT/TERMINAL and set to+from berth info for shifting shipcalls 2024-07-11 11:39:12 +02:00
ec0eb3cbfa Switched visibility and position of ETA/ETD in shipcall dialog depending on type 2024-07-11 08:08:33 +02:00
e03c8dc7df User-Filter Settings now on a per-user basis, saved as a dictionary in user space.
This is for the case of people using the same windows account but with several different BC users.
2024-07-10 10:35:40 +02:00
ac8b6ba491 Hide some controls depending on arrival/departure 2024-07-10 09:28:36 +02:00
e3000e1f16 Removed ETA from times dialog if shifting shipcall 2024-07-10 09:05:45 +02:00
208d74f9e3 When creating a new shipcall 'Geeste' is the default time ref point 2024-07-09 11:54:15 +02:00
39020fc5d3 Bugfix: Changed lock times not showing immediately 2024-07-09 10:01:36 +02:00
8f40b82c5d Ship list WIP 2024-07-09 08:10:01 +02:00
b26fff7e17 added product code info for vsproj file 2024-07-02 10:05:45 +02:00
c8c60c0f9b Only user Interval end if interval start is also unset (as suggestion in terminal control) 2024-07-01 13:25:54 +02:00
6f1346c430 Fixed 4 digit time entry 2024-07-01 13:25:16 +02:00
ac21a2fa45 Changed interval date formatting so intervals spanning multiple days show ok 2024-07-01 13:24:05 +02:00
fe46b9b94e Filter shipcalls that have ata set and ata is more than 2 hours in the past 2024-07-01 13:22:29 +02:00
b275320d54 For the interval, the end date is also set in the control 2024-07-01 13:22:17 +02:00
570a227b78 Simplified input text filtering:
If user enters 10 digits, then these are split up for the date
2024-07-01 13:22:04 +02:00
bb956d4792 include last minute for day filter 2024-07-01 13:21:49 +02:00
71a8b44532 fixed bug in search filter where time component wasnt cut of (as expected) 2024-07-01 13:21:28 +02:00
36e853fcda Enter Agency Time as highlighted suggestion for other participants (not terminal) 2024-07-01 13:21:09 +02:00
bc6a9e95ea Removed compiler message 2024-06-24 15:27:09 +02:00
a5753727a7 Added button for automatically selecting the next 24 hours, meaning filling the ETA from/to fields
automatically and triggering the search
2024-06-24 15:21:37 +02:00
69b9e8bcfe Added derived DateTimePicker to use custom keyboard parsing (numbers only) 2024-06-24 14:37:10 +02:00
090fa6cfda Removed some hardcoded text and renamed Lotsen to Flusslotsen 2024-06-24 07:23:34 +02:00
eb62097278 Improved Text input for datetime picker Control 2024-06-23 15:31:55 +02:00