-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: add GraphQL models and update complexity functions to use context #3630
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
Conversation
It looks like you need to do this:
and then commit your changes |
Thank you, @StevenACoffman! |
Thanks! I appreciate you working on this. It looks like you are still missing adding the |
I checked and found two additional places that need to be fixed:
|
Thank you for your persistence in continuing to work on this! I'm not overly concerned with the specific code coverage number, and don't want inconsequential test cases cluttering things. However, your original issue did not describe the symptom that would have been seen without your fix, or how to reproduce the circumstances when it would occur. Now, we do not have a test that prevents someone from accidentally re-introducing the same bug. Before your change, when resolver did NOT retrieve the context correctly, what would the error have been? Would there be any possible test case that could have simulated the old error before your change? Could you think of a test case that would provide some regression safety here? I'm going to merge it as is, but if you think of a useful test case, I would still love another PR for it. Otherwise, I'm looking forward to your next contribution! |
…xt (99designs#3630) * feat: add GraphQL models and update complexity functions to use context * feat: update Complexity function to use context parameter * fix: update Complexity functions to accept context parameter * Update complexity/complexity.go --------- Co-authored-by: Steve Coffman <StevenACoffman@users.noreply.github.com>
This PR updates the Complexity functions to use the context correctly.
Fixes #3629