Skip to content

Sorted versions didn't place latest version at the top #2955

Open
@fenekku

Description

@fenekku

Package version (if known): v12

Describe the bug

We encountered cases where version sorting was incorrect: the top version spot should correspond to the most recent version, but it does not:

image

The banner says so correctly and the json data of the record as well: {"versions": {"is_latest": false, "index": 2}.

Parts that seem weird to me are that 10.18131/qsmj5-thn10 (wrongly sorted record) has

  • same version title as correctly sorted record: "Version v2" and
  • same versions index as correctly sorted record: {"versions": {"is_latest": true, "index": 2}

We are reaching out to depositor to know what they did, but I am fairly sure that the index should have been different and that this is a system problem. I don't know if this is systematic or if the user managed to fall in an edge case.

Expected behavior

See entry with "is_latest": true have the latest index (different than other) and be at the top of the sorting.

Screenshots (if applicable)

Additional context

2 more instances of this problem showed up (by same depositor). Here is a screenshot of another one:

image

And this incorrect sorting isn't always the case:

image

so what is going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions