-
Notifications
You must be signed in to change notification settings - Fork 103
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
feat: add a check for deprecation errors #93
feat: add a check for deprecation errors #93
Conversation
@koddsson: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
Those 4 tests were failing when I checked out the project FWIW |
@koddsson thanks for the PR! overall, things look good, and this is one of our oldest outstanding issues. a couple of things that would be useful to add to this — like other rules in i think the test case you've provided is sufficient to test the functionality provided here. when you have a chance, make sure to sign the CLA and fulfill the tasks laid out in the PR checklist. as for CI, im hoping its a transient error, but its an infrastructural problem, not a code problem. we'll get it sorted out as this PR progresses. |
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.
can we add a rule to toggle the severity of these errors?
1c7901c
to
ba24262
Compare
edit: nevermind, I think I got it figured out. |
@@ -427,6 +427,7 @@ const parserOptions = { | |||
greetings: () => Relay.QL\` | |||
fragment on Greetings { | |||
hello, | |||
hi, |
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.
I added this here to validate that the rule is not reporting when it's not enabled.
I basically took the code from graphql/graphql-js@063148d instead of importing the function |
@jnwng Could you take another peek at this if you have a spare moment 🙇 |
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.
woohoo! looks great. thank you for adding test cases and documentation :)
@koddsson in retrospect, it feels a little simpler to import the |
Hey @jnwng! Sorry I've been out for a bit.
If memory serves me right, it's because |
I’m so sorry! I thought I had published this already. Just one quick change
to make sure we’re pointing to source and I’ll be happy to publish this.
Thanks for your patience!
…On Mon, Jan 8, 2018 at 6:35 AM Pavel Chertorogov ***@***.***> wrote:
@jnwng <https://github.com/jnwng> @stubailo <https://github.com/stubailo>
any progress with publishing this merged changes to npm?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#93 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABERRrAf2pfa1LdOUuvJzKQpbhABRoeJks5tIie2gaJpZM4QXyHt>
.
|
Hey @jnwng! Is there something I can help with to get this published? I'm not sure what "Just one quick change to make sure we’re pointing to source" is or if that's something I can help with but feel free to ping me if I can help in any way <3 |
@koddsson i wanted to add attribution for the code that was moved here from |
Thanks for the update @jnwng! |
@koddsson okay, took me a bit to figure out what was going on, but this should be working and released as of |
Hey there! 👋
#14 describes the need for warnings on deprecated fields which is something I'd like as well so I fiddled around a bit and came up with this that seems to be working in my tests at least. Not sure if I need to make tests for appollo & graphql separately or handle any logic there separately. Also not sure if this should live somewhere else then where I put it. If there should be a rule to opt into or what so I'd appreciate any help on getting this PR up to standard 😄
TODO: