Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-20782

When Sorting Completed Processes the Order of Results is Incorrect

    Details

    • Type: Service Pack Request
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Alfresco Process Services 1.9.0.5
    • Component/s: APS Tasks
    • Labels:
      None
    • Bug Priority:
      Category 2
    • ACT Numbers:

      00992623

      Description

      Summary
      When sorting completed processes using "Completed least recently" and "Completed most recently", the order is not correct.  When selecting the option "Completed least recently", the processes are sorted from newest to oldest when they should be sorted from oldest to newest.  When selecting the option "Completed most recently", the processes are sorted from oldest to newest when they should be sorted from newest to oldest.

      Steps to reproduce

      1. Login to activiti-app.
      2. Click on App Navigator icon to the right of the username and then select "Processes".
      3. On the "Processes" tab on the left side click on "Completed".
      4. The completed processes are listed to the right and at the top of the list there is a drop down where you can select sorting order. 
      5. In the drop down select "Completed most recently". The processes are listed from oldest to newest instead of from newest to oldest.
      6. Next, in the drop down select "Completed least recently". The processes are listed from newest to oldest instead of from oldest to newest.

      Expected behaviour
      When selecting "Completed most recently" as sort order, the processes are ordered from newest to oldest.
      When selecting "Completed least recently" as sort order, the processes are ordered from oldest to newest.

      Current behaviour
      The sort order is wrong and it seems that the labels were exchanged.
      When selecting "Completed most recently" as sort order, the processes are ordered from oldes to newest incorrectly.
      When selecting "Completed least recently" as sort order, the processes are ordered from newest to oldest incorrectly.

      Supporting evidence

      • Reproduced in current latest APS 1.9.0.5 release
      • Workaround: The labels for "Completed least recently" and "Completed most recently" in the i18 localization files for workflows can be exchanged, i.e. to resolve the issue edit the localization file for the language that is being used and switch the labels for the two sort options. The files are located in the path: /tomcat/webapps/activiti-app/workflow/i18n 

      The English localization file is en.json and the code that needs changed is below: 

      "ENDED-DESC": "Completed most recently""ENDED-ASC": "Completed least recently"

      The above code needs changed to: 

      "ENDED-DESC": "Completed least recently""ENDED-ASC": "Completed most recently"

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  kwatson Kimberly Watson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Structure Helper Panel