Skip to content

Conversation

@srest2021
Copy link
Member

@srest2021 srest2021 commented Nov 13, 2025

fixes REPLAY-830

In the replay index page, when sorting by columns that contain duplicate values (e.g., startedAt, duration, countErrors), the order of rows with identical values is non-deterministic, which results in inconsistent pagination. Let's add a fallback ordering on replay_id. We are already grouping by replay_id so the fallback sort will operate on the aggregated results.

@linear
Copy link

linear bot commented Nov 13, 2025

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 13, 2025
@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #103328      +/-   ##
===========================================
- Coverage   80.67%    80.67%   -0.01%     
===========================================
  Files        9237      9237              
  Lines      394583    394577       -6     
  Branches    25146     25146              
===========================================
- Hits       318345    318339       -6     
  Misses      75791     75791              
  Partials      447       447              

config: dict[str, Expression], sort: str, tiebreaker: str | None = None
) -> list[OrderBy]:
direction = Direction.DESC if sort.startswith("-") else Direction.ASC
bare_sort = sort[1:] if sort.startswith("-") else sort
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could also use sort.lstrip("-")

@srest2021 srest2021 marked this pull request as ready for review November 14, 2025 18:35
@srest2021 srest2021 requested a review from a team as a code owner November 14, 2025 18:35
@srest2021 srest2021 merged commit c66a6a5 into master Nov 14, 2025
66 checks passed
@srest2021 srest2021 deleted the srest2021/REPLAY-830 branch November 14, 2025 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants