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

Fix subscriptions in JS #1124

Merged
merged 1 commit into from Feb 23, 2021
Merged

Conversation

ygbourhis
Copy link
Contributor

@ygbourhis ygbourhis commented Feb 19, 2021

The "play" button on the graphiql web page does not work as expected with subscription.
With the following fix, when launching a subscription the "play" button changes to a "stop" button, allowing to stop subscriptions properly.
See the following video capture which shows how the fix works:
https://youtu.be/2Aks6wnYeRc

Fixes #1125

@ygbourhis
Copy link
Contributor Author

ygbourhis commented Feb 19, 2021

The failing tests fail locally even without my change...
There was a simple "return" missing for the interface to function properly.

@zbyte64
Copy link
Collaborator

zbyte64 commented Feb 20, 2021

Main branch should be fixed now. Please git fetch main, merge, and push to see if it resolves the build.

@zbyte64 zbyte64 closed this Feb 23, 2021
@zbyte64 zbyte64 reopened this Feb 23, 2021
Copy link
Collaborator

@zbyte64 zbyte64 left a comment

Choose a reason for hiding this comment

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

👍

@zbyte64 zbyte64 merged commit 007768b into graphql-python:main Feb 23, 2021
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.

Graphql subscriptions can not be unsubscribed without triggering another one in the graphiql interface.
2 participants