-
Notifications
You must be signed in to change notification settings - Fork 46
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
API controller indexes are ordered backwards. #408
Comments
Very strange... I noticed it happening recently on my machine, and I reverted back to 1.25.0 for all of our BT gems but I still get the same test failure there so I'm not sure where it was introduced 🤔 Using PostgreSQL. |
I'm seeing that the following bit (that our pagination test uses) returns tangible things in descending order Line 50 in f55ccc4
Tagging the |
I went ahead and merged #409 so that we can get a fix in place, but I'm leaving this issue open so that we can look for a better fix to the root cause. |
Given the way we use cursor pagination and an
after
attribute with the ID of the last result, I would have expected IDs to be ascending order, but they're not. As a result of this, pagination is effectively broken, at least on MySQL?I fixed this downstream by overriding
apply_pagination
like so. The important part here is theorder: {id: :asc}
.The text was updated successfully, but these errors were encountered: