Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-6211

sorting pipelineruns by duration sorts strings, not actual duration

XMLWordPrintable

    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      Included in 1.21: https://github.com/openshift/openshift-docs/pull/100818/

      Sort duration was not working as it was getting sorted by status.completionTime.
      Now we have updated the logic to sort the duration using the difference of status.completionTime and status.startTime
      Show
      Included in 1.21: https://github.com/openshift/openshift-docs/pull/100818/ Sort duration was not working as it was getting sorted by status.completionTime. Now we have updated the logic to sort the duration using the difference of status.completionTime and status.startTime
    • Bug Fix
    • Done
    • Pipelines Sprint Pioneers 38

      Description of problem:

      Sorting PipelineRuns by duration sorts strings, not actual duration. So for example PipelineRun with duration "5 minutes 36 seconds" is sorted above "40 seconds" and that is above "2 minutes 44 seconds".

      Prerequisites (if any, like setup, operators/versions):

      Red Hat OpenShift Pipelines - 5.0.5-369 provided by Red Hat
      OpenShift version 4.14.33.labe

      Steps to Reproduce

      1. Have a multiple PipelineRuns running with wide range of durations
      2. Go to https://console-openshift-console..../pipelines/all-namespaces/pipeline-runs?orderBy=desc&sortBy=Duration
         

        Actual results:

      Looks like durations are sorted in some strange way.

      See:

      Also looks like newly added PRs are added at the end of the list? Not sure about it.

      Expected results:

      Durations are sorted by elapsed number of seconds or so.

      Reproducibility (Always/Intermittent/Only Once):

      Always

              rh-ee-apalit Anwesha Palit
              jhutar-1 Jan Hutař
              Jayesh Garg Jayesh Garg
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: