apollo-federation 3.6.8 → 3.6.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26437191f63f4ce0a56dff61e303ffa903ff80df46db23d5840ded158cdef18c
4
- data.tar.gz: c19bf4aeb4d78298d0d210ad2078b08d01a8e2fd4de75f5f5d2caccadbaa315d
3
+ metadata.gz: ca65263393e858c48499b29d8e2121b25f515708c1f831f54b03219d0f7f13b6
4
+ data.tar.gz: 01cf7071792dfa1b1a4aa036c0e7ebc061f4194d52036ffef6e9a3b031336fdd
5
5
  SHA512:
6
- metadata.gz: '079095e454e865dfceacb37c16e3ce64a23d59f5d937aa8668f7264b8f89ade841df7104b547ced1e4c353f3f81457e793882087b30baaad7d82ffb7c2ce8524'
7
- data.tar.gz: 79e15b6604c5f127e0948f4641c8530e4c538a5a587c6fb944a9b5ad874cb3564baf077dba26f1321fbe0580e61d0a157743cbbebfd1874e682c15a250e2dc8b
6
+ metadata.gz: aae86a03f465d0a063385b6e6cc60f6c50363b67261623ca3531656e73b0a6a662a811f207accbe3f504cd88fd9442a2710abde4ca9438a853fc65ae0bc86763
7
+ data.tar.gz: 1de8a1c7007064e4ec3d327cc38c7e08a80ab3ffd6ca1f6956d4e360dbb4bc22425cbd751f0d04c4b94a4157bc3b30422871c86e86b8e77f5078142c84b10231
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [3.6.9](https://github.com/Gusto/apollo-federation-ruby/compare/v3.6.8...v3.6.9) (2023-05-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * visibility checks should handle duplicate types and fields ([#245](https://github.com/Gusto/apollo-federation-ruby/issues/245)) ([6401feb](https://github.com/Gusto/apollo-federation-ruby/commit/6401febe65743eb1fae970b3cf865b7007fb27cf))
7
+
1
8
  ## [3.6.8](https://github.com/Gusto/apollo-federation-ruby/compare/v3.6.7...v3.6.8) (2023-05-22)
2
9
 
3
10
 
@@ -69,7 +69,7 @@ module ApolloFederation
69
69
  def build_type_definition_nodes(types)
70
70
  non_federation_types = types.select do |type|
71
71
  if query_type?(type)
72
- !type.fields.values.all? { |field| FEDERATION_QUERY_FIELDS.include?(field.graphql_name) }
72
+ !warden.fields(type).all? { |field| FEDERATION_QUERY_FIELDS.include?(field.graphql_name) }
73
73
  else
74
74
  !FEDERATION_TYPES.include?(type.graphql_name)
75
75
  end
@@ -81,9 +81,9 @@ module ApolloFederation
81
81
 
82
82
  # Walk through all of the types and determine which ones are entities (any type with a
83
83
  # "key" directive)
84
- types_schema.types.values.select do |type|
84
+ types_schema.send(:non_introspection_types).values.flatten.select do |type|
85
85
  # TODO: Interfaces can have a key...
86
- !type.introspection? && type.include?(ApolloFederation::Object) &&
86
+ type.include?(ApolloFederation::Object) &&
87
87
  type.federation_directives&.any? { |directive| directive[:name] == 'key' }
88
88
  end
89
89
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApolloFederation
4
- VERSION = '3.6.8'
4
+ VERSION = '3.6.9'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apollo-federation
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.8
4
+ version: 3.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noa Elad
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-05-22 00:00:00.000000000 Z
12
+ date: 2023-05-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: graphql