Merge remote-tracking branch 'origin/main' into deploy-app-dev

This commit is contained in:
jasquat 2023-06-20 14:24:13 -04:00
commit 5375c1596a
2 changed files with 11 additions and 4 deletions

View File

@ -39,10 +39,7 @@ function run_autofixers() {
fi
python_dirs=$(get_python_dirs)
# python_files=$(find $python_dirs -type f -name "*.py" ! -name '.null-ls*' ! -name '_null-ls*')
# Don't check things in git-ignore:
python_files=$(git ls-files $python_dirs | grep .py$)
ruff --fix $python_files
ruff --fix $python_dirs || echo ''
}
function run_pre_commmit() {

View File

@ -435,6 +435,16 @@ def process_instance_task_list(
bpmn_process_ids = []
if bpmn_process_guid:
bpmn_process = BpmnProcessModel.query.filter_by(guid=bpmn_process_guid).first()
if bpmn_process is None:
raise ApiError(
error_code="bpmn_process_not_found",
message=(
f"Cannot find a bpmn process with guid '{bpmn_process_guid}' for process instance"
f" '{process_instance.id}'"
),
status_code=400,
)
bpmn_processes = TaskService.bpmn_process_and_descendants([bpmn_process])
bpmn_process_ids = [p.id for p in bpmn_processes]