From 613d09c9583359bc9a4ff69eccc74c4122132bf9 Mon Sep 17 00:00:00 2001 From: jbirddog <100367399+jbirddog@users.noreply.github.com> Date: Wed, 12 Jun 2024 14:50:08 -0400 Subject: [PATCH] Only save all process models when a new bpmn file is added (#1725) --- .../spiffworkflow_backend/routes/process_models_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_models_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_models_controller.py index 5a37ee0d3..fb055b142 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_models_controller.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_models_controller.py @@ -601,7 +601,7 @@ def _create_or_update_process_model_file( file.file_contents_hash = file_contents_hash _commit_and_push_to_git(f"{message_for_git_commit} {process_model_identifier}/{file.name}") - if is_new_file: + if is_new_file and file.name.endswith(".bpmn"): DataSetupService.save_all_process_models() return make_response(jsonify(file), http_status_to_return)