[MAGNOLIA-4708] Version oredering is wrong Created: 04/Dec/12  Updated: 17/Mar/21  Resolved: 17/Mar/21

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: None
Fix Version/s: 4.5.x

Type: Bug Priority: Major
Reporter: Milan Divilek Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

JCR code take care about numbering of versions. Then we order versions by version number, but we should order versions by date of creation.
Example: we have versions 1.0, 1.1, 1.2 -> restore version 1.1 -> create new version, this version has version number 1.1.0. Version 1.1.0 was create after version 1.2. But we handled with 1.1.0 like it was created before 1.2.

  • in version list 1.1.0 is displayed before 1.2
  • when max of versions is reached then we remove version 1.1.0 before version 1.2

Generated at Mon Feb 12 03:58:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.