elasticgraph-graphql 0.18.0.1 → 0.18.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b80c95effea6c96d77f52275854dcf2ef14fa9b56c56cbca44fef5b5e34da5d
|
4
|
+
data.tar.gz: 6af6c4269f7d9b4822a16e0007c24574593261a585cc7de9227ec3584c50a5ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33c540e6691fa35958a4b8c01984909f36a12092e05bb78e4cf91424a555d2932b79cdb50e8007756c2bd7d4a44bc176b36a7363cf5e5b2be75f3d5475d616d7
|
7
|
+
data.tar.gz: 9ee9a9790c301d17f6467413d2ad02f6e01fd2305b5989eaed5fcbd78fdd8d84b9b8f21ef14cdd109444675a6e63df737555be7eb34be988bb44359a834ab0ea
|
@@ -13,7 +13,7 @@ ElasticGraphGemspecHelper.define_elasticgraph_gem(gemspec_file: __FILE__, catego
|
|
13
13
|
|
14
14
|
spec.add_dependency "elasticgraph-datastore_core", eg_version
|
15
15
|
spec.add_dependency "elasticgraph-schema_artifacts", eg_version
|
16
|
-
spec.add_dependency "graphql", "
|
16
|
+
spec.add_dependency "graphql", "~> 2.3.14"
|
17
17
|
|
18
18
|
spec.add_development_dependency "elasticgraph-admin", eg_version
|
19
19
|
spec.add_development_dependency "elasticgraph-elasticsearch", eg_version
|
@@ -62,6 +62,11 @@ module ElasticGraph
|
|
62
62
|
|
63
63
|
def process_filter_hash(bool_node, filter_hash, field_path)
|
64
64
|
filter_hash.each do |field_or_op, expression|
|
65
|
+
# `nil` filter predicates should be ignored, so we can safely `compact` them out.
|
66
|
+
# It also is simpler to handle them once here instead of the different branches
|
67
|
+
# below having to be aware of possible `nil` predicates.
|
68
|
+
expression = expression.compact if expression.is_a?(::Hash)
|
69
|
+
|
65
70
|
case identify_expression_type(field_or_op, expression)
|
66
71
|
when :empty
|
67
72
|
# This is an "empty" filter predicate and we can ignore it.
|
@@ -86,7 +91,7 @@ module ElasticGraph
|
|
86
91
|
end
|
87
92
|
|
88
93
|
def identify_expression_type(field_or_op, expression)
|
89
|
-
return :empty if expression.nil?
|
94
|
+
return :empty if expression.nil? || expression == {}
|
90
95
|
return :not if field_or_op == schema_names.not
|
91
96
|
return :list_any_filter if field_or_op == schema_names.any_satisfy
|
92
97
|
return :all_of if field_or_op == schema_names.all_of
|
@@ -160,9 +165,7 @@ module ElasticGraph
|
|
160
165
|
process_filter_hash(inner_node, filter, field_path.nested)
|
161
166
|
end
|
162
167
|
|
163
|
-
|
164
|
-
bool_node[:filter] << {nested: {path: field_path.from_root.join("."), query: sub_filter}}
|
165
|
-
end
|
168
|
+
bool_node[:filter] << {nested: {path: field_path.from_root.join("."), query: sub_filter}}
|
166
169
|
end
|
167
170
|
|
168
171
|
# On a list-of-leaf-values field, `any_satisfy` doesn't _do_ anything: it just expresses
|
@@ -302,7 +305,7 @@ module ElasticGraph
|
|
302
305
|
process_filter_hash(inner_node, expression, field_path)
|
303
306
|
end
|
304
307
|
|
305
|
-
bool_node[:filter] << sub_filter
|
308
|
+
bool_node[:filter] << sub_filter
|
306
309
|
else
|
307
310
|
process_filter_hash(bool_node, expression, field_path)
|
308
311
|
end
|
@@ -33,7 +33,7 @@ module ElasticGraph
|
|
33
33
|
[arg_name, args[schema_element_names.public_send(arg_name)]]
|
34
34
|
end.compact
|
35
35
|
|
36
|
-
graphql_impl = ::GraphQL::Pagination::ArrayConnection.new(nodes, context: context, **relay_args)
|
36
|
+
graphql_impl = ::GraphQL::Pagination::ArrayConnection.new(nodes || [], context: context, **relay_args)
|
37
37
|
new(schema_element_names, graphql_impl)
|
38
38
|
end
|
39
39
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticgraph-graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.0.
|
4
|
+
version: 0.18.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myron Marston
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop-factory_bot
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.40.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
68
|
+
version: 1.40.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: steep
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,22 +98,22 @@ dependencies:
|
|
98
98
|
name: flatware-rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 2.3
|
104
|
-
- - "
|
103
|
+
version: '2.3'
|
104
|
+
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version:
|
106
|
+
version: 2.3.3
|
107
107
|
type: :development
|
108
108
|
prerelease: false
|
109
109
|
version_requirements: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- - "
|
111
|
+
- - "~>"
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version: 2.3
|
114
|
-
- - "
|
113
|
+
version: '2.3'
|
114
|
+
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
116
|
+
version: 2.3.3
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: rspec
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,16 +132,16 @@ dependencies:
|
|
132
132
|
name: super_diff
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
|
-
- - "
|
135
|
+
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: 0.12
|
137
|
+
version: '0.12'
|
138
138
|
type: :development
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
|
-
- - "
|
142
|
+
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: 0.12
|
144
|
+
version: '0.12'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: simplecov
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,42 +160,30 @@ dependencies:
|
|
160
160
|
name: simplecov-console
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
|
-
- - "
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: 0.9.1
|
166
|
-
- - "<"
|
163
|
+
- - "~>"
|
167
164
|
- !ruby/object:Gem::Version
|
168
|
-
version: '
|
165
|
+
version: '0.9'
|
169
166
|
type: :development
|
170
167
|
prerelease: false
|
171
168
|
version_requirements: !ruby/object:Gem::Requirement
|
172
169
|
requirements:
|
173
|
-
- - "
|
174
|
-
- !ruby/object:Gem::Version
|
175
|
-
version: 0.9.1
|
176
|
-
- - "<"
|
170
|
+
- - "~>"
|
177
171
|
- !ruby/object:Gem::Version
|
178
|
-
version: '
|
172
|
+
version: '0.9'
|
179
173
|
- !ruby/object:Gem::Dependency
|
180
174
|
name: httpx
|
181
175
|
requirement: !ruby/object:Gem::Requirement
|
182
176
|
requirements:
|
183
|
-
- - "
|
184
|
-
- !ruby/object:Gem::Version
|
185
|
-
version: 1.2.6
|
186
|
-
- - "<"
|
177
|
+
- - "~>"
|
187
178
|
- !ruby/object:Gem::Version
|
188
|
-
version: '
|
179
|
+
version: '1.3'
|
189
180
|
type: :development
|
190
181
|
prerelease: false
|
191
182
|
version_requirements: !ruby/object:Gem::Requirement
|
192
183
|
requirements:
|
193
|
-
- - "
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
version: 1.2.6
|
196
|
-
- - "<"
|
184
|
+
- - "~>"
|
197
185
|
- !ruby/object:Gem::Version
|
198
|
-
version: '
|
186
|
+
version: '1.3'
|
199
187
|
- !ruby/object:Gem::Dependency
|
200
188
|
name: method_source
|
201
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -228,22 +216,22 @@ dependencies:
|
|
228
216
|
name: vcr
|
229
217
|
requirement: !ruby/object:Gem::Requirement
|
230
218
|
requirements:
|
219
|
+
- - "~>"
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '6.3'
|
231
222
|
- - ">="
|
232
223
|
- !ruby/object:Gem::Version
|
233
224
|
version: 6.3.1
|
234
|
-
- - "<"
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
version: 7.0.0
|
237
225
|
type: :development
|
238
226
|
prerelease: false
|
239
227
|
version_requirements: !ruby/object:Gem::Requirement
|
240
228
|
requirements:
|
229
|
+
- - "~>"
|
230
|
+
- !ruby/object:Gem::Version
|
231
|
+
version: '6.3'
|
241
232
|
- - ">="
|
242
233
|
- !ruby/object:Gem::Version
|
243
234
|
version: 6.3.1
|
244
|
-
- - "<"
|
245
|
-
- !ruby/object:Gem::Version
|
246
|
-
version: 7.0.0
|
247
235
|
- !ruby/object:Gem::Dependency
|
248
236
|
name: factory_bot
|
249
237
|
requirement: !ruby/object:Gem::Requirement
|
@@ -278,118 +266,112 @@ dependencies:
|
|
278
266
|
requirements:
|
279
267
|
- - '='
|
280
268
|
- !ruby/object:Gem::Version
|
281
|
-
version: 0.18.0.
|
269
|
+
version: 0.18.0.2
|
282
270
|
type: :runtime
|
283
271
|
prerelease: false
|
284
272
|
version_requirements: !ruby/object:Gem::Requirement
|
285
273
|
requirements:
|
286
274
|
- - '='
|
287
275
|
- !ruby/object:Gem::Version
|
288
|
-
version: 0.18.0.
|
276
|
+
version: 0.18.0.2
|
289
277
|
- !ruby/object:Gem::Dependency
|
290
278
|
name: elasticgraph-schema_artifacts
|
291
279
|
requirement: !ruby/object:Gem::Requirement
|
292
280
|
requirements:
|
293
281
|
- - '='
|
294
282
|
- !ruby/object:Gem::Version
|
295
|
-
version: 0.18.0.
|
283
|
+
version: 0.18.0.2
|
296
284
|
type: :runtime
|
297
285
|
prerelease: false
|
298
286
|
version_requirements: !ruby/object:Gem::Requirement
|
299
287
|
requirements:
|
300
288
|
- - '='
|
301
289
|
- !ruby/object:Gem::Version
|
302
|
-
version: 0.18.0.
|
290
|
+
version: 0.18.0.2
|
303
291
|
- !ruby/object:Gem::Dependency
|
304
292
|
name: graphql
|
305
293
|
requirement: !ruby/object:Gem::Requirement
|
306
294
|
requirements:
|
307
|
-
- - "
|
308
|
-
- !ruby/object:Gem::Version
|
309
|
-
version: 2.3.7
|
310
|
-
- - "<"
|
295
|
+
- - "~>"
|
311
296
|
- !ruby/object:Gem::Version
|
312
|
-
version:
|
297
|
+
version: 2.3.14
|
313
298
|
type: :runtime
|
314
299
|
prerelease: false
|
315
300
|
version_requirements: !ruby/object:Gem::Requirement
|
316
301
|
requirements:
|
317
|
-
- - "
|
318
|
-
- !ruby/object:Gem::Version
|
319
|
-
version: 2.3.7
|
320
|
-
- - "<"
|
302
|
+
- - "~>"
|
321
303
|
- !ruby/object:Gem::Version
|
322
|
-
version:
|
304
|
+
version: 2.3.14
|
323
305
|
- !ruby/object:Gem::Dependency
|
324
306
|
name: elasticgraph-admin
|
325
307
|
requirement: !ruby/object:Gem::Requirement
|
326
308
|
requirements:
|
327
309
|
- - '='
|
328
310
|
- !ruby/object:Gem::Version
|
329
|
-
version: 0.18.0.
|
311
|
+
version: 0.18.0.2
|
330
312
|
type: :development
|
331
313
|
prerelease: false
|
332
314
|
version_requirements: !ruby/object:Gem::Requirement
|
333
315
|
requirements:
|
334
316
|
- - '='
|
335
317
|
- !ruby/object:Gem::Version
|
336
|
-
version: 0.18.0.
|
318
|
+
version: 0.18.0.2
|
337
319
|
- !ruby/object:Gem::Dependency
|
338
320
|
name: elasticgraph-elasticsearch
|
339
321
|
requirement: !ruby/object:Gem::Requirement
|
340
322
|
requirements:
|
341
323
|
- - '='
|
342
324
|
- !ruby/object:Gem::Version
|
343
|
-
version: 0.18.0.
|
325
|
+
version: 0.18.0.2
|
344
326
|
type: :development
|
345
327
|
prerelease: false
|
346
328
|
version_requirements: !ruby/object:Gem::Requirement
|
347
329
|
requirements:
|
348
330
|
- - '='
|
349
331
|
- !ruby/object:Gem::Version
|
350
|
-
version: 0.18.0.
|
332
|
+
version: 0.18.0.2
|
351
333
|
- !ruby/object:Gem::Dependency
|
352
334
|
name: elasticgraph-opensearch
|
353
335
|
requirement: !ruby/object:Gem::Requirement
|
354
336
|
requirements:
|
355
337
|
- - '='
|
356
338
|
- !ruby/object:Gem::Version
|
357
|
-
version: 0.18.0.
|
339
|
+
version: 0.18.0.2
|
358
340
|
type: :development
|
359
341
|
prerelease: false
|
360
342
|
version_requirements: !ruby/object:Gem::Requirement
|
361
343
|
requirements:
|
362
344
|
- - '='
|
363
345
|
- !ruby/object:Gem::Version
|
364
|
-
version: 0.18.0.
|
346
|
+
version: 0.18.0.2
|
365
347
|
- !ruby/object:Gem::Dependency
|
366
348
|
name: elasticgraph-indexer
|
367
349
|
requirement: !ruby/object:Gem::Requirement
|
368
350
|
requirements:
|
369
351
|
- - '='
|
370
352
|
- !ruby/object:Gem::Version
|
371
|
-
version: 0.18.0.
|
353
|
+
version: 0.18.0.2
|
372
354
|
type: :development
|
373
355
|
prerelease: false
|
374
356
|
version_requirements: !ruby/object:Gem::Requirement
|
375
357
|
requirements:
|
376
358
|
- - '='
|
377
359
|
- !ruby/object:Gem::Version
|
378
|
-
version: 0.18.0.
|
360
|
+
version: 0.18.0.2
|
379
361
|
- !ruby/object:Gem::Dependency
|
380
362
|
name: elasticgraph-schema_definition
|
381
363
|
requirement: !ruby/object:Gem::Requirement
|
382
364
|
requirements:
|
383
365
|
- - '='
|
384
366
|
- !ruby/object:Gem::Version
|
385
|
-
version: 0.18.0.
|
367
|
+
version: 0.18.0.2
|
386
368
|
type: :development
|
387
369
|
prerelease: false
|
388
370
|
version_requirements: !ruby/object:Gem::Requirement
|
389
371
|
requirements:
|
390
372
|
- - '='
|
391
373
|
- !ruby/object:Gem::Version
|
392
|
-
version: 0.18.0.
|
374
|
+
version: 0.18.0.2
|
393
375
|
description:
|
394
376
|
email:
|
395
377
|
- myron@squareup.com
|