Skip to content

Keep the GraphQl end cursor to avoid getting the data twice#2406

Merged
Urgau merged 1 commit into
rust-lang:masterfrom
Urgau:gh-comments-fix-retrieval
May 16, 2026
Merged

Keep the GraphQl end cursor to avoid getting the data twice#2406
Urgau merged 1 commit into
rust-lang:masterfrom
Urgau:gh-comments-fix-retrieval

Conversation

@Urgau
Copy link
Copy Markdown
Member

@Urgau Urgau commented May 16, 2026

For some reason GitHub GraphQl api doesn't seems to send anymore a response object at all when we pass the last cursor.

This trigger a bug where we though we had new data (actually the old one) and so everything was duplicated.

This PR fixes it by making sure we never lose a cursor, even if the GraphQl doesn't send one anymore.

Currently This PR
image image

Testing: http://localhost:8000/gh-comments/rust-lang/rust-forge/pull/1040

@Urgau Urgau requested a review from Kobzol May 16, 2026 10:43
@Urgau Urgau changed the title Keep the GraphQl end cursor even to avoid getting the data twice Keep the GraphQl end cursor to avoid getting the data twice May 16, 2026
@Urgau Urgau added this pull request to the merge queue May 16, 2026
Merged via the queue into rust-lang:master with commit 754c9cd May 16, 2026
3 checks passed
@Urgau Urgau deleted the gh-comments-fix-retrieval branch May 16, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants