-
Notifications
You must be signed in to change notification settings - Fork 10
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
orderBy price ascending should put prioritise "listed" tokens #188
Comments
👀 |
Isnt this issue of the query than the app ? |
cc @hassnian |
thread where we discussed this
returns
shows non-listed first , but we need listed first sorted by price and then non-listed |
you should be able to remove "0" price
|
@roiLeo yep, thought the same. my concern was regarding pagination. so for example, you have x pages of listed items. where you use the query above, then when there aren't more items, you show non-listed using priceEq: '0' once we change the query I reckon this can be done but wouldn't this add more complexity or am I missing something? |
use
Do you have a query to illustrate your example?
if it add more complexity on the frontend then it's a data issue and should be fixed on backend |
ItemsGrid.vue -> useFetchSearch (153 line) -> useItemsGrid.ts (useFetchSearch) (141 line) we have
to calculate the we can use this query for the listed items
let's say that we are on page 10 and we don't have more listed items , next page 11 , now we can use this query
page 11 would be 400 offset ((11 -1) * 40) , but that wouldn't be right since the first. 400 items of this query are not the same as the other one. so we would need to change the offset logic to start from 0 here , also keep track of this new "page" for the second query also some parts
to make this work, wouldn't we end up adding more complexity? I hope my concern is clearer now. let me know if it's a non-issue and I'm missing something. thanks |
Like what specifically? What have you illustrated is matter of query
I do not understand, sorry Can you plase say
If it is this one
It does not make sense show unlisted nft as they do not have price, |
yes it does, because you don't have to have buy now filter applied to see low to high price sort |
Thanks for the explanation @exezbcz therefore I have only two possible solutions: EDIT: soo appartently nulls last would work Just figure out how to write it in query |
So got to the point:
|
isn't easier this one? |
Then you need to rewrite most of the view page. (I am not against) |
So apparently it exists on SubSquid. So guess #194 will fix it |
when this filter is applied it should show listed first - sorted by price and then the rest
Originally posted by @exezbcz in kodadot/nft-gallery#8920 (comment)
ref kodadot/nft-gallery#8890
The text was updated successfully, but these errors were encountered: