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

graphql empty url error #4835

Conversation

jackkav
Copy link
Contributor

@jackkav jackkav commented Jun 3, 2022

motivation: after adding the quick GraphQL request button, an error from the introspection query would be shown because there is no default url.
The introspection query only runs with a url now.
image

changelog(Fixes): Fixed an issue where users would see a fetch error before defining a URL for brand new GraphQL requests

@jackkav jackkav requested a review from gatzjames June 3, 2022 10:49
Copy link
Member

@filfreire filfreire left a comment

Choose a reason for hiding this comment

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

LGTM

@filfreire
Copy link
Member

filfreire commented Jun 3, 2022

@jackkav one minor improvement: the message fetching schema... - It could say something like Schema will be fetched once URL is set, or not say anything up until URL is there

leave it up to you do it in this PR or not 👍

Screen Shot 2022-06-03 at 11 54 58

@jackkav jackkav force-pushed the feature/ins-1554-investigate-improve-graphql-empty-state branch from 9cccb9f to 33c9e87 Compare June 3, 2022 12:18
@jackkav jackkav enabled auto-merge (squash) June 3, 2022 12:19
@wdawson
Copy link
Contributor

wdawson commented Jun 3, 2022

@jackkav one minor improvement: the message fetching schema... - It could say something like Schema will be fetched once URL is set, or not say anything up until URL is there

I think something like "Enter a URL to fetch schema" would be better (instructive on what the user could do).

Agree this is an optimization that could be done later if needed.

@jackkav jackkav disabled auto-merge June 3, 2022 12:34
@jackkav jackkav enabled auto-merge (squash) June 3, 2022 12:34
@jackkav
Copy link
Contributor Author

jackkav commented Jun 3, 2022

I've opted for no message, in the no url case, to keep the clutter to a minimum

@jackkav jackkav merged commit 29f530e into Kong:develop Jun 3, 2022
@jackkav jackkav deleted the feature/ins-1554-investigate-improve-graphql-empty-state branch June 3, 2022 12:42
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.

3 participants