Skip to content

[federation] fix: SDL should be generated for non-federated schemas #417

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

Merged
merged 1 commit into from
Oct 2, 2019

Conversation

dariuszkuc
Copy link
Collaborator

📝 Description

Federated GraphQL gateway can contain number of services that are not exposing any of their types as federated types (i.e. without exposing any of them using @key directives). We were incorrectly generating SDL only if there were some federated types in the generated schema. Fix is to always generated the SDL.

🔗 Related Issues

Resolves #416

Federated GraphQL gateway can contain number of services that are not exposing any of their types as federated types (i.e. without exposing any of them using @key directives). We were incorrectly generating SDL only if there were some federated types in the generated schema. Fix is to always generated the SDL.
@codecov-io
Copy link

codecov-io commented Oct 2, 2019

Codecov Report

Merging #417 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##             master    #417   +/-   ##
========================================
  Coverage      97.8%   97.8%           
  Complexity      325     325           
========================================
  Files           105     105           
  Lines          1228    1228           
  Branches        202     202           
========================================
  Hits           1201    1201           
  Misses            7       7           
  Partials         20      20
Impacted Files Coverage Δ Complexity Δ
...raphql/federation/FederatedSchemaGeneratorHooks.kt 100% <100%> (ø) 7 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60253be...ab5d1af. Read the comment docs.

@smyrick smyrick added changes: patch Changes require a patch version type: bug Something isn't working labels Oct 2, 2019
@smyrick smyrick merged commit 748529f into ExpediaGroup:master Oct 2, 2019
@dariuszkuc dariuszkuc deleted the federation_sdl_fix branch October 17, 2019 18:52
dariuszkuc added a commit to dariuszkuc/graphql-kotlin that referenced this pull request Aug 5, 2022
…xpediaGroup#417)

Federated GraphQL gateway can contain number of services that are not exposing any of their types as federated types (i.e. without exposing any of them using @key directives). We were incorrectly generating SDL only if there were some federated types in the generated schema. Fix is to always generated the SDL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes: patch Changes require a patch version type: bug Something isn't working
Development

Successfully merging this pull request may close these issues.

SDL is null without keyed types. Is this intended?
3 participants