chocolatey / NuGet.Server-chocolatey

Chocolatey enhanced NuGet.Server code (not Chocolatey.Server - that's chocolatey/simple-server)
Apache License 2.0
9 stars 6 forks source link

Server results different result set depending on "$orderby" parameter #1

Open bartvanandel opened 6 years ago

bartvanandel commented 6 years ago

While working on an implementation for adding more ordering options to choco (related to https://github.com/chocolatey/choco/issues/256), I found there are differences between search results content (apart from their ordering) depending on "OrderBy" options. This varies between slightly different metadata, to entirely different packages being returned. Not necessarily wrong results, but it seems that the result list for unsorted vs unsorted may both be incomplete in slightly different ways.

The URLs in below were extracted from the debug output when running "choco search" commands (including my order changes) and were run again directly in the browser to verify the problem.

Details:

I've tried to see if I could pinpoint the problem, but this requires more than just code eyeballing it seems (and I'm not at home in this code base). However since this is a derivative of NuGet server, I tried to see if the problem exists on nuget.org as well. Seems like they are moving to a newer search engine version (v3) but I was able to see some of the issues there as well. But with my tests, the only differences were the null attributes and date formatting (timezone appended only for unsorted, the time resolution is the same, so slightly different situation).

Some URLs to test:

bartvanandel commented 6 years ago

Added a branch with the changes to choco + some debug console write statements to aid in debugging this issue.

bartvanandel commented 4 years ago

Is this repo dead?

bartvanandel commented 3 years ago

I declare this repo dead.