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 <burnettk@users.noreply.github.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
This commit is contained in:
jasquat 2024-03-04 15:33:24 -05:00 committed by GitHub
parent 3416843329
commit 1167187557
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

3
.gitignore vendored
View File

@ -9,4 +9,5 @@ UNKNOWN.egg-info/
process_models/
.ipynb_checkpoints
.env*
.cache
.cache
.mypy_cache

View File

@ -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',