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

Core schema support and Typescript query planner redux #622

Merged
merged 51 commits into from
Mar 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
1322e44
Initial copy/paste for simpler diffing against
trevor-scheer Mar 18, 2021
0aa65fb
Implement core spec
trevor-scheer Mar 18, 2021
f1e0a8a
Initial impl of join spec
trevor-scheer Mar 18, 2021
f9f3784
Implement http directive for join__Graph enum
trevor-scheer Mar 19, 2021
06c42ad
Re-introduce last used TypeScript query planner code
martijnwalraven Mar 19, 2021
9a1e715
Use Federation metadata from composed schema
martijnwalraven Mar 19, 2021
9dab51d
Copy feature tests from Rust query planner to `@apollo/query-planner`…
martijnwalraven Mar 19, 2021
9af5533
Fix discrepancy in schema used for feature test
martijnwalraven Mar 19, 2021
ac540d2
Add `isNotNullOrUndefined` and remove dependency on `apollo-env`
martijnwalraven Mar 19, 2021
d2ef7c6
Change `getBaseService` and `getOwningService` to return `undefined` …
martijnwalraven Mar 19, 2021
4911364
Treat abstract types as value types to replicate type explosion fix
martijnwalraven Mar 19, 2021
5b8dc42
Make test pass by removing code that changes field ordering
martijnwalraven Mar 19, 2021
439fad2
Disable test for propagation of directives on inline fragments
martijnwalraven Mar 19, 2021
6cb2023
Update ordering of fragments in snapshots for autofragmentization tests
martijnwalraven Mar 19, 2021
b9f3a7c
Merge branch 'trevor/print-core-schema' into typescript-redux
martijnwalraven Mar 21, 2021
a09e433
Print valid core schema and change `@http` to `@join__endpoint`
martijnwalraven Mar 21, 2021
cbbf8cb
Adapt query planner to core schema input
martijnwalraven Mar 21, 2021
081c59e
Skip tests that fail because of value type handling in composition
martijnwalraven Mar 21, 2021
1e324f2
Print valid core schema and change `@http` to `@join__endpoint`
martijnwalraven Mar 21, 2021
eadfe94
Remove copy/pasta extension code from both composed and core printers
trevor-scheer Mar 22, 2021
2313d5a
Reintroduce fieldSet parseability test
trevor-scheer Mar 22, 2021
37773db
Cleanup test case
trevor-scheer Mar 22, 2021
166bce7
Merge branch 'trevor/print-core-schema' into typescript-redux
martijnwalraven Mar 23, 2021
bf79bec
Filter out core and join elements in `buildComposedSchema`
martijnwalraven Mar 24, 2021
70dce5c
Make the `graph` argument in `join__owner` and `join__type` non-nullable
martijnwalraven Mar 24, 2021
80e4431
Make `@provides` on value types work by printing `@join__field` witho…
martijnwalraven Mar 24, 2021
63658b8
Avoid printing `@join__field` for what should be value types
martijnwalraven Mar 24, 2021
0365de6
Change `@join__endpoint(serviceName:url:)` to `@join__graph(name:url:)`
martijnwalraven Mar 24, 2021
0b133e5
Uniquify and sanitize enum values in the join__Graph enum
trevor-scheer Mar 24, 2021
1b2af2d
Always invoke `GraphQLNonNull` as a constructor
martijnwalraven Mar 25, 2021
31a7ba6
Propagate directives on inline fragments to subqueries
martijnwalraven Mar 25, 2021
88f8c09
Escape string literals when printing core schema
martijnwalraven Mar 28, 2021
3350d86
Fix bug in the type explosion workaround code
martijnwalraven Mar 29, 2021
9cb48f1
Rename leftover endpointDirectiveArgs to graphDirectiveArgs
martijnwalraven Mar 29, 2021
4b7df18
Add hard coded feature and version checking for core schema
martijnwalraven Mar 29, 2021
3f860e3
harmonizer: Update to use `coreSchema` rather than `composedSdl`.
abernix Mar 30, 2021
da7a186
chore(harmonizer): Bump minor version to reflect new output
abernix Mar 30, 2021
25b5453
Make context a required arg everywhere, pass to printInterface
trevor-scheer Mar 30, 2021
973db23
Print @join__type directives on interface types
trevor-scheer Mar 30, 2021
22e6e77
Remove CSDL
trevor-scheer Mar 30, 2021
eb6676b
fix(gateway): Address typings issue for getDefaultFetcher (#585)
trevor-scheer Mar 18, 2021
6906a8c
Change lib.apollo.dev to specs.apollo.dev
martijnwalraven Mar 31, 2021
247fb10
Remove unnecessary assignment from `MultiMap`
martijnwalraven Mar 31, 2021
bc31b88
Only filter out directives with the unprefixed feature name
martijnwalraven Mar 31, 2021
19ae2f6
Address typos and enforce specifying assertion messages
martijnwalraven Mar 31, 2021
36cdac4
Avoid unnecessary check for undefined
martijnwalraven Mar 31, 2021
5b30ba8
Rename Endpoint -> Graph and serviceName -> graphName
martijnwalraven Mar 31, 2021
6abb7d4
Merge branch 'release-0.26.0' into typescript-redux
trevor-scheer Mar 31, 2021
466c6e1
Update the thing that TS didn't catch for me :sadface:
trevor-scheer Mar 31, 2021
f9e4cf7
(optionally) REVERT ME: cachebuster
trevor-scheer Mar 31, 2021
9db6aa9
Update changelogs
trevor-scheer Mar 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
### BUILD CACHE ###
- name: Cache Cargo registry, target, index
uses: actions/cache@v2
id: cache-cargo
id: cache-cargo-v2
env:
cache-name: cache-cargo
cache-name: cache-cargo-v2
with:
path: |
~/.cargo/registry
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust-slow-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
### BUILD CACHE ###
- name: Cache cargo registry, target, index
uses: actions/cache@v2
id: cache-cargo
id: cache-cargo-v2
env:
cache-name: cache-cargo
cache-name: cache-cargo-v2
with:
path: |
~/.cargo/registry
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ jobs:
### BUILD CACHE ###
- name: Cache cargo registry, target, index
uses: actions/cache@v2
id: cache-cargo
id: cache-cargo-v2
env:
cache-name: cache-cargo
cache-name: cache-cargo-v2
with:
path: |
~/.cargo/registry
Expand Down