-
Notifications
You must be signed in to change notification settings - Fork 37
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
refactor: Use searchStacks over stacks for listing stacks #246
refactor: Use searchStacks over stacks for listing stacks #246
Conversation
sort.SliceStable(query.Stacks, func(i, j int) bool { | ||
return strings.Compare(strings.ToLower(query.Stacks[i].Name), strings.ToLower(query.Stacks[j].Name)) < 0 | ||
stacks, err := searchStacks(ctx.Context, structs.SearchInput{ | ||
OrderBy: &structs.QueryOrder{ |
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 wonder if we should follow the same logic as the default view
in the UI for stacks? I think that one is
"orderBy": [
{
"field": "starred",
"direction": "DESC"
}
]
``
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.
Yes, precisely. 👍🏻
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.
Closes #242