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

Update engine to precompile graphiql assets #76

Merged

Conversation

justinlang
Copy link
Contributor

Fix for #75

This is my first PR against an open-source project. I'm not sure if there's a better way to address this issue but this seems to work. Happy to get any feedback or iterate on this. I didn't see guidelines for contributing so please let me know if I can make this PR better!

wesleyjellis pushed a commit to wesleyjellis/sprockets_graphql that referenced this pull request Oct 23, 2019
@wesleyjellis
Copy link

I can confirm this works on https://github.com/wesleyjellis/sprockets_graphql/tree/precompile

@AlexVPopov
Copy link

Hello Robert @rmosolgo :) I can confirm that the provided fix indeed does the job and is also the expected way to go (at least according to the Rails Guides). Do you mind reviewing this and in case you agree with it, also merging and releasing it? I'm in the process of updating the How to GraphQL Ruby tutorial for Rails 6 and I'd like to avoid adding an instruction for the users to add the graphiql-assets in the manifest.js of their application.

AlexVPopov pushed a commit to AlexVPopov/howtographql that referenced this pull request Nov 20, 2019
These instructions are needed as Sprockets 4 changes the logic for which
assets are to be included for precompilation by default. They can be
removed once rmosolgo/graphiql-rails#76 is
merged and released.
AlexVPopov pushed a commit to AlexVPopov/howtographql that referenced this pull request Jan 6, 2020
These instructions are needed as Sprockets 4 changes the logic for which
assets are to be included for precompilation by default. They can be
removed once rmosolgo/graphiql-rails#76 is
merged and released.
AlexVPopov pushed a commit to AlexVPopov/howtographql that referenced this pull request Jan 13, 2020
* update instructions for generating the LinkType
* bump graphiql-rails version to 1.7.0
* update explanation about fields resolution
* add instructions for adding GraphiQL assets to manifest.js
  - These instructions are needed as Sprockets 4 changes the logic for
    which assets are to be included for precompilation by default. They
    can be removed once rmosolgo/graphiql-rails#76
    is merged and released.
@erichmachado
Copy link

Hi @rmosolgo. Do you have plans to release a new version of this gem soon? It would be great if this PR could be merged into it.

AlexVPopov pushed a commit to AlexVPopov/howtographql that referenced this pull request Feb 16, 2020
* update instructions for generating the LinkType
* bump graphiql-rails version to 1.7.0
* update explanation about fields resolution
* add instructions for adding GraphiQL assets to manifest.js
  - These instructions are needed as Sprockets 4 changes the logic for
    which assets are to be included for precompilation by default. They
    can be removed once rmosolgo/graphiql-rails#76
    is merged and released.
@rmosolgo
Copy link
Owner

Sorry for the delay, and thanks for the fix! I'll cut a new release later today.

@rmosolgo rmosolgo merged commit e913c4a into rmosolgo:master Aug 17, 2021
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

5 participants