Skip to content
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

Allow a custom executor class in GraphQL::Batch.batch #75

Merged
merged 7 commits into from
Dec 13, 2017

Conversation

xuorig
Copy link
Contributor

@xuorig xuorig commented Dec 13, 2017

Follow up to #68

Would be great to be able to use this using the GraphQL::Batch.batch API. WDYT?

cc @chrisbutcher

@xuorig
Copy link
Contributor Author

xuorig commented Dec 13, 2017

Policial doesnt seem to know positive? is not a thing in older rubies 🤷‍♂️

@dylanahsmith
Copy link
Contributor

I don't think Policial should even be checking this repo, since there is no rubocop config file, in which I would otherwise suggest that we just ignore the cop. I've changed the Policial settings for the repo to not check ruby files.

@@ -8,6 +8,29 @@ def test_batch
assert_equal 'Shirt', product.title
end

class MyCustomExecutor < GraphQL::Batch::Executor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if you moved the new test to GraphQL::Batch::CustomExecutorTest so that we can use the MyCustomExecutor in there rather than copying it here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 moved it there

@dylanahsmith dylanahsmith merged commit 746045a into Shopify:master Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants