From 11671875575ea83b17bd841fe63fc93cf48e401a Mon Sep 17 00:00:00 2001 From: jasquat <2487833+jasquat@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:33:24 -0500 Subject: [PATCH] Data obj show use params (#1160) * wip spiff lib upgrade * unit and script tests are now passing w/ burnettk * tests and pre-commit are passing * fallback to params if a matching task cannot tbe found when trying to view the contents of a data object from the web ui --------- Co-authored-by: burnettk Co-authored-by: jasquat Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com> --- .gitignore | 3 ++- spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3798bef84..22612d066 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ UNKNOWN.egg-info/ process_models/ .ipynb_checkpoints .env* -.cache \ No newline at end of file +.cache +.mypy_cache diff --git a/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx b/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx index 1f4a6eda7..14f5b8b0d 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx @@ -794,8 +794,16 @@ export default function ProcessInstanceShow({ variant }: OwnProps) { }); if (matchingTask) { additionalParams = `?process_identifier=${processIdentifier}&bpmn_process_guid=${matchingTask.guid}`; + } else if ( + searchParams.get('process_identifier') && + searchParams.get('bpmn_process_guid') + ) { + additionalParams = `?process_identifier=${searchParams.get( + 'process_identifier' + )}&bpmn_process_guid=${searchParams.get('bpmn_process_guid')}`; } } + HttpService.makeCallToBackend({ path: `/process-data/${category}/${params.process_model_id}/${dataObjectIdentifer}/${params.process_instance_id}${additionalParams}`, httpMethod: 'GET',