Commit 01bdcd4
committed
Fix unstable ordering in BookCommentResource for PostgreSQL
Add default_sort to Api::V2::BookCommentResource to ensure stable
ordering across cache and non-cache scenarios. Without explicit
ordering, PostgreSQL may return results in different orders, causing
cache test failures.
Fixes: RequestTest#test_pagination_related_resources_data_includes1 parent 878520c commit 01bdcd4
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2022 | 2022 | | |
2023 | 2023 | | |
2024 | 2024 | | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
2025 | 2030 | | |
2026 | 2031 | | |
2027 | 2032 | | |
| |||
0 commit comments