elasticgraph-indexer 0.18.0.4 → 0.19.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elastic_graph/indexer/config.rb +2 -2
- data/lib/elastic_graph/indexer/datastore_indexing_router.rb +3 -3
- data/lib/elastic_graph/indexer/event_id.rb +1 -1
- data/lib/elastic_graph/indexer/failed_event_error.rb +2 -2
- data/lib/elastic_graph/indexer/indexing_failures_error.rb +2 -2
- data/lib/elastic_graph/indexer/indexing_preparers/integer.rb +1 -1
- data/lib/elastic_graph/indexer/operation/update.rb +1 -1
- data/lib/elastic_graph/indexer/processor.rb +1 -1
- data/lib/elastic_graph/indexer/record_preparer.rb +1 -1
- metadata +36 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c59f7c69235d07fbeb6d1b1eb387d9b5e2c0f39b855fc8ab47563d0ed6fed774
|
4
|
+
data.tar.gz: 3fa7a6d2046b0e25646ad51cfd56d0818bf2ce144be6b940dede49f4fbf0eb2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fbf9a3b3cedf1edf8bdce0dddf5039d19e168fa1de3fefcfc27b9239a757c59f493d03056f18162738527d5df21d641344776dd12c9871a62649c24604cf82f
|
7
|
+
data.tar.gz: d72f758d86abf75a3e4ca5b9196a9ce843df46f236b96fd894f939cdcf5d9598a3c222d764ab755e48d7cb950489e5767903532aa5cbe7ea996c38a4b643fec4
|
@@ -6,7 +6,7 @@
|
|
6
6
|
#
|
7
7
|
# frozen_string_literal: true
|
8
8
|
|
9
|
-
require "elastic_graph/
|
9
|
+
require "elastic_graph/errors"
|
10
10
|
require "elastic_graph/indexer/event_id"
|
11
11
|
|
12
12
|
module ElasticGraph
|
@@ -29,7 +29,7 @@ module ElasticGraph
|
|
29
29
|
extra_keys = hash.keys - EXPECTED_KEYS
|
30
30
|
|
31
31
|
unless extra_keys.empty?
|
32
|
-
raise ConfigError, "Unknown `indexer` config settings: #{extra_keys.join(", ")}"
|
32
|
+
raise Errors::ConfigError, "Unknown `indexer` config settings: #{extra_keys.join(", ")}"
|
33
33
|
end
|
34
34
|
|
35
35
|
new(
|
@@ -7,7 +7,7 @@
|
|
7
7
|
# frozen_string_literal: true
|
8
8
|
|
9
9
|
require "elastic_graph/constants"
|
10
|
-
require "elastic_graph/
|
10
|
+
require "elastic_graph/errors"
|
11
11
|
require "elastic_graph/datastore_core/index_config_normalizer"
|
12
12
|
require "elastic_graph/indexer/event_id"
|
13
13
|
require "elastic_graph/indexer/hash_differ"
|
@@ -298,7 +298,7 @@ module ElasticGraph
|
|
298
298
|
end
|
299
299
|
end
|
300
300
|
else
|
301
|
-
raise IdentifyDocumentVersionsFailedError, "Got #{failures.size} failure(s) while querying the datastore " \
|
301
|
+
raise Errors::IdentifyDocumentVersionsFailedError, "Got #{failures.size} failure(s) while querying the datastore " \
|
302
302
|
"for document versions:\n\n#{failures.join("\n")}"
|
303
303
|
end
|
304
304
|
end
|
@@ -337,7 +337,7 @@ module ElasticGraph
|
|
337
337
|
EOS
|
338
338
|
end.join("\n\n")
|
339
339
|
|
340
|
-
raise ConfigError, "Datastore index mappings are incomplete compared to the current schema. " \
|
340
|
+
raise Errors::ConfigError, "Datastore index mappings are incomplete compared to the current schema. " \
|
341
341
|
"The diff below uses the datastore index mapping as the base, and shows the expected mapping as a diff. " \
|
342
342
|
"\n\n#{formatted_diffs}"
|
343
343
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
#
|
7
7
|
# frozen_string_literal: true
|
8
8
|
|
9
|
-
require "elastic_graph/
|
9
|
+
require "elastic_graph/errors"
|
10
10
|
require "elastic_graph/indexer/event_id"
|
11
11
|
|
12
12
|
module ElasticGraph
|
@@ -14,7 +14,7 @@ module ElasticGraph
|
|
14
14
|
# Indicates an event that we attempted to process which failed for some reason. It may have
|
15
15
|
# failed due to a validation issue before we even attempted to write it to the datastore, or it
|
16
16
|
# could have failed in the datastore itself.
|
17
|
-
class FailedEventError < Error
|
17
|
+
class FailedEventError < Errors::Error
|
18
18
|
# @dynamic main_message, event, operations
|
19
19
|
|
20
20
|
# The "main" part of the error message (without the `full_id` portion).
|
@@ -6,11 +6,11 @@
|
|
6
6
|
#
|
7
7
|
# frozen_string_literal: true
|
8
8
|
|
9
|
-
require "elastic_graph/
|
9
|
+
require "elastic_graph/errors"
|
10
10
|
|
11
11
|
module ElasticGraph
|
12
12
|
class Indexer
|
13
|
-
class IndexingFailuresError < Error
|
13
|
+
class IndexingFailuresError < Errors::Error
|
14
14
|
# Builds an `IndexingFailuresError` with a nicely formatted message for the given array of `FailedEventError`.
|
15
15
|
def self.for(failures:, events:)
|
16
16
|
summary = "Got #{failures.size} failure(s) from #{events.size} event(s):"
|
@@ -33,7 +33,7 @@ module ElasticGraph
|
|
33
33
|
def self.prepare_for_indexing(value)
|
34
34
|
integer = value.to_i
|
35
35
|
return integer if value == integer
|
36
|
-
raise IndexOperationError, "Cannot safely coerce `#{value.inspect}` to an integer"
|
36
|
+
raise Errors::IndexOperationError, "Cannot safely coerce `#{value.inspect}` to an integer"
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
@@ -7,7 +7,7 @@
|
|
7
7
|
# frozen_string_literal: true
|
8
8
|
|
9
9
|
require "elastic_graph/constants"
|
10
|
-
require "elastic_graph/
|
10
|
+
require "elastic_graph/errors"
|
11
11
|
require "elastic_graph/indexer/event_id"
|
12
12
|
require "elastic_graph/indexer/operation/count_accumulator"
|
13
13
|
require "elastic_graph/indexer/operation/result"
|
metadata
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticgraph-indexer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myron Marston
|
8
|
+
- Ben VandenBos
|
9
|
+
- Block Engineering
|
8
10
|
autorequire:
|
9
11
|
bindir: exe
|
10
12
|
cert_chain: []
|
11
|
-
date: 2024-
|
13
|
+
date: 2024-12-03 00:00:00.000000000 Z
|
12
14
|
dependencies:
|
13
15
|
- !ruby/object:Gem::Dependency
|
14
16
|
name: rubocop-factory_bot
|
@@ -44,42 +46,42 @@ dependencies:
|
|
44
46
|
requirements:
|
45
47
|
- - "~>"
|
46
48
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
49
|
+
version: '3.1'
|
48
50
|
type: :development
|
49
51
|
prerelease: false
|
50
52
|
version_requirements: !ruby/object:Gem::Requirement
|
51
53
|
requirements:
|
52
54
|
- - "~>"
|
53
55
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
56
|
+
version: '3.1'
|
55
57
|
- !ruby/object:Gem::Dependency
|
56
58
|
name: standard
|
57
59
|
requirement: !ruby/object:Gem::Requirement
|
58
60
|
requirements:
|
59
61
|
- - "~>"
|
60
62
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
63
|
+
version: 1.41.0
|
62
64
|
type: :development
|
63
65
|
prerelease: false
|
64
66
|
version_requirements: !ruby/object:Gem::Requirement
|
65
67
|
requirements:
|
66
68
|
- - "~>"
|
67
69
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
70
|
+
version: 1.41.0
|
69
71
|
- !ruby/object:Gem::Dependency
|
70
72
|
name: steep
|
71
73
|
requirement: !ruby/object:Gem::Requirement
|
72
74
|
requirements:
|
73
75
|
- - "~>"
|
74
76
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
77
|
+
version: '1.8'
|
76
78
|
type: :development
|
77
79
|
prerelease: false
|
78
80
|
version_requirements: !ruby/object:Gem::Requirement
|
79
81
|
requirements:
|
80
82
|
- - "~>"
|
81
83
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
84
|
+
version: '1.8'
|
83
85
|
- !ruby/object:Gem::Dependency
|
84
86
|
name: coderay
|
85
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,14 +136,14 @@ dependencies:
|
|
134
136
|
requirements:
|
135
137
|
- - "~>"
|
136
138
|
- !ruby/object:Gem::Version
|
137
|
-
version: '0.
|
139
|
+
version: '0.13'
|
138
140
|
type: :development
|
139
141
|
prerelease: false
|
140
142
|
version_requirements: !ruby/object:Gem::Requirement
|
141
143
|
requirements:
|
142
144
|
- - "~>"
|
143
145
|
- !ruby/object:Gem::Version
|
144
|
-
version: '0.
|
146
|
+
version: '0.13'
|
145
147
|
- !ruby/object:Gem::Dependency
|
146
148
|
name: simplecov
|
147
149
|
requirement: !ruby/object:Gem::Requirement
|
@@ -252,70 +254,70 @@ dependencies:
|
|
252
254
|
requirements:
|
253
255
|
- - "~>"
|
254
256
|
- !ruby/object:Gem::Version
|
255
|
-
version: '3.
|
257
|
+
version: '3.5'
|
256
258
|
type: :development
|
257
259
|
prerelease: false
|
258
260
|
version_requirements: !ruby/object:Gem::Requirement
|
259
261
|
requirements:
|
260
262
|
- - "~>"
|
261
263
|
- !ruby/object:Gem::Version
|
262
|
-
version: '3.
|
264
|
+
version: '3.5'
|
263
265
|
- !ruby/object:Gem::Dependency
|
264
266
|
name: elasticgraph-datastore_core
|
265
267
|
requirement: !ruby/object:Gem::Requirement
|
266
268
|
requirements:
|
267
269
|
- - '='
|
268
270
|
- !ruby/object:Gem::Version
|
269
|
-
version: 0.
|
271
|
+
version: 0.19.0.0.rc1
|
270
272
|
type: :runtime
|
271
273
|
prerelease: false
|
272
274
|
version_requirements: !ruby/object:Gem::Requirement
|
273
275
|
requirements:
|
274
276
|
- - '='
|
275
277
|
- !ruby/object:Gem::Version
|
276
|
-
version: 0.
|
278
|
+
version: 0.19.0.0.rc1
|
277
279
|
- !ruby/object:Gem::Dependency
|
278
280
|
name: elasticgraph-json_schema
|
279
281
|
requirement: !ruby/object:Gem::Requirement
|
280
282
|
requirements:
|
281
283
|
- - '='
|
282
284
|
- !ruby/object:Gem::Version
|
283
|
-
version: 0.
|
285
|
+
version: 0.19.0.0.rc1
|
284
286
|
type: :runtime
|
285
287
|
prerelease: false
|
286
288
|
version_requirements: !ruby/object:Gem::Requirement
|
287
289
|
requirements:
|
288
290
|
- - '='
|
289
291
|
- !ruby/object:Gem::Version
|
290
|
-
version: 0.
|
292
|
+
version: 0.19.0.0.rc1
|
291
293
|
- !ruby/object:Gem::Dependency
|
292
294
|
name: elasticgraph-schema_artifacts
|
293
295
|
requirement: !ruby/object:Gem::Requirement
|
294
296
|
requirements:
|
295
297
|
- - '='
|
296
298
|
- !ruby/object:Gem::Version
|
297
|
-
version: 0.
|
299
|
+
version: 0.19.0.0.rc1
|
298
300
|
type: :runtime
|
299
301
|
prerelease: false
|
300
302
|
version_requirements: !ruby/object:Gem::Requirement
|
301
303
|
requirements:
|
302
304
|
- - '='
|
303
305
|
- !ruby/object:Gem::Version
|
304
|
-
version: 0.
|
306
|
+
version: 0.19.0.0.rc1
|
305
307
|
- !ruby/object:Gem::Dependency
|
306
308
|
name: elasticgraph-support
|
307
309
|
requirement: !ruby/object:Gem::Requirement
|
308
310
|
requirements:
|
309
311
|
- - '='
|
310
312
|
- !ruby/object:Gem::Version
|
311
|
-
version: 0.
|
313
|
+
version: 0.19.0.0.rc1
|
312
314
|
type: :runtime
|
313
315
|
prerelease: false
|
314
316
|
version_requirements: !ruby/object:Gem::Requirement
|
315
317
|
requirements:
|
316
318
|
- - '='
|
317
319
|
- !ruby/object:Gem::Version
|
318
|
-
version: 0.
|
320
|
+
version: 0.19.0.0.rc1
|
319
321
|
- !ruby/object:Gem::Dependency
|
320
322
|
name: hashdiff
|
321
323
|
requirement: !ruby/object:Gem::Requirement
|
@@ -336,56 +338,56 @@ dependencies:
|
|
336
338
|
requirements:
|
337
339
|
- - '='
|
338
340
|
- !ruby/object:Gem::Version
|
339
|
-
version: 0.
|
341
|
+
version: 0.19.0.0.rc1
|
340
342
|
type: :development
|
341
343
|
prerelease: false
|
342
344
|
version_requirements: !ruby/object:Gem::Requirement
|
343
345
|
requirements:
|
344
346
|
- - '='
|
345
347
|
- !ruby/object:Gem::Version
|
346
|
-
version: 0.
|
348
|
+
version: 0.19.0.0.rc1
|
347
349
|
- !ruby/object:Gem::Dependency
|
348
350
|
name: elasticgraph-elasticsearch
|
349
351
|
requirement: !ruby/object:Gem::Requirement
|
350
352
|
requirements:
|
351
353
|
- - '='
|
352
354
|
- !ruby/object:Gem::Version
|
353
|
-
version: 0.
|
355
|
+
version: 0.19.0.0.rc1
|
354
356
|
type: :development
|
355
357
|
prerelease: false
|
356
358
|
version_requirements: !ruby/object:Gem::Requirement
|
357
359
|
requirements:
|
358
360
|
- - '='
|
359
361
|
- !ruby/object:Gem::Version
|
360
|
-
version: 0.
|
362
|
+
version: 0.19.0.0.rc1
|
361
363
|
- !ruby/object:Gem::Dependency
|
362
364
|
name: elasticgraph-opensearch
|
363
365
|
requirement: !ruby/object:Gem::Requirement
|
364
366
|
requirements:
|
365
367
|
- - '='
|
366
368
|
- !ruby/object:Gem::Version
|
367
|
-
version: 0.
|
369
|
+
version: 0.19.0.0.rc1
|
368
370
|
type: :development
|
369
371
|
prerelease: false
|
370
372
|
version_requirements: !ruby/object:Gem::Requirement
|
371
373
|
requirements:
|
372
374
|
- - '='
|
373
375
|
- !ruby/object:Gem::Version
|
374
|
-
version: 0.
|
376
|
+
version: 0.19.0.0.rc1
|
375
377
|
- !ruby/object:Gem::Dependency
|
376
378
|
name: elasticgraph-schema_definition
|
377
379
|
requirement: !ruby/object:Gem::Requirement
|
378
380
|
requirements:
|
379
381
|
- - '='
|
380
382
|
- !ruby/object:Gem::Version
|
381
|
-
version: 0.
|
383
|
+
version: 0.19.0.0.rc1
|
382
384
|
type: :development
|
383
385
|
prerelease: false
|
384
386
|
version_requirements: !ruby/object:Gem::Requirement
|
385
387
|
requirements:
|
386
388
|
- - '='
|
387
389
|
- !ruby/object:Gem::Version
|
388
|
-
version: 0.
|
390
|
+
version: 0.19.0.0.rc1
|
389
391
|
description:
|
390
392
|
email:
|
391
393
|
- myron@squareup.com
|
@@ -415,10 +417,15 @@ files:
|
|
415
417
|
- lib/elastic_graph/indexer/record_preparer.rb
|
416
418
|
- lib/elastic_graph/indexer/spec_support/event_matcher.rb
|
417
419
|
- lib/elastic_graph/indexer/test_support/converters.rb
|
418
|
-
homepage:
|
420
|
+
homepage: https://block.github.io/elasticgraph/
|
419
421
|
licenses:
|
420
422
|
- MIT
|
421
423
|
metadata:
|
424
|
+
bug_tracker_uri: https://github.com/block/elasticgraph/issues
|
425
|
+
changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.0.0.rc1
|
426
|
+
documentation_uri: https://block.github.io/elasticgraph/docs/main/
|
427
|
+
homepage_uri: https://block.github.io/elasticgraph/
|
428
|
+
source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.0.0.rc1/elasticgraph-indexer
|
422
429
|
gem_category: core
|
423
430
|
post_install_message:
|
424
431
|
rdoc_options: []
|