Adds an emitter shell and sets up the tests to get options - #5033
Merged
timotheeguerin merged 4 commits intoNov 8, 2024
Merged
Conversation
swatkatz
requested review from
allenjzhang,
bterlson,
markcowl and
timotheeguerin
as code owners
November 8, 2024 15:55
timotheeguerin
approved these changes
Nov 8, 2024
swatkatz
force-pushed
the
feature/add-emitter-setup
branch
from
November 8, 2024 19:15
7249779 to
8ea6a2f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR sets up the flow to use the GraphQL emitter by providing an interface for the various options that the GraphQL emitter will use eventually. It also sets up test-hosts to work with these options. The actual schema emitter doesn't really do anything other than emit "Hello World" as it did previously, but the options get pass through as confirmed by the test case.
Going forward, we can change the code in schema-emitter.ts to setup it up for GraphQL using
navigateProgram. We need to add diagnostics in the emitter lib definition, but that can be done in a separate PR. The next PR will have the outer layer of the GraphQL emitter setup to deal with multiple schemas similar to multiple services in the OAI emitter.Testing
Run the tests and see that they pass.