Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29149

Fix sort on Audit page provider

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF28, 11.1, 2021.0
    • Component/s: Audit
    • Release Notes Summary:
      The sort parameter is correctly taken into account by the Audit page provider.
    • Backlog priority:
      700
    • Sprint:
      nxplatform 11.1.37
    • Story Points:
      1

      Description

      Steps to reproduce

      1. navigate to an existing document
      2. make a modification
      3. navigate to the History tab
      4. clic on the column Date to make a ASC sort
      5. observe the data are correctly sorted, from the oldest to the newest
      6. clic again on the column Date to make a DESC sort
      7. observe that the same result is returned => problem

      Expected behavior: when a DESC sort is requested, the data should be sorted from the newest to the oldest

      The problem seems to come from the getSortInfos method which always initialized the sort infos with 2 sorts : https://github.com/nuxeo/nuxeo/blob/master/modules/platform/nuxeo-elasticsearch/nuxeo-elasticsearch-audit/src/main/java/org/nuxeo/elasticsearch/audit/pageprovider/ESDocumentHistoryPageProvider.java#L104 => why?

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h