Skip to content

Remove DgsNoOpPreparsedDocumentProvider - #989

Merged
berngp merged 1 commit into
masterfrom
remove-dgs-no-op-preparsed-document-provider
Apr 18, 2022
Merged

berngp merged 1 commit into
masterfrom
remove-dgs-no-op-preparsed-document-provider

Conversation

@kilink

@kilink kilink commented Apr 16, 2022

Copy link
Copy Markdown
Contributor

Switch to the NoOpPreparsedDocumentProvider from graphql-java.

Switch to the NoOpPreparsedDocumentProvider from graphql-java.
@kilink
kilink requested a review from berngp April 18, 2022 17:14
@berngp
berngp merged commit bb793c2 into master Apr 18, 2022
@berngp
berngp deleted the remove-dgs-no-op-preparsed-document-provider branch April 18, 2022 18:18
@jord1e

jord1e commented Apr 19, 2022

Copy link
Copy Markdown
Contributor

I implemented this in #599 because the GraphQL-Java one is annotated with @Internal, those classes are not public API and thus should never be used

https://github.com/graphql-java/graphql-java/blob/d783ec7ee30369ca2fdecdfd0b74e8bf6d96baa8/src/main/java/graphql/execution/preparsed/NoOpPreparsedDocumentProvider.java#L9

This PR reverts to using the internal non-public implementation. It should probably be reverted

@kilink

kilink commented Apr 19, 2022

Copy link
Copy Markdown
Contributor Author

Thanks for catching that, I didn't notice it was annotated with @Internal. However, I still think it's not necessary to duplicate the NoOpPreparsedDocumentProvider in DGS. All we have to do is not pass in anything to the builder returned by GraphQL.newGraphQL, and it ends up being the default one used anyhow. See #994

TBadru pushed a commit to TBadru/dgs-framework that referenced this pull request Oct 30, 2026
actions/setup-python has no Python 3.8 build for the Ubuntu 26.04 runner.
Match dgs-codegen (Netflix#989): Python 3.13, quoted so YAML keeps it a string.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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