Commit Graph

317 Commits

Author SHA1 Message Date
jasquat d7fdb618fc return a 400 if a process group cannot be found instead of a 500 2022-07-18 16:23:29 -04:00
burnettk 898b116394 get controller code working 2022-07-10 20:22:16 -04:00
burnettk 65c30fec73 flatten out process instance attributes for use in reports 2022-07-10 12:24:27 -04:00
burnettk 78de9fe2e2 mypy 2022-07-10 01:38:35 -04:00
burnettk 96f770426b add generate_report and tests 2022-07-10 01:24:12 -04:00
burnettk 5047b9aa8b add process_instance_report_list 2022-07-09 13:17:21 -04:00
burnettk 15866e2297 comment out WIP tests and update report naming 2022-07-09 11:11:05 -04:00
jasquat d21e1105d0 added test for deleting process instances with task events w/ burnettk 2022-07-07 15:26:53 -04:00
jasquat ac9c2f7fff attempt to log better with gunicorn w/ burnettk 2022-07-07 14:44:19 -04:00
jasquat 093b96a2f9 added json formatting and turn debug mode off in docker so we can get stack traces to log files w/ burnettk 2022-07-07 12:27:03 -04:00
mike cullerton 82be330983 Flake8 flakiness 2022-07-06 08:37:32 -04:00
mike cullerton 8d9eb7e54e mypy changes 2022-07-06 08:30:45 -04:00
mike cullerton 7e0c06aaa5 Typing 2022-07-05 14:31:37 -04:00
mike cullerton 8480ecb8fb pre-commit with poetry 2022-07-05 14:07:23 -04:00
mike cullerton 9bc304f841 First run of tests for authentication/authorization 2022-07-05 12:13:36 -04:00
mike cullerton 020426f374 fix principal/user_id bug
fix typo in test name
2022-06-30 14:21:07 -04:00
jasquat 4cd9e33b9e precommit is passing w/ burnettk 2022-06-30 12:17:14 -04:00
jasquat e57a64361c started migrating code for updating task form data w/ burnettk 2022-06-30 12:13:14 -04:00
jasquat ab83f4feea precommit is passing w/ burnettk 2022-06-30 11:21:02 -04:00
mike cullerton 481b88f2e6 pre commit with poetry 2022-06-29 15:47:24 -04:00
mike cullerton aeb495f262 Assertions for task_event 2022-06-29 15:43:06 -04:00
mike cullerton 16394c0dd8 run precommit with poetry 2022-06-29 12:41:04 -04:00
mike cullerton 9640ffd422 use fixture to clean up db 2022-06-29 12:19:06 -04:00
mike cullerton 963d60f4e5 Merge branch 'main' into cullerton 2022-06-29 11:51:56 -04:00
jasquat 5fd85eadda delete all data in the databases before every test. we may have to control the order better w/ burnettk 2022-06-29 11:47:17 -04:00
mike cullerton bb230b5447 Merge branch 'main' into cullerton 2022-06-29 11:42:58 -04:00
mike cullerton ceef89ff55 methods, etc for running user tasks
needed for task_events
2022-06-29 11:40:52 -04:00
burnettk d427fd72d4 basic task show 2022-06-28 17:59:12 -04:00
mike cullerton e374813609 Pre commit with poetry 2022-06-27 13:26:00 -04:00
mike cullerton 58b418aad3 Add test for suspend 2022-06-27 13:24:56 -04:00
mike cullerton cfa738f128 run precommit 2022-06-27 12:56:13 -04:00
mike cullerton 59863dfcf1 run mypy with poetry 2022-06-27 12:53:47 -04:00
mike cullerton d21ad20525 run pre commit 2022-06-27 11:15:00 -04:00
mike cullerton 77227c545a Merge branch 'main' into cullerton
# Conflicts:
#	tests/spiffworkflow_backend/integration/test_process_api.py
2022-06-27 11:06:17 -04:00
mike cullerton c95e9bfebb test sending email on exception 2022-06-27 10:37:40 -04:00
jasquat b798ea4e45 precommit is passing w/ burnettk 2022-06-24 17:22:02 -04:00
jasquat 2cbf2a2129 typehints complete w/ burnettk 2022-06-24 17:21:35 -04:00
jasquat ba75d5a9fc tests are passing w/ burnettk 2022-06-24 17:13:50 -04:00
burnettk c4a933ec4c any 2022-06-24 17:09:24 -04:00
jasquat 7682e368c7 finished typehints for process_api_blueprint w/ burnettk 2022-06-24 16:46:30 -04:00
jasquat caf317c545 monkeytype w/ burnettk 2022-06-24 15:29:22 -04:00
jasquat 7f4dc0a380 fixed test w/ burnettk 2022-06-24 15:25:45 -04:00
jasquat 0a3c96b162 precommit w/ burnettk 2022-06-24 15:24:35 -04:00
jasquat 6641b9c6d4 added fixture data helper and some other changes related to acceptance tests w/ burnettk 2022-06-24 15:19:26 -04:00
mike cullerton 9b08c79ad0 Merge branch 'main' into cullerton
# Conflicts:
#	src/spiffworkflow_backend/routes/process_api_blueprint.py
2022-06-24 11:42:29 -04:00
mike cullerton 610f47bb98 run_precommit_with_poetry 2022-06-24 11:20:39 -04:00
mike cullerton f47b53e11e fix python doc_strings 2022-06-24 10:47:40 -04:00
mike cullerton 4c2def9706 Test for error_handler 2022-06-24 10:45:38 -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
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
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
jasquat 016ec34d95 precommit and some cleanup w/ burnettk 2022-06-23 10:30:57 -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 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
jasquat f3111ee836 some more type fixes w/ burnettk 2022-06-22 17:15:15 -04:00
jasquat 388cee7018 some more type fixes w/ burnettk 2022-06-22 16:52:50 -04:00
jasquat f78a2b6997 some mypy fixes w/ burnettk 2022-06-22 11:39:46 -04:00
jasquat 9c9597e226 merged postgres branch into main w/ burnettk 2022-06-21 17:52:10 -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 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 1bc2ca6179 precommit w/ burnettk 2022-06-21 15:17:42 -04:00
jasquat 7bd2a146da monkeytype ftw w/ burnettk 2022-06-21 15:13:02 -04:00
jasquat 5100b40405 precommit is passing w/ burnettk 2022-06-21 14:52:01 -04:00
jasquat 0529e24dd7 precommit is passing w/ burnettk 2022-06-21 13:51:42 -04:00
jasquat 14dfa8ff7e use new updated and created at column names and use integers instead of dates w/ burnettk 2022-06-21 12:45:47 -04:00
jasquat 388edb2df4 added file to load to all models and add event listeners for create and upate w/ burnettk 2022-06-21 12:10:47 -04:00
mike cullerton f06b1c2fc2 pre commit 2022-06-21 10:55:51 -04:00
mike cullerton 8988d3b362 fix doc strings 2022-06-21 10:54:21 -04:00
mike cullerton d73470c051 Merge branch 'main' into cullerton 2022-06-21 10:49:48 -04:00
mike cullerton 4302ef1bf8 test for filtering instances 2022-06-21 10:48:32 -04:00
burnettk c13553ff6d pre-commit 2022-06-21 07:32:02 -04:00
burnettk c2553cd433 oh that instance path 2022-06-21 00:34:40 -04:00
burnettk 4c9f47a32d precommit 2022-06-20 17:17:51 -04:00
burnettk aacb626f3c rm tickets.cvs 2022-06-20 16:51:32 -04:00
jasquat 65da9ccbaa fixed some precommit 2022-06-20 10:56:32 -04:00
jasquat 5cfe999d34 added process group id to all process-models api routes 2022-06-20 10:50:21 -04:00
burnettk a38ef72c26 add process_instance_report api method 2022-06-19 19:19:42 -04:00
burnettk 83586eae91 add ticket import system 2022-06-19 19:02:42 -04:00
jasquat 34248324c0 added sorting to process model w/ burnettk 2022-06-16 16:58:55 -04:00
burnettk 061722f965 update a bunch of packages, mypy issues from 183 to 178 from adding stubs 2022-06-15 22:59:11 -04:00
mike cullerton 928e920f35 run pre-commit 2022-06-14 17:57:02 -04:00
mike cullerton 784de3afb7 fix docstrings 2022-06-14 17:54:35 -04:00
mike cullerton 67403b34a1 test for process model list, with pagination 2022-06-14 17:51:04 -04:00
mike cullerton 9b1b08d61a add pagination object to response for process group list 2022-06-14 16:40:00 -04:00
mike cullerton 781e7faee9 skeleton for test_process_model_list 2022-06-14 13:47:36 -04:00
mike cullerton e634e40aa0 test process group list (with pagination) 2022-06-14 13:46:52 -04:00
mike cullerton 21a8d01afe Make create_process_model reusable in other tests.
Return the response
Move the asserts into test_process_model_add
2022-06-14 13:24:25 -04:00
mike cullerton 20810fd999 Changed ProcessModelService.get_spec to get_process_model 2022-06-14 12:10:01 -04:00
mike cullerton 0afd8e11b5 run pre-commit 2022-06-14 10:00:33 -04:00
mike cullerton 8831f122eb Fix python doc strings 2022-06-14 09:44:36 -04:00
mike cullerton 17d1a6dcbb missing import 2022-06-13 15:44:19 -04:00
mike cullerton 0852e0c049 make sure we don't delete models with existing instances 2022-06-13 15:43:09 -04:00
mike cullerton 2882f12dfd create_process_instance uses the group and model, and returns the instance
moved asserts to test method
2022-06-13 15:42:29 -04:00
jasquat 512ac5f3c1 do not filter files on process model show and added sorting to files w/ burnettk 2022-06-13 14:58:07 -04:00
mike cullerton 7a96a6f756 Remove unused print statements 2022-06-13 09:47:43 -04:00
burnettk f3ef5f6634 pre-commit 2022-06-12 07:39:30 -04:00
burnettk 4f1c513abb hammer run_monkeytype 2022-06-10 18:27:06 -04:00
burnettk 80522c12a6 static analysis 2022-06-10 17:48:36 -04:00
jasquat c94aebacb9 do not allow updating files with blank contents w/ burnettk 2022-06-10 14:08:09 -04:00
mike cullerton a3d76b5e85 pre commit with poetry 2022-06-10 12:51:38 -04:00
mike cullerton 785b7f17ed fix python docstrings 2022-06-10 12:50:29 -04:00
mike cullerton c3697e1a3f cleanup, remove commented code 2022-06-10 12:19:00 -04:00
mike cullerton 771986d0cb process group update 2022-06-10 12:18:37 -04:00
mike cullerton ad5eea56a2 Return 200 and OkTrue on successful delete 2022-06-10 12:17:49 -04:00
mike cullerton b118e74dab run precommit 2022-06-10 10:34:09 -04:00
mike cullerton f351af5561 fix python docstrings 2022-06-10 10:32:45 -04:00
mike cullerton b057eeccd5 process model update 2022-06-10 10:31:27 -04:00
mike cullerton 6313492a70 run pre commit 2022-06-10 08:15:06 -04:00
mike cullerton a0eaee3646 fixed create process instance 2022-06-10 08:11:26 -04:00
mike cullerton 7c82415757 Merge branch 'dev'
# Conflicts:
#	src/spiffworkflow_backend/routes/process_api_blueprint.py
#	tests/spiffworkflow_backend/integration/test_process_api.py
2022-06-09 15:23:45 -04:00
mike cullerton 6aa08e7253 fix process model endpoints to include process group id 2022-06-09 15:04:15 -04:00
burnettk 4829ff1e0e pre-commit, let all tests pass, remove test json 2022-06-08 18:47:38 -04:00
mike cullerton 7fde291c14 add delete endpoints and renaming 2022-06-08 18:20:02 -04:00
mike cullerton 22f45d7b68 Fix some tests due to renaming methods
Add test to delete process_model, process_group
Add helper method to create a process_group
2022-06-08 18:17:46 -04:00
Mike Cullerton c475c98fbc add process-group endpoint 2022-06-08 12:14:39 -04:00
jasquat 726da1007f added api to edit a bpmn file w/ burnettk 2022-06-08 11:08:12 -04:00
jasquat 8e246e46b5 added api to get process instances w/ burnettk 2022-06-07 17:28:48 -04:00
jasquat 053571500f cleaned up api to run process model w/ burnettk 2022-06-07 11:07:38 -04:00
jasquat 60c60e7ea3 fixed a couple apis for the react frontend w/ burnettk 2022-06-06 17:16:25 -04:00
jasquat 49524e6fcd added some additional apis for the frontend 2022-06-06 09:05:14 -04:00
jasquat 4c7b1e201e renamed cat to process group w/ burnettk 2022-06-03 13:45:32 -04:00
jasquat 786754a2a0 return process models back with process group w/ burnettk 2022-06-03 13:40:11 -04:00
jasquat 7b3f3410d7 added api to get a single process group w/ burnettk 2022-06-03 12:18:41 -04:00
jasquat f08992f2e5 added api to get process groups w/ burnettk 2022-06-03 10:56:07 -04:00
jasquat 67a9ce68e7 ran precommit and ignoring html files with prettier since it has a hard time with jinja files w/ burnettk 2022-06-02 10:17:53 -04:00
jasquat d235c64915 updated to use spiffworkflow-backend naming w/ burnettk 2022-06-01 11:17:25 -04:00
jasquat 980eff6d23 saving bpmn diagrams work again w/ burnettk 2022-06-01 11:10:00 -04:00
jasquat 2c4f2adeeb some auto linting fixes w/ burnettk 2022-05-31 14:10:00 -04:00
Dan 4c0c58c8e9 a little test cleanup, removing study, getting the previously submitted data, but "next_task" is still none. 2022-05-27 10:58:37 -04:00
jasquat 485ccf5e7b wip: almost can create an instance w/ burnettk 2022-05-26 17:29:54 -04:00
jasquat bb530d1744 wip: attempting to create process instance w/ burnettk 2022-05-26 16:20:30 -04:00
jasquat eb08e08ddd wip: attempting to create process instance w/ burnettk 2022-05-26 14:17:05 -04:00
jasquat 86938792fd added test to create a spec file w/ burnettk 2022-05-25 16:38:03 -04:00
jasquat eb082fe01c added test and code to add a process model w/ burnettk 2022-05-25 15:17:30 -04:00
jasquat 1993dc1bd6 wip for process deploy and fixed code coverage for test_data w/ burnettk 2022-05-25 10:19:35 -04:00
burnettk b7d83e101c unhardcode 2022-05-24 16:03:08 -04:00
burnettk aa232fe292 update tests lint 2022-05-23 19:14:52 -04:00
jasquat 1712182a1e added a permission unit test w/ burnettk 2022-05-23 17:23:13 -04:00
jasquat e3d90a6044 added process models and cleaned up some of the code w/ burnettk 2022-05-23 16:36:23 -04:00
burnettk d4655e4ac4 remove assertion that did not work 2022-05-20 18:11:32 -04:00
burnettk aa9f252e4a maybe it works to update the variable in the foor loop 2022-05-20 18:01:01 -04:00
jasquat 66d16ae409 added configs w/ burnettk 2022-05-19 14:38:47 -04:00
jasquat 2f918f5418 mypy should be passing now 2022-05-18 17:07:35 -04:00
jasquat 74ca1b4201 added tests for api blueprint and annotations w/ burnettk 2022-05-18 12:18:47 -04:00
jasquat 0acef91a88 added remaining init files w/ burnettk 2022-05-18 11:18:14 -04:00
jasquat bdee9ff583 added some annotations using monkeytype w/ burnettk 2022-05-18 10:49:20 -04:00
jasquat 715395335f pre-commit is passing w/ burnettk 2022-05-18 10:21:44 -04:00
jasquat a97605b08b add full acceptance test for adding users and groups w/ burnettk 2022-05-18 10:17:10 -04:00
jasquat 4e6eb974da pre-commit is passing w/ burnettk 2022-05-17 16:47:55 -04:00
jasquat 3c8ded606e extended the api to create users and groups, added some tests, and added some helpful commands w/ burnettk 2022-05-17 16:35:38 -04:00
jasquat 116145e91f initial commit w/ burnettk 2022-05-13 13:42:42 -04:00