[MGNLUI-5968] ShowVersions list is not correctly ordered Created: 16/Jun/20  Updated: 18/Jun/20  Resolved: 18/Jun/20

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.1.6
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Jonathan Ayala Assignee: Unassigned
Resolution: Workaround exists Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Java Source File ShowOrderedVersionsAction.java    
Issue Links:
Relates
Template:
Patch included:
Yes
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
Date of First Response:

 Description   

Steps to reproduce:

  • create 2-3 version of the same page
  • restore version, so that "restore point" version is created
  • publish
  • Open version list by clicking showVersions action link

Result: Versions appear in a strange order.

Expected result: Versions appear ordered as they were created from more recent to the oldest.

I've created and attached a patch for ShowVersionAction class, in which the list of VersionInfo items is ordered. It must be configured as the implementation class for the showVersions action. For example, for pages app, it would be configured under /modules/pages/apps/pages/subApps/browser/actions/showVersions@implementationClass

 



 Comments   
Comment by Mercedes Iruela [ 18/Jun/20 ]

Not reproducible in 5.7 and 6.2.
Workaround exists.

Generated at Mon Feb 12 09:31:50 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.