-
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.
-
Tags:
-
Backlog priority:700
-
Sprint:nxplatform 11.1.37
-
Story Points:1
Steps to reproduce
- navigate to an existing document
- make a modification
- navigate to the History tab
- clic on the column Date to make a ASC sort
- observe the data are correctly sorted, from the oldest to the newest
- clic again on the column Date to make a DESC sort
- 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?
- is related to
-
NXP-28634 Fix faulty infinite scroll in HISTORY tab
- Resolved