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

Extract operationName for GET persisted operations #149

Conversation

gthau
Copy link

@gthau gthau commented Sep 8, 2024

Description

PR to address issue #148

Set operationName in IGraphqlRequestBody for GET persisted queries. It was missing and is needed to correctly display it in the Query/Mutation column.

Screenshot

Provide a screenshot or gif of the new feature in both dark and light mode.

Checklist

  • Displays correctly with both dark and light mode (see useTheme.ts)
  • Unit/Integration tests added

I added a test to check that it does return correctly the operation name for persisted get requests.
However the project Main.test.tsx files uses mockRequests which contains only POST requests, therefore this bug was not detectable with the current test suite. I think adding tests for GET requests too is bigger than the scope of this fix and should be done by a regular maintainer of the project.

@gthau
Copy link
Author

gthau commented Sep 19, 2024

Can a maintainer have a look at this PR please?

@warrenday
Copy link
Owner

Apologies for the delay @gthau I was on holiday. Thank you for raising the PR, this will me added to the next release.

@warrenday warrenday merged commit 351df9f into warrenday:master Sep 21, 2024
1 check passed
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