HumbleSpark / ellie-issues

Issue tracker for https://ellie-app.com
1 stars 0 forks source link

Package search doesn't always return all the results that it should #10

Open jamesmacaulay opened 7 years ago

jamesmacaulay commented 7 years ago

Right now if I click "add a package" in Ellie and type in "graphql", I get the following results:

base-dev/elm-graphql-module @1.0.0
jamesmacaulay/elm-graphql @1.3.0

There are a couple problems with these results. One is that it is only a subset of the packages on package.elm-lang.org with "graphql" in their name. If I search in Ellie for "ghivert" then it correctly shows me one of the other ones that is available, ghivert/elm-graphql @2.0.0.

The other problem with the above results is that the latest version of jamesmacaulay/elm-graphql is 1.4.0, not 1.3.0. It's not just a matter of Ellie not seeing the latest version, though: if I search Ellie's package listing for "jamesmacaulay", then the results include jamesmacaulay/elm-graphql @1.3.3 — not 1.4.0, but more recent than the 1.3.0 included when I search for "graphql". So depending on what you search for, Ellie might claim it has found different versions of the same package.

It seems like this is maybe a caching issue – maybe the search results for "graphql" are somehow frozen from a few months ago, and other searches were frozen at different times? I'm not sure how often Ellie is meant to check for new versions of packages, but jamesmacaulay/elm-graphql 1.4.0 has been out for a few months now and I can't find any way to get Ellie to return that version in search results. I assume the same is true for other packages.