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
Sorting options when searching for map or mod #2680
Comments
This is actually a limitation of the underlying api that the vault uses that has been under work to improve here FAForever/faf-java-api#448 |
Although I can look at which ones don't have the underlying limitation |
Ah yeah never mind can't sort over it because it doesn't support pagination |
API works like a charm https://youtu.be/gnbehQYP-58 It is just sample, but with additional work it is possible to add multiple sorts i guess |
Eternal that only works for direct attributes of the objects, sorting will return an error if you try to sort over related object attributes |
to be more specific, over one to many relation
…On Fri, 17 Jun 2022, 16:27 Sheikah45, ***@***.***> wrote:
Eternal that only works for direct attributes of the objects, sorting will
return an error if you try to sort over related object attributes
—
Reply to this email directly, view it on GitHub
<#2680 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBYJJJNVS6P3UJM4D3OLBLVPSDM7ANCNFSM5UR7OLDQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
https://api.faforever.com/data/mapVersion?include=map&sort=-map.gamesPlayed over map attributes from mapVersion |
to be more more precise :)
Elide would in this conditions create query, which would sort over not selected fields. |
Does this mean we just have to include anything we sort? |
btw that's many to one |
theoretically, but it is not possible with one to many relationships. it would break pagination because of duplicates |
sounds good. For now I will close this though |
Is your feature request related to a problem? Please describe.
When searching in the vault you can only sort on name. This is unintuitive when searching for adaptive or survival maps as you are likely more interested in good adaptive / survival maps over those that happen to start with the letter
a
.Describe the solution you'd like
You should be able to sort on:
And either of these should be the default, I'd argue it should be most valued as that keeps the most relevant maps on top and allows for shifts in the hierarchy that make sense. As an example, if you use most player then it may take years (if not more) for a map or mod to get onto the first page. But when using the most valued criteria it can be achieved within weeks.
Describe alternatives you've considered
I don't feel there is an alternative.
The text was updated successfully, but these errors were encountered: