Open mboskamp opened 4 days ago
Hi @mboskamp, @tasso94, Assigning this ticket to @tasso94 as per our Community Worker Process
This ticket was created on behalf of https://jira.camunda.com/browse/SUPPORT-24279. Right now, there is nothing to do here. Once we commit to a delivery timeline, it can be assigned to an engineer.
Hey @mboskamp and @venetrius, next time, feel free to just remove the ticket from our project board. It's enough to maintain a reference from the support case. I'll take care of adding it back once we committed to a patch release.
Environment (Required on creation)
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)
When multiple instances of a process definition are running with at least two open incidents for each instance of different incident types, the count of running process instances in the Processes view in Cockpit is wrong. The displayed count is equal to the actual count times the amount of different incident types. For example: There are two incidents with different types per instance and three instances are running. The Processes view in Cockpit would display six running instances (3 instances x 2 incident types).
Steps to reproduce (Required on creation)
parallel
.Details
Observed Behavior (Required on creation)
The running process instances count is double what we would expect. For example: With two instances of the example process above, you should see a running instances count of four. However, only two instances are running.
Expected behavior (Required on creation)
The running instances count is correctly displayed. For example: With two instances of the example process above, you should see two running instances.
Root Cause (Required on prioritization)
The query used for the statistics is this one: https://github.com/camunda/camunda-bpm-platform/blob/ab78ff5959ba9ed94ea7538a789fe12c442ae3c1/webapps/assembly/src/main/resources/org/camunda/bpm/cockpit/plugin/base/queries/processDefinition.xml#L55
The query groups instances by incident type (here and here). This part of the query was initially copied from the statistics endpoint in the public API. This endpoint can filter and sort by incident type. The Cockpit variant does not need this functionality and does not support it.
Solution Ideas
Remove the grouping by
INCIDENT_TYPE_
from the Cockpit query.Hints
Links
Breakdown
Dev2QA handover