-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
None
-
Not defined
Brief summary of the bug. What is it ? Where is it ?
Configuring a process in the process overview page doesn't work if owner was set via API
Steps to reproduce:
- Deploy a process
- Set an owner via the API api/process/initial-owner
- Go to Optimize process overview page
- Click on configure for that project
Actual result:
An application error occured.
Refresh your browser or close it and sign in again.
Cannot read properties of null (reading 'value')
Expected result:
Should work
Reason: The reason for that is that the frontend is not expecting a null value for "checkInterval". In a normal process overview, the response from the BE looks like this:
{ "processDefinitionName" : "Customer Onboarding", "processDefinitionKey" : "customer_onboarding_en", "owner" : \{ "id" : null, "name" : null },
"digest" : {
"checkInterval" :
,
"kpiReportResults" : { },
"enabled" : false
},
"kpis" : [ ],
"linkToDashboard" : "/collection/customer_onboarding_en/dashboard/customer_onboarding_en?appcue=7c293dbb-3957-4187-a079-f0237161c489"
}
In a process overview that was created by the API, it looks like this:
{ "processDefinitionName" : "Enforcing SLA Example", "processDefinitionKey" : "kartoffelpower", "owner" : \{ "id" : "samlp|Okta|giuliano.rodrigues-lima@camunda.com", "name" : "Giuliano Rodrigues Lima" },
"digest" : {
"checkInterval" : null,
"kpiReportResults" : { },
"enabled" : false
},
"kpis" : [ ],
"linkToDashboard" : "/collection/kartoffelpower/dashboard/kartoffelpower?appcue=7c293dbb-3957-4187-a079-f0237161c489"
}