[MGNLRESTUI-28] Disable sorting when jsondatasource is paginated Created: 04/Feb/20  Updated: 30/Apr/20  Resolved: 21/Apr/20

Status: Closed
Project: Magnolia REST Client UI
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.1

Type: Bug Priority: Major
Reporter: Christopher Zimmermann Assignee: Jorge Franco
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 2.5h
Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLRESTCL-94 Sorting does not work with paging Closed
Relates
relates to MGNLRESTUI-29 Support sorting strategies Accepted
causality
is causing MGNLRESTUI-31 DOC: Sorting is not supported at pres... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Documentation update required:
Yes
Date of First Response:
Epic Link: Declarative REST clients
Sprint: 6.2.1 Ramp-up 22
Story Points: 8

 Description   

In an app with a jsonDatasource with pagination declared:

  • Scroll down a few screens of records.
  • Click the name of a column such that the sorting arrow appears.

Note that only the current "page" is sorted. Expected behaviour is that the full list is sorted and that list is scrolled back to the "first page".

To reproduce:

 

Example:

As I observed, the sorting is only capable for the items on-screen at that position, when slowly scroll down and scroll up the browser app, the order of items above and below are unchanged 

a                                                    
b                                                    
c                                                    
----------- on-screen ---------
g
f                                                    
e                                                    
d                                                    
----------- on-screen ---------
h                                                    
i                                                    
j                                                     

 



 Comments   
Comment by Christopher Zimmermann [ 04/Feb/20 ]

We should document that sorting is not supported at present. 

Ideally sorting UI should be disabled by default if its a rest client App, AND PAGING IS ENABBLED - or otherwise developer must disable the sorting on each field manually, which is a pain.

Comment by Simon Lutz [ 09/Apr/20 ]

Disable sorting by default unless a parameter for sorting is configured.

Generated at Mon Feb 12 06:51:10 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.