elasticgraph-graphql 0.18.0.1 → 0.18.0.3

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: b9832ca5ee58e052ef3428907d2bc277cdeba8b567eb3a3861609d0b97799ff7
4
- data.tar.gz: 74f29fcd9a89007b34a2b4be5ba332dabc4ff7cb38585a0173e89541061a65a6
3
+ metadata.gz: a520631b7964685b34d5089eb26772a9754e955ac53ce7706d9a844a06c281c3
4
+ data.tar.gz: 02e9144c3197c43a208c100fcc3a340301caf041fd12783b4cd08f37d3f28645
5
5
  SHA512:
6
- metadata.gz: 9ff8132bb4c647b2f23669d7c8e5993da3550b83fc15113ebcd0234a19f6f1faf79bfe2127c03d5cf19f39beadf3f96abcbbd18e99df22dd6bba3d1931e86524
7
- data.tar.gz: 7ac54e755f0d20da132d7ff2ca03a9c3f61b2c182c781408e50ba9ac2e20c45a12dbf6dd235010b73675ee8b6be1bc7d352d868dd8c0aa982671b85e23bf41ed
6
+ metadata.gz: 9540df01b507f1b3bcdae32699c3cf830b900507953f70504515afd0c5c7bf7160fb13b78750a272da823e81795d247c56c47ba7bff0d977193dad744ed7e6ba
7
+ data.tar.gz: 68e4cee0d55d42693641901bafc0e811a7f596b831d438ce9882ae259c0006ac12580726785c9fa2918e1abb0cb5b804da088f7bef4f83a4220958b07b73fbec
@@ -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", ">= 2.3.7", "< 2.4"
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
@@ -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.1
4
+ version: 0.18.0.3
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-08-28 00:00:00.000000000 Z
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.39.0
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.39.0
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.2
104
- - - "<"
103
+ version: '2.3'
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
- version: '3.0'
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.2
114
- - - "<"
113
+ version: '2.3'
114
+ - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '3.0'
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.1
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.1
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: '1.0'
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: '1.0'
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: '2.0'
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: '2.0'
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.1
269
+ version: 0.18.0.3
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.1
276
+ version: 0.18.0.3
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.1
283
+ version: 0.18.0.3
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.1
290
+ version: 0.18.0.3
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: '2.4'
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: '2.4'
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.1
311
+ version: 0.18.0.3
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.1
318
+ version: 0.18.0.3
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.1
325
+ version: 0.18.0.3
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.1
332
+ version: 0.18.0.3
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.1
339
+ version: 0.18.0.3
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.1
346
+ version: 0.18.0.3
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.1
353
+ version: 0.18.0.3
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.1
360
+ version: 0.18.0.3
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.1
367
+ version: 0.18.0.3
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.1
374
+ version: 0.18.0.3
393
375
  description:
394
376
  email:
395
377
  - myron@squareup.com