Skip to content

fix: parse GraphQL response JSON once per PR page (#1056)#1060

Closed
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/double-json-parse-1056
Closed

fix: parse GraphQL response JSON once per PR page (#1056)#1060
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/double-json-parse-1056

Conversation

@alpurkan17
Copy link
Copy Markdown
Contributor

Get GraphQLPageResult carries already-parsed dict instead of raw Response. load_miners_prs consumes result.data directly, eliminating redundant response.json() call that doubled JSON-decode work every scoring round.

  • Change GraphQLPageResult.response -> GraphQLPageResult.data
  • get_github_graphql_query returns parsed data on success
  • load_miners_prs uses result.data instead of result.response.json()
  • RESOURCE_LIMITS_EXCEEDED detection still works via pre-parse check

Get GraphQLPageResult carries already-parsed dict instead of raw Response.
load_miners_prs consumes result.data directly, eliminating redundant
response.json() call that doubled JSON-decode work every scoring round.

- Change GraphQLPageResult.response -> GraphQLPageResult.data
- get_github_graphql_query returns parsed data on success
- load_miners_prs uses result.data instead of result.response.json()
- RESOURCE_LIMITS_EXCEEDED detection still works via pre-parse check
@xiao-xiao-mao xiao-xiao-mao Bot added the enhancement New feature or request label May 7, 2026
@robotcoder137
Copy link
Copy Markdown

@alpurkan17
Duplicated PR with #1055

@anderdc
Copy link
Copy Markdown
Collaborator

anderdc commented May 7, 2026

Duplicate of #1055 which is better scoped/implemented. Closing.

@anderdc anderdc closed this May 7, 2026
@alpurkan17 alpurkan17 deleted the fix/double-json-parse-1056 branch May 7, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants