[OPT-2321] Latest version returns highest version according to string sort Created: 13/Jun/19  Updated: 28/Jun/19  Resolved: 20/Jun/19

Status: Done
Project: Camunda Optimize
Component/s: backend
Affects Version/s: None
Fix Version/s: 2.5.0

Type: Bug Report Priority: L3 - Default
Reporter: Sebastian Bathke Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: current_release
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


The implementration of #getLatestVersionToKey returns wrong results if there are more than 9 versions as the string sorting considers e.g. "9" bigger than "10". This is caused due to the version field being a keyword in elasticsearch.


  • the actual biggest version in terms of number comparison is returned

Generated at Tue Sep 17 04:44:31 CEST 2019 using JIRA 6.4.6#64021-sha1:33e5b454af4594f54560ac233c30a6e00459507e.