-
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
Usage of legacy .graphql_definition
objects on SchemaPlugin#authenticate_option
#212
Comments
Thank you for the report, @janraasch! We didn't change that in 0.18, so perhaps you also upgraded the |
Hi @mcelicalderon, thank you for replying so quickly 🙏.
Yes, I did indeed upgrade I'd love to see a fix for this deprecation message even in a
👍 |
Not using that method should be simple enough, so if we get the capacity to work on that, we can definitively release a patch version with just that. But who knows, v1 is near, so that might happen first? 🙌 🎉 Anyway, leaving this one open until the deprecation is fixed. |
👌. If you could gimme some pointers as to what needs to be done, I might be able to give it a try. I just took a few minutes:
I am not familiar enough with the inner workings of
Very nice 🐎 😁. For later reference: Here's a commit on |
That has to be replaced with something else of course 😄, but if you want to dig a little deeper, I think it all comes down to this
I can't recall right now, but I think the conditional there was precisely to work with 2 different versions of the GraphQL gem. So perhaps now we need to check the gem's version there before using the new mechanism |
I looked a bit onto this and found that supporting GraphQL 2.0 will be a bit harder than expected. Apparently we are not going to be able to do something like: field :private, String, null: true, authenticate: true We'll no longer be able to There's a related issue where the author of the GraphQL gem gives some alternatives in exAspArk/graphql-guard#53 So, as this is going to be a breaking change of the existing interface, we won't be able to ship a fix for this before v1.0.0 |
Hi @mcelicalderon, thank you for looking into this.
idea What do you think about then hiding the deprecation message via reasoning As a user of this library I cannot do anything about this deprecation message Let me know what you think 🙏 |
That makes sense, @janraasch! I pushed an MR with the change but I think I need to do a version check so the build doesn't break, I'll take another look as soon as possible. I'll release a new version with the change. Logs are important 🙌 You are welcome to propose a change if you can get to it before I do!
|
Closing this one as the deprecation message was silenced. Thank you, @janraasch! |
What is the problem the enhancement will solve?
After upgrading to
graphql_devise 0.18.0
I am getting the following deprecation message fromgraphql 1.13.10
:Context
I set up our
Schema
like soDescribe the solution you have in mind
Not sure 😇. Judging from the deprecation message, we could simply remove the call to
.graphql_definition
🤓...Describe alternatives you've considered
To have less noise on our test logs, I might choose to downgrade again...
Additional context
Please let me know, if you need more details.
The text was updated successfully, but these errors were encountered: