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
Add sort-direction
option
#192
Add sort-direction
option
#192
Conversation
I can't select people who aren't a member of the repo as a reviewer 🤔. But I'd appreciate @Casz review as well 🙇♂️. |
I'd be happy to be considered a member of the repo 👍 💪 |
@@ -27,6 +33,7 @@ module.exports = app => { | |||
context, | |||
replacers: config.replacers | |||
}) | |||
config['sort-direction'] = validateSortDirection(config['sort-direction']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably better to solve this with a Joi schema?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll see if I can get around to it today 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to hurry! If you don't get around to it we can simply create an issue to improve this later :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mighty good to me 👍
GraphQL 🙇♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ace! Just a small nitpick/question about the console logs
Should be easy for me to add into schema so perhaps my PR supersedes his? 😆 |
So, after doing a quick test, I'm thinking we should reverse the default sort order @TimonVS, and make it |
Your call, |
Cool. I remember why I thought that maybe But TBH, I'm not really fussed enough to change it either. Let's wait for feedback and see. |
My 2 cents is I found ascending confusing, took me a while to get over 😆 however I much prefer descending. |
This PR adds the
sort-direction
option. Valid values areascending
ordescending
. I do notice that the list of configuration options is getting quite long, we may want to split up more advanced configuration options like this one into another document in the near future.Fixes: #188