Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort= ignored every other request #3012

Open
2 tasks done
DavHau opened this issue Oct 4, 2022 · 0 comments
Open
2 tasks done

sort= ignored every other request #3012

DavHau opened this issue Oct 4, 2022 · 0 comments

Comments

@DavHau
Copy link

DavHau commented Oct 4, 2022

Thanks for taking the time to raise an issue. This template should guide you through the process of submitting a bug, enhancement or feature request. Please erase any part of this template that is not relevant to your issue.

Bugs

Before submitting a bug report:

  • Double-check that the bug is persistent,
  • Double-check the bug hasn't already been reported on our issue tracker, they should be labelled bug or bugsnag.

The sorting via sort= only works sometimes, and otherwise is completely ignored when querying information about hackage.

run this query:
https://libraries.io/api/search?page=1&sort=dependents_count&per_page=100&platforms=hackage&api_key=YOUR_API_KEY

  1. Resend the query a few times
  2. You will notice that the result is inconsistent. Every other time the sort=dependents_count is completely ignored and results are shown in alphabetical order.

Maybe a caching issue on the serer side. It does not seem to happen with other platforms like npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant