elixir-bench / elixir-bench-web

Other
3 stars 3 forks source link

Sort jobs listed by created_at #11

Open tallysmartins opened 6 years ago

tallysmartins commented 6 years ago

In the repos page, jobs listed should be sorted by created_at, from the newest to oldest https://www.elixirbench.org/#/repos

arshadkazmi42 commented 6 years ago

Taking this up

arshadkazmi42 commented 6 years ago

@tallysmartins Does the graphql query supports sort? or it needs to be formatted manually after results are fetched from query?

tallysmartins commented 6 years ago

@arshadkazmi42 from what I know absynthe graphql library does not support this natively. We need to support orderBy argument in our backend, which is the correct approach for this problem.

arshadkazmi42 commented 6 years ago

@tallysmartins where can I find the backend code for this?

tallysmartins commented 6 years ago

Hi, again! First of all, thank you for your interest on doing this :heart:

This file here in our backend repository describes our graphql queries, the line 45 is related to the jobs endpoint. The orderBy attribute support must be there somehow... Try to find some examples out there, I don't have much experience on best practices with GraphQL libraries

You can also join our slack channel #elixir-bench in the elixir-lang.slack.com group so we can discuss this more deeply and sync.