Commit Graph

  • e914b19aac adding input validation for time intervals Max Metz 2024-09-03 13:07:45 +0200
  • 4b5ff90b34 properly serializing ValidationError exceptions. Max Metz 2024-09-03 11:23:28 +0200
  • 759532733c
    Merge pull request #42 from puls200/hotfix/20240903_json_responses puls200 2024-09-04 08:30:12 +0200
  • 6cfd311bbb Version bump to 1.6 Daniel Schick 2024-09-04 08:09:13 +0200
  • 8b4c9e2590 Extending the role editor pt.2 Daniel Schick 2024-09-04 08:09:00 +0200
  • ff060edcfa properly serializing ValidationError exceptions. Max Metz 2024-09-03 11:23:28 +0200
  • de7a9a05f2 Extending the role editor pt. 1 Daniel Schick 2024-09-03 10:03:36 +0200
  • bbc705cf63 Database changes complete Daniel Schick 2024-09-03 08:54:34 +0200
  • 983c21ba67 don't crash on badly formatted error messages Daniel Schick 2024-09-02 08:48:40 +0200
  • 9b038b3571 Database extension, first step Daniel Schick 2024-09-01 11:33:01 +0200
  • ed7c4fbfbb Created test version including version bump to 1.5.0 v1.5.0.0_test Daniel Schick 2024-08-30 11:27:10 +0200
  • 1f854b6cde Merge branch 'feature/improve_error_display' into develop Daniel Schick 2024-08-29 09:21:52 +0200
  • 78ab83628b Version bump to 1.4.1 (due to API change) v1.4.1.0_devel Daniel Schick 2024-08-29 09:01:21 +0200
  • 38ed66a638 Updated YAML File to match API rule for readOnly properties Daniel Schick 2024-08-29 08:58:28 +0200
  • e890985e2d
    Merge pull request #41 from puls200/hotfix/20240827 puls200 2024-08-29 07:34:24 +0200
  • 2ac2bc196c potentially resolving the 'Unknown column ... in 'field list' issue Max Metz 2024-08-28 18:44:45 +0200
  • 99052efd07 Fixed shipcall POST documentation for canceled field Daniel Schick 2024-08-28 17:39:19 +0200
  • b154f73ce9 Convenience: If creating a new ship fails, the ship is shown again when the dialog is re-opened Daniel Schick 2024-08-28 17:35:58 +0200
  • 65779731fd Show the content of the message info from the failure exception Daniel Schick 2024-08-28 17:04:04 +0200
  • fc96f5d856
    Merge pull request #40 from puls200/hotfix/20240827 puls200 2024-08-28 14:55:32 +0200
  • a51b830cf6 removed the 'canceled may not be set on post'-issue. Max Metz 2024-08-28 13:06:36 +0200
  • 231c9f86c4
    Merge pull request #39 from puls200/hotfix/20240827 puls200 2024-08-28 10:24:21 +0200
  • 1be7d68f5c participant flag also resolved Max Metz 2024-08-27 21:16:49 +0200
  • cc2a54c1c6 added extensive logging for an open, unresolved issue. The issue-log may make clear, where the issue originates Max Metz 2024-08-27 21:14:30 +0200
  • e1d9570268 solving the concatenation issue of a list and a None-type. Max Metz 2024-08-27 20:52:10 +0200
  • 8082100b7e using the @classmethod _missing_ function in an IntFlag creates an incorrect resolution of intflags. 127 was resolved as 0 due to the _missing_ function. Without that method, 127 becomes a proper multi-flag Max Metz 2024-08-27 20:33:33 +0200
  • 6eab98d2a1 correcting the issue with participant_id authorization (BSMD or AGENCY check). Max Metz 2024-08-27 19:23:37 +0200
  • f58665f761
    Merge pull request #38 from puls200/hotfix/api_input_validation_20240812 puls200 2024-08-15 08:47:06 +0200
  • fcc03b2ade adaptation of traffic validation (resolving open issue) Max Metz 2024-08-14 19:09:35 +0200
  • c4e5764601 /ships GET no longer blocks deleted ships from being returned. Max Metz 2024-08-14 15:53:37 +0200
  • b60874cbb0 shipcall, ship, times and user verify the validity of JSON data when receiving POST/PUT requests. Max Metz 2024-08-14 15:49:28 +0200
  • e488501837 debugging the missing column '.PORT_ADMINISTRATION' issue Max Metz 2024-08-14 14:58:03 +0200
  • 4f3686e00f marshmallow.fields incorrectly resolved the 'required' field. Adapted each field to ensure that missing data properly raises an error. Max Metz 2024-08-14 13:59:26 +0200
  • cb0717fc82
    Merge pull request #37 from puls200/hotfix/api_input_validation_20240812 puls200 2024-08-13 08:28:19 +0200
  • cdf6e7d99b Reverted change to only return not deleted ships Daniel Schick 2024-08-13 08:27:05 +0200
  • 0e8faf499d GET ships no longer returns deleted ships Max Metz 2024-08-12 20:35:37 +0200
  • 22009eb469 resolving an issue where missing values for 'flags' in the Shipcall would cause rule-violations Max Metz 2024-08-12 19:56:26 +0200
  • e526337c6a added a reference check to PUT-requests (shipcall), so each provided ID must exist. Corrected some input validation functions to solve known bugs Max Metz 2024-08-12 19:43:19 +0200
  • 7e6252880d
    Merge pull request #36 from puls200/hotfix/20240806_api_validation puls200 2024-08-06 21:54:42 +0200
  • d54fed9160 corrected open issues of the API validation functions. Made some validation errors more verbose, improved robustness, refactored some of the methods and adapted many unit tests to the novel format. Max Metz 2024-08-06 20:46:40 +0200
  • 18719f15c1
    Merge pull request #35 from puls200/hotfix/api_input_validation_20240801 puls200 2024-08-01 21:25:28 +0200
  • 3ce2fc829d correcting a validation issue for 'voyage' Max Metz 2024-08-01 18:34:56 +0200
  • 79ebf474fd
    Merge ea028f6d73 into be6c898415 scopesorting 2024-08-01 18:19:23 +0200
  • ea028f6d73 resolving conflicts after rebasing. This simply originated from the remote branch of the PR converging from the develop branch. feature/notifier_squashed Max Metz 2024-08-01 18:21:21 +0200
  • 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. Max Metz 2024-07-31 19:01:17 +0200
  • 8060b0ee30 building out and preparing the EmailHandler's adaptive content. Using HTML formatting. Max Metz 2024-07-30 11:41:46 +0200
  • 979804f8cc removed a comment. Notification types in the User's schema will remain booleans (email, whatsapp, signal, popup). Daniel clarified that some time ago. Max Metz 2024-06-10 09:03:35 +0200
  • 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. Max Metz 2024-06-10 08:09:51 +0200
  • be6c898415
    Merge pull request #30 from puls200/feature/api_input_validation puls200 2024-08-01 14:27:42 +0200
  • 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. Max Metz 2024-07-31 19:01:17 +0200
  • 63040c7f21 building out and preparing the EmailHandler's adaptive content. Using HTML formatting. Max Metz 2024-07-30 11:41:46 +0200
  • ad1e0249d7 removed a comment. Notification types in the User's schema will remain booleans (email, whatsapp, signal, popup). Daniel clarified that some time ago. Max Metz 2024-06-10 09:03:35 +0200
  • 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. Max Metz 2024-06-10 08:09:51 +0200
  • 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. Max Metz 2024-06-10 07:27:58 +0200
  • ed7d04b584 Merge branch 'feature/notifier' of github.com:puls200/brecal into feature/notifier feature/notifier Max Metz 2024-07-31 18:59:07 +0200
  • 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. Max Metz 2024-07-31 18:58:39 +0200
  • b9df88b34a refactoring: provided a more understandable variant of the notifier. Will create a BPMN-diagram to depict the process soon. Max Metz 2024-07-31 18:37:51 +0200
  • 267b53aa91 resolving conflicts between the PR (remote version of feature/notifier) and feature/notifier. Max Metz 2024-07-31 17:05:08 +0200
  • 982420dd34 properly integrating validation rules 0005A and 0005B, which consider the amount of similar shipcall times (eta&etd) Max Metz 2024-07-31 16:59:30 +0200
  • be14e3ee1a including evaluation_times and evaluation_notifications_sent Max Metz 2024-07-31 16:38:05 +0200
  • 2485a894a1 again, overwriting the previous email assignment. Unless the testing phase is completed, no mails shall be sent to users except for the test-mail of bsmd Max Metz 2024-07-31 15:32:48 +0200
  • e2c532bd64 instead of overwriting the recipient's addresses, the bsmd address will simply (always) be added to the list of recipients. Max Metz 2024-07-31 15:30:06 +0200
  • 1f4dd21f3c 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. Max Metz 2024-07-31 15:18:47 +0200
  • 4848df4d7e the evaluation function (traffic-light validation) additionally performs the notification function to generate notifications. Integrated within the scheduler. Max Metz 2024-07-31 14:13:41 +0200
  • 431608cd62 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. Max Metz 2024-07-31 12:30:37 +0200
  • 9709b06196 creating only one notification per notification_type, even if multiple users request the same notification_type. Max Metz 2024-07-31 12:05:48 +0200
  • bc6d391094 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. Max Metz 2024-07-31 11:49:44 +0200
  • 9efabf6367 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. Max Metz 2024-07-31 09:04:35 +0200
  • 2ea37bde56 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. Max Metz 2024-07-31 08:35:40 +0200
  • 4b7a098286 included the Notifier in the routine. Will be executed every 15 minutes for notifications, which are at least 10 minutes old. Max Metz 2024-07-31 08:28:44 +0200
  • 8cd6afbb69 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. Max Metz 2024-07-30 17:43:17 +0200
  • f344588f89 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. Max Metz 2024-07-30 17:20:51 +0200
  • 7c546f5ab7 building out and preparing the EmailHandler's adaptive content. Using HTML formatting. Max Metz 2024-07-30 11:41:46 +0200
  • 84a93646d9 removed a comment. Notification types in the User's schema will remain booleans (email, whatsapp, signal, popup). Daniel clarified that some time ago. Max Metz 2024-06-10 09:03:35 +0200
  • ab0b69f337 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. Max Metz 2024-06-10 08:09:51 +0200
  • e10e9ef88b 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. Max Metz 2024-06-10 07:27:58 +0200
  • 32692ea93a adding evaluation_time to the evaluate_shipcall_state function (traffic light validation). This was previously not implemented. feature/evaluation_times Max Metz 2024-07-31 15:55:35 +0200
  • 29b611c780 instead of overwriting the recipient's addresses, the bsmd address will simply (always) be added to the list of recipients. Max Metz 2024-07-31 15:30:06 +0200
  • 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. Max Metz 2024-07-31 15:18:47 +0200
  • 5769889fea resolving the validation issue in shipcalls, which was caused by a faulty fields type in the ShipcallSchema. Max Metz 2024-07-31 14:59:59 +0200
  • 0de0baf1d4 the evaluation function (traffic-light validation) additionally performs the notification function to generate notifications. Integrated within the scheduler. Max Metz 2024-07-31 14:13:41 +0200
  • 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. Max Metz 2024-07-31 12:30:37 +0200
  • 0de47e2627 creating only one notification per notification_type, even if multiple users request the same notification_type. Max Metz 2024-07-31 12:05:48 +0200
  • 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. Max Metz 2024-07-31 11:49:44 +0200
  • e59f371525 getlatest returns ships & shipcalls. 'Times' has been removed as a simplification. feature/get_latest Max Metz 2024-07-31 09:58:15 +0200
  • 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. Max Metz 2024-07-31 09:04:35 +0200
  • 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. Max Metz 2024-07-31 08:35:40 +0200
  • 3d1391ed45 included the Notifier in the routine. Will be executed every 15 minutes for notifications, which are at least 10 minutes old. Max Metz 2024-07-31 08:28:44 +0200
  • 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. Max Metz 2024-07-30 17:43:17 +0200
  • 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. Max Metz 2024-07-30 17:20:51 +0200
  • cea615fe63 building out and preparing the EmailHandler's adaptive content. Using HTML formatting. Max Metz 2024-07-30 11:41:46 +0200
  • b5eb394978 local db file adaptation Max Metz 2024-07-30 08:35:14 +0200
  • 030e2d2c5e Merge branch 'release/1.4.0' Daniel Schick 2024-07-25 13:06:37 +0200
  • cc724bdb30 Updated validation rule documentation Daniel Schick 2024-07-25 11:13:51 +0200
  • 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. Max Metz 2024-06-10 14:45:36 +0200
  • 83520a2bc7 Fixed small issues for ships endpoint validation Daniel Schick 2024-07-09 09:04:05 +0200
  • 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. Max Metz 2024-06-10 07:27:58 +0200
  • e33833235d Bugfix for comparer when times value is null and DateTime.Now is inconsistent Daniel Schick 2024-07-25 09:38:10 +0200
  • ec75d2c0a8 Updated settings for production version v1.4.0.0_prod release/1.4.0 Daniel Schick 2024-07-25 09:59:49 +0200
  • 1c478d3515 Bugfix for comparer when times value is null and DateTime.Now is inconsistent v1.4.0.0_test Daniel Schick 2024-07-25 09:38:10 +0200