camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.02k stars 1.53k forks source link

Webapp: Cockpit : order of process list is not correct #4426

Closed venetrius closed 2 weeks ago

venetrius commented 2 weeks ago

Environment (Required on creation)

Any env from 7.20.0

Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)

The process list ordered in a case-sensitive way (uppercase > special character > lowercase)

Steps to reproduce (Required on creation)

Open camunda app Go to /camunda/app/cockpit/default/#/processes Sort the processes by name

Observed Behavior (Required on creation)

screenshot-2

Expected behavior (Required on creation)

screenshot-1

Root Cause (Required on prioritization)

org.camunda.bpm.cockpit.impl.plugin.resources.ProcessDefinitionRestService.queryStatistics method uses processDefinition query which uses the default order which is case sensitive. The result of this method call is rendered in cockpit without sorting.

Solution Ideas

Hints

Navigate high quantities of processes in process overview introduces paging for process statistic table, before that the entire list was loaded to the front end and sorted.

This behaviour can be also observed on Admin user page

Links

Breakdown

### Pull Requests

Dev2QA handover

venetrius commented 2 weeks ago

Closing this issue as not planned.

We changed the process list behaviour (Dashboard » Processes): In versions <= 7.19.0, we merged the key and name columns and sorted them using JavaScript. With 7.20.0, we separated the columns and moved the sorting from the client to the server side (the database is responsible for sorting).

Even if we would try to fix this using your outlined option #1, we cannot influence how the database sorts. It is vendor-specific.