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 GraphiQL subscriptions endpoint when using ASGI sub-mounting #98

Merged

Conversation

v-do
Copy link
Contributor

@v-do v-do commented Nov 9, 2019

When a TartifletteApp instance is mounted as a sub-route of another ASGI application, the GraphiQL subscriptions endpoint does not add the mount path and so subscriptions do not work from GraphiQL.

@florimondmanca
Copy link
Contributor

Good catch, thanks @v-do! Is there any chance we can add a test for this? Eg setup subscriptions on an app mounted at /some/path and verify that the full path (not just eg /subscriptions) is present in the rendered template. (Not sure if there’s such a test for the API endpoint already.)

@v-do
Copy link
Contributor Author

v-do commented Nov 9, 2019

Hi @florimondmanca yep sure let me try adding a test for it

@v-do v-do force-pushed the mount-graphiql-subscriptions branch from dc70f20 to e2a1c26 Compare November 10, 2019 06:59
Copy link
Contributor

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

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

Good stuff, thanks!

@florimondmanca florimondmanca merged commit 327af4c into tartiflette:master Nov 10, 2019
@florimondmanca florimondmanca mentioned this pull request Jun 4, 2020
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