Scenario:
- Requests to /api/variables/values take a long time
Reproduce:
- Create a process report based on a definition with a string variable
- Create a variable filter and select the string variable
- In the search field of the variable value list, start typing value "A"
- After the loading indicator appears, replace the search with value "B"
- Now two search requests, one with value "A" and one with value "B" are in flight
Expected:
- As soon as the search request for value B returns, the loading indicator disappears and the result for the search B is displayed
Observed:
- As soon as any search request returns, the loading indicator disappears
- As soon as the second request returns the value is updated
- Final value list is based on the last returning request (which might not be the last issued request)
- There is a frontend filtering applied so if the last returning request is for value "A", but the search shows "B", the frontend filters the returned list for "A" by the value "B", which might lead to missing results