feat: additional graph commands, extra graph codegen tests, and type definitions#4186
Merged
Conversation
graph:handler command, graph-codegen extra tests, and type definitions
graph:handler command, graph-codegen extra tests, and type definitionsgraph:handler command, extra graph-codegen tests, and type definitions
graph:handler command, extra graph-codegen tests, and type definitionsgraph commands, extra graph codegen tests, and type definitions
anmonteiro
previously approved these changes
Feb 7, 2022
Contributor
Author
|
Failing tests seem to be related to #3948 |
anmonteiro
approved these changes
Feb 8, 2022
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.
Summary
Continuing to polish the graph experience, and as things start to solidify (we're changing the generated code style much less frequently now) adding in some snapshot tests to make maintenance easier.
(Probable) Bug fix:
Incorporates @ehmicky's suggestion to handle filenames with spaces in them here
Codebase improvements:
Fixes some codegen failures, and adds a test matrix to keep track of the outputs of various flag combinations as well
Adds some type definitions (I didn't know about
// @ts-check, quite helpful!)To make the Graph DX completely usable from the CLI (no web GUI):
Adds a
graph:librarycommand to generate the function library based on the operation fileAdds a
graph:handlercommand to generate a handler via the operation name locally (makes the UI optional for the normal flow)Adds a
graph:operationscommand to list the operations available in the local libraryFor us to review and ship your PR efficiently, please perform the following steps: