Skip to content

fix(ourlogs): use the right range operator when paginating ascending logs - #120771

Open
JoshuaKGoldberg wants to merge 1 commit into
masterfrom
joshgoldberg/logs-932-fix-auto-refresh-moving-the-first-log-to-the-bottom-on
Open

fix(ourlogs): use the right range operator when paginating ascending logs#120771
JoshuaKGoldberg wants to merge 1 commit into
masterfrom
joshgoldberg/logs-932-fix-auto-refresh-moving-the-first-log-to-the-bottom-on

Conversation

@JoshuaKGoldberg

@JoshuaKGoldberg JoshuaKGoldberg commented Jul 28, 2026

Copy link
Copy Markdown
Member

With the logs table sorted by timestamp ascending, scrolling back to the top fetched the newest rows instead of older ones and prepended them above the oldest. When the result set already fit in one page, deduplication then left the previously-first row alone at the end of the list.

Closes LOGS-932.

…logs

`??` binds tighter than `?:`, so the page filter's comparison was really
`querySortDirection ?? (sortByDirection === 'asc')`. `querySortDirection` is a
`Sort` object, so it was always truthy when set and every sort-flipping page
asked for `>=`.
@linear-code

linear-code Bot commented Jul 28, 2026

Copy link
Copy Markdown

LOGS-932

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 28, 2026
@JoshuaKGoldberg

Copy link
Copy Markdown
Member Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 7c38bbe. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 7c38bbe. Configure here.

@JoshuaKGoldberg
JoshuaKGoldberg marked this pull request as ready for review July 28, 2026 20:02
@JoshuaKGoldberg
JoshuaKGoldberg requested a review from a team as a code owner July 28, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant