Commit Graph

311 Commits

Author SHA1 Message Date
mike cullerton 4c2def9706 Test for error_handler 2022-06-24 10:45:38 -04:00
mike cullerton 0fe6bce578 On unhandled exceptions, set instance.status and raise an ApiError
Still need to finish the notification piece
2022-06-24 10:45:16 -04:00
burnettk 4fd629d427 pre-commit 2022-06-23 23:29:48 -04:00
burnettk 44117a41b8 get rid of the 150 or so easiest type hint errors ever 2022-06-23 23:29:00 -04:00
burnettk 49b59136a4 3 mypy files 2022-06-23 22:59:48 -04:00
mike cullerton aaddf2d871 run_precommit_with_poetry 2022-06-23 17:14:46 -04:00
mike cullerton 4273b67c4f fix_python_docstrings 2022-06-23 17:10:59 -04:00
mike cullerton 26f630c63c a little more with the handler 2022-06-23 16:44:06 -04:00
mike cullerton 7d019ea998 Change `notification_email_on_exception` to `exception_notification_addresses` 2022-06-23 16:43:46 -04:00
jasquat cc7e920df7 added ability to create fixture data for e2e acceptance tests w/ burnettk 2022-06-23 16:35:02 -04:00
jasquat f832ff4b39 precommit w/ burnettk 2022-06-23 15:29:11 -04:00
jasquat a9d40937a2 added status endpoint for checking if webserver is running w/ burnettk 2022-06-23 15:27:53 -04:00
mike cullerton cc43ec5510 Change process_instance.status column to string
Add `faulted` and `suspended` to ProcessInstanceStatus
Fix services and models to match this change
2022-06-23 15:21:54 -04:00
jasquat 0f1ed7a662 allow overriding docker-compose configs with env vars w/ burnettk 2022-06-23 14:53:13 -04:00
mike cullerton 792e6eaedc Add test for process_instance_run
Fix asserts for tests that used process_instance_create
2022-06-23 11:56:30 -04:00
mike cullerton 5974640e01 Separate process_instance_create into process_instance_create and process_instance_run
Add get_process_instance
Add ProcessInstanceModelSchema
2022-06-23 11:55:46 -04:00
jasquat 016ec34d95 precommit and some cleanup w/ burnettk 2022-06-23 10:30:57 -04:00
jasquat 0ce9e86172 updated mypy to newest w/ burnettk 2022-06-23 10:11:09 -04:00
mike cullerton 8bbf15ed29 remove `app` from test method calls. It isn't used anywhere 2022-06-23 09:58:22 -04:00
mike cullerton 79af7efb26 Merge branch 'main' into cullerton 2022-06-23 08:26:18 -04:00
mike cullerton 775808b8dc stub for test_process_instance_run 2022-06-23 08:22:52 -04:00
mike cullerton c107482bbc new endpoint to run a process instance
stub for its new method
2022-06-23 08:08:00 -04:00
mike cullerton a1798cc1ea assertions for test_process_model_file_create 2022-06-23 07:58:31 -04:00
burnettk 97bbf1ba45 rename exception to match conventions 2022-06-22 21:59:01 -04:00
burnettk 51109d26d7 type hints, raise exception when thing not found in model 2022-06-22 21:46:40 -04:00
burnettk f43c02c258 fixed a few type issues 2022-06-22 17:37:31 -04:00
jasquat f3111ee836 some more type fixes w/ burnettk 2022-06-22 17:15:15 -04:00
jasquat 6c99b226e7 updated flask-bpmn w/ burnettk 2022-06-22 16:54:05 -04:00
jasquat 388cee7018 some more type fixes w/ burnettk 2022-06-22 16:52:50 -04:00
jasquat 2a43b5ae91 some updates for types w/ burnettk 2022-06-22 15:08:01 -04:00
jasquat f78a2b6997 some mypy fixes w/ burnettk 2022-06-22 11:39:46 -04:00
mike cullerton 1b84ef94ea after removing virtual env, and running poetry install 2022-06-22 09:32:42 -04:00
burnettk ed3dfc26e2 how about postgres 2022-06-21 22:56:42 -04:00
burnettk 35430e35a1 add stubs to try to get mypy plugin sqlmypy 2022-06-21 22:43:37 -04:00
burnettk ca04f6b902 drop support for python 3.8 2022-06-21 22:38:38 -04:00
burnettk a0b363e746 drop support for python 3.8 2022-06-21 22:34:27 -04:00
jasquat 9c9597e226 merged postgres branch into main w/ burnettk 2022-06-21 17:52:10 -04:00
jasquat 091f57e70a monkeytype w/ burnettk 2022-06-21 17:44:40 -04:00
jasquat e3770c5ba8 precommit somewhat works w/ burnettk 2022-06-21 17:41:48 -04:00
jasquat 8eef5f5c36 merged main into branch and resolved conflicts w/ burnettk 2022-06-21 17:40:17 -04:00
jasquat f41490b88e fixed some more types w/ burnettk 2022-06-21 17:28:59 -04:00
mike cullerton c1b5c1ea8c pre commit 2022-06-21 17:26:58 -04:00
mike cullerton a822a10405 fix doc_strings 2022-06-21 17:23:00 -04:00
mike cullerton 949632d08d allow load_spec to accept a process_model_id 2022-06-21 17:08:36 -04:00
mike cullerton 28651de2f9 BPMN file that generates a Python error 2022-06-21 17:08:01 -04:00
mike cullerton f25bd0af3f call handler on exceptions 2022-06-21 17:07:36 -04:00
mike cullerton 624aabb91d stub out error handling service 2022-06-21 17:07:16 -04:00
mike cullerton 8fd2034671 add fault_or_suspend_on_exception and notification_email_on_exception to process_model
add NotificationType
2022-06-21 17:06:44 -04:00
mike cullerton 9225931b60 Add skeletons for test_error_handler, and test_process_model_file_create
add fault_or_suspend_on_exception and notification_email_on_exception to create_process_model
allow create_spec to accept file parameters
2022-06-21 17:05:49 -04:00
jasquat 0c52a516a7 some more type fixes w/ burnettk 2022-06-21 16:50:13 -04:00