-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Support @argumentDefinitions
in @inline
fragments
#3935
Closed
Closed
Changes from 22 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
7dc1772
remove error re: no query vars with @inline
tbezman e57d9b0
write basic test
tbezman 315b946
generate relay artifacts
tbezman 6d9c3fd
remove failing tests
tbezman c3730dd
test structure
tbezman e1dc692
update inline_data_fragment transform to support query variables
tbezman 46921a0
update error message to better target argument definitions
tbezman f4c2a52
update compiler tests
tbezman 104aa6c
Update transform test to test argument definitions instead
tbezman cdef5b7
remove variable usage check
tbezman a61cf53
pipe arguments through in inline directive metadata
tbezman e82304f
update compiler test
tbezman a7106c6
update InlineDataFragmentSpread to include the args type
tbezman aced514
update RelayReader to temporarily swap variables for the spread's tra…
tbezman e2aa075
add more tests
tbezman 544a7e7
update generated artifacts
tbezman b3eef4d
update test snapshots
tbezman 26bed58
Merge branch 'main' of https://github.com/facebook/relay into inline-…
tbezman 05b57fc
Merge branch 'main' into inline-fragment-variables
tbezman ebb65ce
Merge remote-tracking branch 'upstream/main' into inline-fragment-var…
tbezman e6712f4
reset cargo lock
tbezman 31ead11
rename vars
tbezman ddec4b3
Update packages/relay-runtime/store/__tests__/readInlineData-test.js
tbezman 1fd27da
Update packages/relay-runtime/store/RelayReader.js
tbezman 1998b16
update variable name
tbezman 21be23c
Merge branch 'inline-fragment-variables' of github.com:tbezman/relay …
tbezman 0ab0549
Merge remote-tracking branch 'upstream/main' into inline-fragment-var…
tbezman 1ef590c
prettier
tbezman ce49c97
rust fmt
tbezman 71db76e
add argument definitions to inline spread metadata
tbezman 5dd113d
regen artifacts
tbezman 4902432
update relay concrete variables to accept inline data fragment spreads
tbezman f6a2e81
update relay reader to use getFragmentVariables
tbezman f1b420b
add argument definitions to ReaderInlineDataFragmentSpread type
tbezman e4d63ab
update snapshots
tbezman 62b114b
rustfmt
tbezman fc2310a
update more snapshots
tbezman c438692
Merge branch 'main' into inline-fragment-variables
tbezman 3e3d907
Merge branch 'inline-fragment-variables' of github.com:tbezman/relay …
tbezman e2a3f19
create failing test case for nested fragments
tbezman aca0833
fix failing test case
tbezman c94ad3d
relay gen
tbezman 14da635
add default variable to test
tbezman 655fd17
relay gen
tbezman efdbece
gorgeous suggestion from Jordan
tbezman 6a710d1
Merge branch 'main' into inline-fragment-variables
tbezman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
1 change: 0 additions & 1 deletion
1
...y-compiler/tests/compile_relay_artifacts/fixtures/inline-data-fragment-local-args.graphql
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So exciting! Love seeing "not supported" tests turning green.