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: Refactor logic to enable/allow disable/not allow GraphiQL and Introspection Configuration in Dev vs Prod #9104

Merged
merged 5 commits into from
Sep 1, 2023

Conversation

dthyresson
Copy link
Contributor

There was a regression in the logic enabling/allowing GraphiQL and GraphQL introspection was being checked when creating GraphQL Yoga.

This PR reworks the logic, extracts it, and adds tests to prevent the logic regression from happening in the future.

@dthyresson dthyresson added bug/confirmed We have confirmed this is a bug release:fix This PR is a fix labels Aug 31, 2023
@dthyresson dthyresson added this to the next-release-patch milestone Aug 31, 2023
@dthyresson dthyresson self-assigned this Aug 31, 2023
@dthyresson dthyresson marked this pull request as ready for review August 31, 2023 14:05
Copy link
Collaborator

@Josh-Walker-GM Josh-Walker-GM left a comment

Choose a reason for hiding this comment

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

Talked through with DT and looks good. The logic is as clean as we can get it but there are a lot of negations. The tests are essential here so great DT added them.

@dthyresson dthyresson merged commit 99bfa9e into redwoodjs:main Sep 1, 2023
29 checks passed
jtoar pushed a commit that referenced this pull request Sep 2, 2023
…trospection Configuration in Dev vs Prod (#9104)

There was a regression in the logic enabling/allowing GraphiQL and
GraphQL introspection was being checked when creating GraphQL Yoga.

This PR reworks the logic, extracts it, and adds tests to prevent the
logic regression from happening in the future.

---------

Co-authored-by: Josh GM Walker <56300765+Josh-Walker-GM@users.noreply.github.com>
@jtoar jtoar modified the milestones: next-release-patch, v6.1.1 Sep 2, 2023
jtoar pushed a commit that referenced this pull request Sep 2, 2023
…trospection Configuration in Dev vs Prod (#9104)

There was a regression in the logic enabling/allowing GraphiQL and
GraphQL introspection was being checked when creating GraphQL Yoga.

This PR reworks the logic, extracts it, and adds tests to prevent the
logic regression from happening in the future.

---------

Co-authored-by: Josh GM Walker <56300765+Josh-Walker-GM@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/confirmed We have confirmed this is a bug release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants