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

Refactoring how graphiql is loaded and supporting subscriptions #1639

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

StringKe
Copy link

Pull request checklist

  • Please read our contributor guide
  • Consider creating a discussion on the discussion forum
    first
  • Make sure the PR doesn't introduce backward compatibility issues
  • Make sure to have sufficient test cases

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Changes in this PR

#1633

Originating this discussion, I need to test the subscription in graphiql, but it doesn't seem to be supported at the moment?

After the change, graphiql will load the http and subscription endpoints from the url and use them, and parameters such as query will be serialized and displayed on the url!

When a user requests a graphiql that does not carry any endpoint parameters, it automatically adjusts to the address that does!

I'm testing the corresponding code in my own project webflux This implementation does not have any errors and can perform subscriptions.

I'm not familiar with webmvc / webflux, and I'm not a very skilled java / kotlin development engineer, so if there's anything wrong with this pr, feel free to submit changes!

Alternatives considered

None

example: /PATH?path=/graphql&wsPath=/subscription
@srinivasankavitha
Copy link
Contributor

srinivasankavitha commented Sep 22, 2023

Thanks for the PR. I'll take a look at the PR next week. In the meantime, could you please run ./gradlew formatKotlin to address the lint errors.

@srinivasankavitha
Copy link
Contributor

@StringKe - the tests seem to be failing with your changes. Could you please take a look at those as well when you can?

@StringKe
Copy link
Author

@StringKe - the tests seem to be failing with your changes. Could you please take a look at those as well when you can?

Okay, I'm going to need to delay this for a couple days.

@srinivasankavitha
Copy link
Contributor

Thanks, no rush at all!

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.

None yet

2 participants