-
Notifications
You must be signed in to change notification settings - Fork 45
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
Silence graphql_definition deprecation warning before suporting GQL 2.0 #217
Silence graphql_definition deprecation warning before suporting GQL 2.0 #217
Conversation
The »silence_deprecation_warning»-param was introduced with v1.13.1 See rmosolgo/graphql-ruby@3d1c24a
This is a cherry-picked version of 5642ca9 excluding the rails-7 related changes.
Cherry-picked 502c555
GQL 1.13 reuires ruby 2.4
Hi @mcelicalderon, I gave it a go over here following your instructions and cherry-picking what I could use from ℹ️ I saw that you skipped those tests on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @janraasch, this looks great!
beware I have no idea why these two ruby 2.5 tests fail for GQL 1.13
I was able to replicate that locally, but still couldn't get to the bottom of this, happens when the graphql gem is required, so might just be test related. Anyway, not a concer of this MR.
@@ -113,7 +113,11 @@ def authenticate_option(field, trace_data) | |||
auth_required = if trace_data[:context] | |||
field.metadata[:authenticate] | |||
else | |||
field.graphql_definition.metadata[:authenticate] | |||
if Gem::Version.new(GraphQL::VERSION) >= Gem::Version.new('1.13.1') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
@@ -82,20 +82,6 @@ appraise 'rails5.2-graphql1.12' do | |||
gem 'rspec-rails', '< 4.0' | |||
end | |||
|
|||
appraise 'rails6.0-graphql1.8' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I'll push a new release with this changes asap
v0.18.2 released! Thank you for the contribution, @janraasch! |
goal Silence
graphql_definition
deprecation warning for a v0.18.x release.reasoning Nothing users of this gem can do about it before a v1.0 release that would include support for GraphQL 2.0.
context
.graphql_definition
objects on SchemaPlugin#authenticate_option #212 (comment).