Skip to content

Conversation

@luisincrespo
Copy link
Contributor

@luisincrespo luisincrespo commented Dec 6, 2016

Related to #18

Currently, the GraphQLView class accepts the context keyword argument when initializing, but it's not using it to set the context_value when executing the query.

This PR modifies the get_context instance method inside GraphQLView so that the context option is used when it is provided, defaulting to request otherwise.

@coveralls
Copy link

coveralls commented Dec 7, 2016

Coverage Status

Coverage remained the same at 96.026% when pulling 31de8cc on luisincrespo:master into d42846e on graphql-python:master.

@syrusakbary
Copy link
Member

@luisincrespo Thanks for the PR! Any tests checking this change would be great so the issue is not repeated in the future :)

@luisincrespo
Copy link
Contributor Author

@syrusakbary of course, will do as soon as I get the time today

@syrusakbary syrusakbary merged commit 021e9a2 into graphql-python:master Dec 14, 2016
@MrOrz
Copy link

MrOrz commented Aug 8, 2017

The context option became useless again in the master branch.

The commit that makes context option useless:
d728f80

Seems that users are forced to subclass GraphQLView and override get_context in order to customize context for now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants