Skip to content

[Bug] Wrong latest_stable_release_number when simultaneous releases #3416

@poum

Description

@poum

Given API request for a package
When 2 different releases occured at the same time
Then the latest_stable_release_number occurs not the be the highest release number

Way to reproduce:

  • call API for markbaker/matrix
  • latest_stable_release_number is 2.1.4
  • Should be 3.0.1

Release number indicated on web page is also erroneous

Proof

See https://libraries.io/packagist/markbaker%2Fmatrix

Way to fix

  • Select all matching releases with last release date
  • Sort select on descending release number
  • Select the first on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions