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 jobs listed by created_at #11

Open
tallysmartins opened this issue Sep 30, 2018 · 5 comments
Open

Sort jobs listed by created_at #11

tallysmartins opened this issue Sep 30, 2018 · 5 comments

Comments

@tallysmartins
Copy link
Member

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

@arshadkazmi42
Copy link

Taking this up

@arshadkazmi42
Copy link

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

@tallysmartins
Copy link
Member Author

@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
Copy link

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

@tallysmartins
Copy link
Member Author

Hi, again! First of all, thank you for your interest on doing this ❤️

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.

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

No branches or pull requests

2 participants