From 54f795da7be6e4b5494eefcfff30627f57fa9680 Mon Sep 17 00:00:00 2001 From: jasquat Date: Fri, 27 Jan 2023 12:51:19 -0500 Subject: [PATCH 1/3] some initial updates w/ burnettk --- spiffworkflow-backend/poetry.lock | 6 +++--- spiffworkflow-backend/pyproject.toml | 4 ++-- .../spiffworkflow_backend/integration/test_process_api.py | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/spiffworkflow-backend/poetry.lock b/spiffworkflow-backend/poetry.lock index b22d24664..312890e5d 100644 --- a/spiffworkflow-backend/poetry.lock +++ b/spiffworkflow-backend/poetry.lock @@ -1824,8 +1824,8 @@ lxml = "*" [package.source] type = "git" url = "https://github.com/sartography/SpiffWorkflow" -reference = "450ef3bcd639b6bc1c115fbe35bf3f93946cb0c7" -resolved_reference = "450ef3bcd639b6bc1c115fbe35bf3f93946cb0c7" +reference = "main" +resolved_reference = "98c6294f1240aee599cd98bcee58d121cb57b331" [[package]] name = "SQLAlchemy" @@ -2204,7 +2204,7 @@ testing = ["flake8 (<5)", "func-timeout", "jaraco.functools", "jaraco.itertools" [metadata] lock-version = "1.1" python-versions = ">=3.9,<3.12" -content-hash = "95c08ed2de5b5d047474666c9e9a5ff3e7e94e6184649c2aa6d3a961711f14b0" +content-hash = "b16e8fb0cf991bcba08c3ef1ddf205f5899c622a10c79a7f50fb55a36d53b179" [metadata.files] alabaster = [ diff --git a/spiffworkflow-backend/pyproject.toml b/spiffworkflow-backend/pyproject.toml index 9f8a29443..89edd680a 100644 --- a/spiffworkflow-backend/pyproject.toml +++ b/spiffworkflow-backend/pyproject.toml @@ -28,8 +28,8 @@ flask-migrate = "*" flask-restful = "*" werkzeug = "*" # temporarily switch off main to fix CI because poetry export doesn't capture the revision if it's not here (it ignores the lock) -# SpiffWorkflow = {git = "https://github.com/sartography/SpiffWorkflow", rev = "main"} -SpiffWorkflow = {git = "https://github.com/sartography/SpiffWorkflow", rev = "450ef3bcd639b6bc1c115fbe35bf3f93946cb0c7"} +SpiffWorkflow = {git = "https://github.com/sartography/SpiffWorkflow", rev = "main"} +# SpiffWorkflow = {git = "https://github.com/sartography/SpiffWorkflow", rev = "450ef3bcd639b6bc1c115fbe35bf3f93946cb0c7"} # SpiffWorkflow = {develop = true, path = "../SpiffWorkflow" } sentry-sdk = "^1.10" sphinx-autoapi = "^2.0" diff --git a/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py b/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py index f52cbc43f..ef6ce1018 100644 --- a/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py +++ b/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py @@ -2755,6 +2755,7 @@ class TestProcessApi(BaseTest): content_type="application/json", data=json.dumps(data), ) + print(f"response.json: {response.json}") assert response.json["status"] == "complete" response = client.get( From bec1b43cfbc9282725c4617d634974f4339c0448 Mon Sep 17 00:00:00 2001 From: jasquat Date: Fri, 27 Jan 2023 13:20:22 -0500 Subject: [PATCH 2/3] tests are passing now w/ burnettk --- .../services/process_instance_processor.py | 6 +++--- .../tests/data/process_navigation/process_navigation.bpmn | 2 +- .../tests/data/spiff_example/multiinstance.bpmn | 4 ++-- .../timer_intermediate_catch_event.bpmn | 2 +- .../spiffworkflow_backend/integration/test_process_api.py | 1 - 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py index 18a61071e..7cec48a19 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py @@ -1304,9 +1304,9 @@ class ProcessInstanceProcessor: continue # timer events are not related to messaging, so ignore them for these purposes - if waiting_task.task_spec.event_definition.__class__.__name__ in [ - "TimerEventDefinition", - ]: + if waiting_task.task_spec.event_definition.__class__.__name__.endswith( + "TimerEventDefinition" + ): continue message_model = MessageModel.query.filter_by( diff --git a/spiffworkflow-backend/tests/data/process_navigation/process_navigation.bpmn b/spiffworkflow-backend/tests/data/process_navigation/process_navigation.bpmn index 9f2f26bf4..540a0e12c 100644 --- a/spiffworkflow-backend/tests/data/process_navigation/process_navigation.bpmn +++ b/spiffworkflow-backend/tests/data/process_navigation/process_navigation.bpmn @@ -41,7 +41,7 @@ Flow_1vld4r2 Flow_13ai5vv - timedelta(hours=1) + "PT1H" diff --git a/spiffworkflow-backend/tests/data/spiff_example/multiinstance.bpmn b/spiffworkflow-backend/tests/data/spiff_example/multiinstance.bpmn index 6f20f560b..af2c20340 100644 --- a/spiffworkflow-backend/tests/data/spiff_example/multiinstance.bpmn +++ b/spiffworkflow-backend/tests/data/spiff_example/multiinstance.bpmn @@ -244,7 +244,7 @@ Order Total: {{ order_total }} Flow_08d8k7v Flow_1570y49 - timedelta(seconds=10) + "PT10S" @@ -315,7 +315,7 @@ Order Total: {{ order_total }} Flow_1ny6y69 - timedelta(minutes=1) + "PT1M" diff --git a/spiffworkflow-backend/tests/data/timer_intermediate_catch_event/timer_intermediate_catch_event.bpmn b/spiffworkflow-backend/tests/data/timer_intermediate_catch_event/timer_intermediate_catch_event.bpmn index 28312f577..50f64a76a 100644 --- a/spiffworkflow-backend/tests/data/timer_intermediate_catch_event/timer_intermediate_catch_event.bpmn +++ b/spiffworkflow-backend/tests/data/timer_intermediate_catch_event/timer_intermediate_catch_event.bpmn @@ -13,7 +13,7 @@ Flow_109wuuc Flow_0cy1fiy - timedelta(seconds=30) + "PT30S" diff --git a/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py b/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py index ef6ce1018..f52cbc43f 100644 --- a/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py +++ b/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py @@ -2755,7 +2755,6 @@ class TestProcessApi(BaseTest): content_type="application/json", data=json.dumps(data), ) - print(f"response.json: {response.json}") assert response.json["status"] == "complete" response = client.get( From 297d0ddb79bba32b8fb8eb95414640128b2a7b10 Mon Sep 17 00:00:00 2001 From: jasquat Date: Fri, 27 Jan 2023 13:21:39 -0500 Subject: [PATCH 3/3] removed old pin to spiffworkflow w/ burnettk --- spiffworkflow-backend/pyproject.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/spiffworkflow-backend/pyproject.toml b/spiffworkflow-backend/pyproject.toml index 89edd680a..cbf0b7ade 100644 --- a/spiffworkflow-backend/pyproject.toml +++ b/spiffworkflow-backend/pyproject.toml @@ -27,9 +27,7 @@ flask-marshmallow = "*" flask-migrate = "*" flask-restful = "*" werkzeug = "*" -# temporarily switch off main to fix CI because poetry export doesn't capture the revision if it's not here (it ignores the lock) SpiffWorkflow = {git = "https://github.com/sartography/SpiffWorkflow", rev = "main"} -# SpiffWorkflow = {git = "https://github.com/sartography/SpiffWorkflow", rev = "450ef3bcd639b6bc1c115fbe35bf3f93946cb0c7"} # SpiffWorkflow = {develop = true, path = "../SpiffWorkflow" } sentry-sdk = "^1.10" sphinx-autoapi = "^2.0"