libraries.io icon indicating copy to clipboard operation
libraries.io copied to clipboard

[Bug] Wrong latest_stable_release_number when simultaneous releases

Open poum opened this issue 1 year ago • 0 comments

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

poum avatar Jul 20 '24 15:07 poum