there is a repeated record and one record is gone from the list/page #546
Replies: 4 comments 4 replies
-
@laptopmutia it is very difficult to debug with the above code. I need a minimal example - pls see the pagy rails template in order to reproduce the bug - otherwise we will expend a lot of energywithout getting anywhere in particular. The problem might not be in pagy - it might be somewhere else. The reproducible example will allow you to find the fault yourself, or would otherwise provide very precise answers so that a bug fix can be reproduced. |
Beta Was this translation helpful? Give feedback.
-
@laptopmutia I had a similar issue to this and it came down to how Postgres was running my query. The issue didn't happen in Sqlite. Did you try .order(:id) first to make your queries deterministic?
|
Beta Was this translation helpful? Give feedback.
-
@joyoy96 Some golden answers to this problem! |
Beta Was this translation helpful? Give feedback.
-
Discussion Solved with |
Beta Was this translation helpful? Give feedback.
-
so I have this weird bug on my app there is a record that is repeated and one record is gone from the list idk what makes it so, but refactoring some line on my code fix it, and it only occurs on production
here is my code
changing the
:count
params from the front end (via parameter) fix the issue thoughand also changing the parameter for the sort column and sort direction also fixing the bug
Beta Was this translation helpful? Give feedback.
All reactions