Silence graphql_definition deprecation warning before suporting GQL 2.0#217
Silence graphql_definition deprecation warning before suporting GQL 2.0#217mcelicalderon merged 5 commits intographql-devise:releasefrom janraasch:silence-deprecation-graphql-definition
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 |
mcelicalderon
left a comment
There was a problem hiding this comment.
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.
| field.metadata[:authenticate] | ||
| else | ||
| field.graphql_definition.metadata[:authenticate] | ||
| if Gem::Version.new(GraphQL::VERSION) >= Gem::Version.new('1.13.1') |
| gem 'rspec-rails', '< 4.0' | ||
| end | ||
|
|
||
| appraise 'rails6.0-graphql1.8' do |
mcelicalderon
left a comment
There was a problem hiding this comment.
Thanks, I'll push a new release with this changes asap
|
v0.18.2 released! Thank you for the contribution, @janraasch! |
goal Silence
graphql_definitiondeprecation 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_definitionobjects on SchemaPlugin#authenticate_option #212 (comment).