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

Wrong order in MyStuff views #108

Open
ksiazkowicz opened this issue Mar 22, 2019 · 3 comments
Open

Wrong order in MyStuff views #108

ksiazkowicz opened this issue Mar 22, 2019 · 3 comments

Comments

@ksiazkowicz
Copy link
Contributor

Might be broken somewhere else as well, it's really easy to see when browsing Saved Albums for example.

All data in the list is currently in alphabetical order, but what we get from Spotify actually isn't returned in that order. When you scroll past certain threshold, next page is loaded from the API, but since the data is displayed in alphabetical order, new data will be added, for example, under "A" section, making scrolling look/act broken.

@wdehoog
Copy link
Collaborator

wdehoog commented Mar 22, 2019

Any idea how to solve this? Jump to the top? Remove the sorting?

@ksiazkowicz
Copy link
Contributor Author

I guess we'd have to remove the sorting or fetch all the data, then sort. For some reason you can't just ask Spotify to return it in alphabetical order.

@wdehoog
Copy link
Collaborator

wdehoog commented Mar 25, 2019

How about loading all but with a configurable maximum. Then only if all items are loaded we enable sorting.
New settings.

  1. Enable sorting of MyStuff lists (default true)
  2. Maximum number initially loaded (default 1000)

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

No branches or pull requests

2 participants