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

chore(graphql): add operation names and extract variables #611

Merged
merged 4 commits into from
Nov 7, 2022

Conversation

andrewazores
Copy link
Member

Related to cryostatio/cryostat#1201

See also:

Adding operation names makes it easier to search logs server-side for specific queries for debugging. Extracting variables
allows queries to be reused on the server as explained in links above, which allows query caching for better API performance.

@andrewazores andrewazores added the chore Refactor, rename, cleanup, etc. label Nov 7, 2022
@andrewazores andrewazores requested a review from tthvo November 7, 2022 01:50
@andrewazores
Copy link
Member Author

This works independently of cryostatio/cryostat#1202 , but that backend PR includes a parsed query caching enhancement that makes the separated query/variables better performing. Without that backend change this doesn't really do much in practical terms.

Copy link
Member

@tthvo tthvo left a comment

Choose a reason for hiding this comment

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

Looks good and worked as expected! Just a question and logs seem to show any logging for requests. Oh nvm, just saw https://github.com/cryostatio/cryostat/pull/1214

Copy link
Member

@maxcao13 maxcao13 left a comment

Choose a reason for hiding this comment

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

Looks good to me then!

Copy link
Member

@tthvo tthvo left a comment

Choose a reason for hiding this comment

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

Looks good to me too :D

@andrewazores andrewazores merged commit 05553bd into cryostatio:main Nov 7, 2022
@andrewazores andrewazores deleted the graphql-variables branch November 7, 2022 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Refactor, rename, cleanup, etc.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants