mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-13 11:05:56 +00:00
Merge remote-tracking branch 'origin/main' into deploy-app-dev
This commit is contained in:
commit
5375c1596a
@ -39,10 +39,7 @@ function run_autofixers() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
python_dirs=$(get_python_dirs)
|
python_dirs=$(get_python_dirs)
|
||||||
# python_files=$(find $python_dirs -type f -name "*.py" ! -name '.null-ls*' ! -name '_null-ls*')
|
ruff --fix $python_dirs || echo ''
|
||||||
# Don't check things in git-ignore:
|
|
||||||
python_files=$(git ls-files $python_dirs | grep .py$)
|
|
||||||
ruff --fix $python_files
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_pre_commmit() {
|
function run_pre_commmit() {
|
||||||
|
@ -435,6 +435,16 @@ def process_instance_task_list(
|
|||||||
bpmn_process_ids = []
|
bpmn_process_ids = []
|
||||||
if bpmn_process_guid:
|
if bpmn_process_guid:
|
||||||
bpmn_process = BpmnProcessModel.query.filter_by(guid=bpmn_process_guid).first()
|
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_processes = TaskService.bpmn_process_and_descendants([bpmn_process])
|
||||||
bpmn_process_ids = [p.id for p in bpmn_processes]
|
bpmn_process_ids = [p.id for p in bpmn_processes]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user