Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify GraphQL::Backtrace #5217

Merged
merged 6 commits into from
Jan 29, 2025
Merged

Simplify GraphQL::Backtrace #5217

merged 6 commits into from
Jan 29, 2025

Conversation

rmosolgo
Copy link
Owner

@rmosolgo rmosolgo commented Jan 28, 2025

This could be simplified by adding some info to the existing runtime structures. Then I could scrap a lot of code and simplify the trace module setup, too.

TODO:

  • Runtime & memory comparison on master -- they were essentially identical. I thought the new properties on GraphQLResult would have shown up in higher memory usage but apparently not. (All the same Ruby objects, but new references to them...)

end
end

if last_part

Choose a reason for hiding this comment

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

instance method rows missing tests for lines 81, 92, 93, 81, 81, 91 (coverage: 0.907)

response_list
rescue NoMethodError => err
# Ruby 2.2 doesn't have NoMethodError#receiver, can't check that one in this case. (It's been EOL since 2017.)
if err.name == :each && (err.respond_to?(:receiver) ? err.receiver == value : true)

Choose a reason for hiding this comment

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

instance method continue_field missing tests for lines 587, 588, 597, 598, 658, 666, 678, 685, 684, 586, 658, 658 (coverage: 0.8649)

@rmosolgo rmosolgo merged commit 3df9181 into master Jan 29, 2025
13 of 15 checks passed
@rmosolgo rmosolgo deleted the simplify-backtrace branch January 29, 2025 13:44
@rmosolgo rmosolgo added this to the 2.4.9 milestone Jan 29, 2025
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.

1 participant