Open MartinKolarik opened 3 years ago
Version logs for ref: https://github.com/cdnjs/logs/tree/prod/packages/c/caf/13.1.1
I just ran a manual re-update of the library to trigger a reindex in Algolia (which is what backs our libraries search endpoint, rather than our own metadata the backs the individual library routes), and it seems to have resolved this:
https://api.cdnjs.com/libraries?fields=name,latest,version,filename&search=caf
{"results":[{"name":"caf","latest":"https://cdnjs.cloudflare.com/ajax/libs/caf/13.1.1/umd/caf.js","version":"13.1.1","filename":"umd/caf.js"}],"total":1,"available":1}
@tc80 I wonder if, once we've done our latest set of maintenance to the bot, it'd be worth doing a reindex of the latest versions of every library in Algolia -- might resolve other libraries that have this issue, as well as the missing SRI & null version issues?
once we've done our latest set of maintenance to the bot, it'd be worth doing a reindex of the latest versions of every library in Algolia
That seems like a good idea as there are certainly more libraries with this problem right now.
Details
Description
The
filename
andlatest
(not sure if any other) fields return incorrect values via/libraries
endpoint for some libraries, while correct data is returned via/libraries/:library
endpoint.Steps to reproduce
Data for a library "caf" as returned by https://api.cdnjs.com/libraries?fields=name,latest,version,filename:
Data for the same library as returned by https://api.cdnjs.com/libraries/caf?fields=name,latest,version,filename:
Expected behavior
/libraries
should return the same data as/libraries/:library
Logs
N/A