Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-2321

Latest version returns highest version according to string sort

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Done
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: backend
    • Labels:
      None

      Description

      Context:
      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.

      AT:

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

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            sebastian.bathke Sebastian Bathke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: