graphql-ws icon indicating copy to clipboard operation
graphql-ws copied to clipboard

add support for graphql-core 3 to graphql_ws.aiohttp

Open hoefling opened this issue 5 years ago • 5 comments

Signed-off-by: oleg.hoefling [email protected]

This PR adds support for graphql-core>=3 to graphql.aiohttp.AiohttpSubscriptionServer. Note that this will break the rest of the BaseSubscriptionServer implementations! Unfortunately, I am not familiar with Sanic or gevent to adapt those too.

This PR violates against the PR submission rule

3 The pull request should work for Python 2.6, 2.7, 3.3, 3.4 and 3.5, and for PyPy. Check https://travis-ci.org/graphql-python/graphql_ws/pull_requests and make sure that the tests pass for all supported Python versions.

as graphql-core>=3 is compatible with Python 3.6 onwards. Also, all of the Python versions listed have reached EOL anyway (except Python 3.5 which will reach EOL in September).

hoefling avatar Apr 02 '20 14:04 hoefling

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@8f36f53). Click here to learn what that means. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #43   +/-   ##
=========================================
  Coverage          ?   35.58%           
=========================================
  Files             ?        8           
  Lines             ?      489           
  Branches          ?       54           
=========================================
  Hits              ?      174           
  Misses            ?      303           
  Partials          ?       12           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8f36f53...0b2efdc. Read the comment docs.

codecov-io avatar Apr 02 '20 14:04 codecov-io

Thank for sharing , it's really appreciated.

bueltan avatar Jun 12 '20 08:06 bueltan

@hoefling do you have any plans to update this PR?

The wider ecosystem seems to be adopting graphql-core 3 and the version constraint here is bound to start generating issues. I'm experiencing issues in the examples for https://github.com/torchbox/wagtail-grapple since we've updated to django-graphene >= 3.

dopry avatar Jan 06 '23 17:01 dopry

@dopry let me take a look at it, it's been a while now :-)

hoefling avatar Jan 11 '23 09:01 hoefling

Any objections against just integrating this into GQL-Server? Websocket-Based Subscriptions have become a common pattern in GQL and an integration would reduce the amount of duplicate code and management effort.

erikwrede avatar Jan 11 '23 15:01 erikwrede