What/Where is the issue ?
In outlier analysis, when trying to download outlier instances, the number of instances download does not match the shown count.
Environment: C7/ C8SaaS/ C8SM
Optimize version : 3.12-snapshot - 3.11, 3.10 and potentially 3.9 as well
ES version : 8.9
OS + Browser version : macOS + Chrome
Steps to reproduce:
- Go to analysis page - outlier/task analysis
- Select a process that has outliers
- Click on the flow node with outliersĀ
- Click on the "download instances" buttonĀ
- open the downloaded excel sheet and count the instances in the file
Observed behavior:
The downloaded instances are much higher than the show number of outliers
Expected behavior:
The downloaded instances match the number of outliers
Additional Information:
The backend outlier query only looks at completed instances. When downloading the instances, we need an additional filter to filter for only completed instances.
Moreover, we currently on filter on the higher outlier bound but we do not do the same for lower outlier bound.
See https://camunda.slack.com/archives/C068W271W2W/p1701964953380909
for more context