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

The order of pools posts are incorrect on search #43

Closed
McSib opened this issue Jul 30, 2021 · 1 comment
Closed

The order of pools posts are incorrect on search #43

McSib opened this issue Jul 30, 2021 · 1 comment
Assignees

Comments

@McSib
Copy link
Owner

McSib commented Jul 30, 2021

There is a current bug when downloading pools where the pool is ordered incorrectly. The cause is from how the posts are grabbed. Initially, to save performance, pools were made to be downloaded in a single bulk search with the tag pool:{pool_id_here}. Because of this, it orders from the highest id to the lowest, meaning it relies on when the post is uploaded rather than where the post resides in the pool. This will be worked on before the release of 1.7.0.

@McSib McSib self-assigned this Jul 30, 2021
@McSib
Copy link
Owner Author

McSib commented Jul 30, 2021

This issue is now fixed after adding a for loop that swaps elements in the vector to the correct indexes. It's done by comparing the entry ids with the posts ids.

@McSib McSib closed this as completed Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant