From 3d3d5d37676dcf7e1b892aa2fb8de40f1bf3c6b0 Mon Sep 17 00:00:00 2001 From: jasquat Date: Mon, 9 Jan 2023 11:00:47 -0500 Subject: [PATCH] also show skipped tasks in the simplified log w/ burnettk --- .../routes/process_instances_controller.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py index a6709153..f99ce0b0 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py @@ -181,7 +181,12 @@ def process_instance_log_list( SpiffLoggingModel.process_instance_id == process_instance.id ) if not detailed: - log_query = log_query.filter(SpiffLoggingModel.message.in_(["State change to COMPLETED"])) # type: ignore + log_query = log_query.filter( + or_( + SpiffLoggingModel.message.in_(["State change to COMPLETED"]), # type: ignore + SpiffLoggingModel.message.like("Skipped task %"), # type: ignore + ) + ) logs = ( log_query.order_by(SpiffLoggingModel.timestamp.desc()) # type: ignore