elasticgraph-datastore_core 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 329c6a8e1bd0d0128b64f11958a6984f9387f9a27d8df5a4c42e7b5972047e6e
4
- data.tar.gz: d946726126d2eb038342ba4e856b1d680acfbbd05368cd46d8035df406927388
3
+ metadata.gz: 15e92571c4944077ee57e9441f0ebd46e2a04bce29796fea04c8e67176c1688b
4
+ data.tar.gz: 97b028e13d9d4f295c88f1592002b0fab52b1436dedb2bd03eb15dfe372bf406
5
5
  SHA512:
6
- metadata.gz: 8ff4e54a55760cfbf4d915e7ac9d57dd0b0d308d6a63f578b999fa65cf659f48fb5408dcea80217bea1d21970603d8c1ae2559dd757dd004c517fedf67d015e1
7
- data.tar.gz: 7840beabbb5562ab7d07c6ef9bde2ab2efd4510a31493be2d2930fe31eb19e9b836d469df4ca51e247f528dbcee31acfae519dcc48a6b8bfacdfab2bf151c5d3
6
+ metadata.gz: 411cb670ff7cb3dda9ea3cbc805310d394070da854f4b121f1f5a265003b18a3326a1623fdebb1ba5fddbe58e7f428c5a5869d58cbc53dc8824d71427ea8a4d6
7
+ data.tar.gz: c3d04d780b149c97b5e66c888cf066b5282f6bf18ad6b3e2e3771648d263d873433ad3d3380a381a3bdcd7ca33f7b619777e097e185dda568d5265bcbb46b4fb
@@ -9,7 +9,7 @@
9
9
  require "elastic_graph/datastore_core/configuration/client_faraday_adapter"
10
10
  require "elastic_graph/datastore_core/configuration/cluster_definition"
11
11
  require "elastic_graph/datastore_core/configuration/index_definition"
12
- require "elastic_graph/error"
12
+ require "elastic_graph/errors"
13
13
 
14
14
  module ElasticGraph
15
15
  class DatastoreCore
@@ -40,7 +40,7 @@ module ElasticGraph
40
40
  extra_keys = parsed_yaml.keys - EXPECTED_KEYS
41
41
 
42
42
  unless extra_keys.empty?
43
- raise ConfigError, "Unknown `datastore` config settings: #{extra_keys.join(", ")}"
43
+ raise Errors::ConfigError, "Unknown `datastore` config settings: #{extra_keys.join(", ")}"
44
44
  end
45
45
 
46
46
  new(
@@ -22,7 +22,7 @@ module ElasticGraph
22
22
  extra_keys = parsed_yaml.keys - EXPECTED_KEYS
23
23
 
24
24
  unless extra_keys.empty?
25
- raise ConfigError, "Unknown `datastore.client_faraday_adapter` config settings: #{extra_keys.join(", ")}"
25
+ raise Errors::ConfigError, "Unknown `datastore.client_faraday_adapter` config settings: #{extra_keys.join(", ")}"
26
26
  end
27
27
 
28
28
  new(
@@ -6,7 +6,7 @@
6
6
  #
7
7
  # frozen_string_literal: true
8
8
 
9
- require "elastic_graph/error"
9
+ require "elastic_graph/errors"
10
10
 
11
11
  module ElasticGraph
12
12
  class DatastoreCore
@@ -16,7 +16,7 @@ module ElasticGraph
16
16
  extra_keys = hash.keys - EXPECTED_KEYS
17
17
 
18
18
  unless extra_keys.empty?
19
- raise ConfigError, "Unknown `datastore.clusters` config settings: #{extra_keys.join(", ")}"
19
+ raise Errors::ConfigError, "Unknown `datastore.clusters` config settings: #{extra_keys.join(", ")}"
20
20
  end
21
21
 
22
22
  backend_name = hash["backend"]
@@ -29,7 +29,7 @@ module ElasticGraph
29
29
  require "elastic_graph/opensearch/client"
30
30
  OpenSearch::Client
31
31
  else
32
- raise ConfigError, "Unknown `datastore.clusters` backend: `#{backend_name}`. Valid backends are `elasticsearch` and `opensearch`."
32
+ raise Errors::ConfigError, "Unknown `datastore.clusters` backend: `#{backend_name}`. Valid backends are `elasticsearch` and `opensearch`."
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/support/time_set"
10
- require "elastic_graph/error"
10
+ require "elastic_graph/errors"
11
11
  require "time"
12
12
 
13
13
  module ElasticGraph
@@ -50,7 +50,7 @@ module ElasticGraph
50
50
  s1.intersect?(s2)
51
51
  end
52
52
 
53
- raise ConfigError, "Your configured `custom_timestamp_ranges` are not disjoint, as required."
53
+ raise Errors::ConfigError, "Your configured `custom_timestamp_ranges` are not disjoint, as required."
54
54
  end
55
55
 
56
56
  def without_env_overrides
@@ -83,7 +83,7 @@ module ElasticGraph
83
83
  super
84
84
 
85
85
  if time_set.empty?
86
- raise ConfigError, "Custom timestamp range with suffix `#{index_name_suffix}` is invalid: no timestamps exist in it."
86
+ raise Errors::ConfigError, "Custom timestamp range with suffix `#{index_name_suffix}` is invalid: no timestamps exist in it."
87
87
  end
88
88
  end
89
89
 
@@ -95,7 +95,7 @@ module ElasticGraph
95
95
 
96
96
  private_class_method def self.from(index_name_suffix:, setting_overrides:, **predicates_hash)
97
97
  if predicates_hash.empty?
98
- raise ConfigSettingNotSetError, "Custom timestamp range with suffix `#{index_name_suffix}` lacks boundary definitions."
98
+ raise Errors::ConfigSettingNotSetError, "Custom timestamp range with suffix `#{index_name_suffix}` lacks boundary definitions."
99
99
  end
100
100
 
101
101
  range_options = predicates_hash.transform_values { |iso8601_string| ::Time.iso8601(iso8601_string) }
@@ -7,7 +7,7 @@
7
7
  # frozen_string_literal: true
8
8
 
9
9
  require "elastic_graph/datastore_core/index_config_normalizer"
10
- require "elastic_graph/error"
10
+ require "elastic_graph/errors"
11
11
  require "elastic_graph/support/hash_util"
12
12
 
13
13
  module ElasticGraph
@@ -33,7 +33,7 @@ module ElasticGraph
33
33
  return nil unless has_custom_routing?
34
34
 
35
35
  unless route_with_path
36
- raise ConfigError, "`#{self}` uses custom routing, but `route_with_path` is misconfigured (was `nil`)"
36
+ raise Errors::ConfigError, "`#{self}` uses custom routing, but `route_with_path` is misconfigured (was `nil`)"
37
37
  end
38
38
 
39
39
  config_routing_value = Support::HashUtil.fetch_value_at_path(prepared_record, route_with_path).to_s
@@ -81,7 +81,7 @@ module ElasticGraph
81
81
 
82
82
  def clusters_to_index_into
83
83
  env_index_config.index_into_clusters.tap do |clusters_to_index_into|
84
- raise ConfigError, "No `index_into_clusters` defined for #{self} in env_index_config" unless clusters_to_index_into
84
+ raise Errors::ConfigError, "No `index_into_clusters` defined for #{self} in env_index_config" unless clusters_to_index_into
85
85
  end
86
86
  end
87
87
 
@@ -11,7 +11,7 @@ require "elastic_graph/datastore_core/index_config_normalizer"
11
11
  require "elastic_graph/datastore_core/index_definition/base"
12
12
  require "elastic_graph/datastore_core/index_definition/index"
13
13
  require "elastic_graph/datastore_core/index_definition/rollover_index"
14
- require "elastic_graph/error"
14
+ require "elastic_graph/errors"
15
15
  require "elastic_graph/support/memoizable_data"
16
16
  require "elastic_graph/support/time_set"
17
17
  require "elastic_graph/support/time_util"
@@ -77,7 +77,7 @@ module ElasticGraph
77
77
  # `custom_time_sets`) and also indices that have been auto-created from the template.
78
78
  #
79
79
  # Note that there can be discrepancies between the configuration settings and the indices in
80
- # the database. Sometimes this is planned/expected (e.g. such as when invoking `elasticgraph-admin`
80
+ # the datastore. Sometimes this is planned/expected (e.g. such as when invoking `elasticgraph-admin`
81
81
  # to configure an index newly defined in configuration) and in other cases it's not.
82
82
  #
83
83
  # The `only_if_exists` argument controls how a discrepancy is treated.
@@ -133,7 +133,7 @@ module ElasticGraph
133
133
 
134
134
  def after_initialize
135
135
  unless timestamp_field_path && ROLLOVER_SUFFIX_FORMATS_BY_FREQUENCY.key?(frequency)
136
- raise SchemaError, "Rollover index config 'timestamp_field' or 'frequency' is invalid."
136
+ raise Errors::SchemaError, "Rollover index config 'timestamp_field' or 'frequency' is invalid."
137
137
  end
138
138
  end
139
139
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  require "elastic_graph/datastore_core/index_definition/index"
10
10
  require "elastic_graph/datastore_core/index_definition/rollover_index_template"
11
- require "elastic_graph/error"
11
+ require "elastic_graph/errors"
12
12
 
13
13
  module ElasticGraph
14
14
  class DatastoreCore
@@ -20,7 +20,7 @@ module ElasticGraph
20
20
  module IndexDefinition
21
21
  def self.with(name:, runtime_metadata:, config:, datastore_clients_by_name:)
22
22
  if (env_index_config = config.index_definitions[name]).nil?
23
- raise ConfigError, "Configuration does not provide an index definition for `#{name}`, " \
23
+ raise Errors::ConfigError, "Configuration does not provide an index definition for `#{name}`, " \
24
24
  "but it is required so we can identify the datastore cluster(s) to query and index into."
25
25
  end
26
26
 
metadata CHANGED
@@ -1,14 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticgraph-datastore_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0.4
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-09-06 00:00:00.000000000 Z
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.0'
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.0'
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.40.0
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.40.0
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.7'
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.7'
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.12'
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.12'
146
+ version: '0.13'
145
147
  - !ruby/object:Gem::Dependency
146
148
  name: simplecov
147
149
  requirement: !ruby/object:Gem::Requirement
@@ -252,98 +254,98 @@ dependencies:
252
254
  requirements:
253
255
  - - "~>"
254
256
  - !ruby/object:Gem::Version
255
- version: '3.4'
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.4'
264
+ version: '3.5'
263
265
  - !ruby/object:Gem::Dependency
264
266
  name: elasticgraph-schema_artifacts
265
267
  requirement: !ruby/object:Gem::Requirement
266
268
  requirements:
267
269
  - - '='
268
270
  - !ruby/object:Gem::Version
269
- version: 0.18.0.4
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.18.0.4
278
+ version: 0.19.0.0.rc1
277
279
  - !ruby/object:Gem::Dependency
278
280
  name: elasticgraph-support
279
281
  requirement: !ruby/object:Gem::Requirement
280
282
  requirements:
281
283
  - - '='
282
284
  - !ruby/object:Gem::Version
283
- version: 0.18.0.4
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.18.0.4
292
+ version: 0.19.0.0.rc1
291
293
  - !ruby/object:Gem::Dependency
292
294
  name: elasticgraph-admin
293
295
  requirement: !ruby/object:Gem::Requirement
294
296
  requirements:
295
297
  - - '='
296
298
  - !ruby/object:Gem::Version
297
- version: 0.18.0.4
299
+ version: 0.19.0.0.rc1
298
300
  type: :development
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.18.0.4
306
+ version: 0.19.0.0.rc1
305
307
  - !ruby/object:Gem::Dependency
306
308
  name: elasticgraph-elasticsearch
307
309
  requirement: !ruby/object:Gem::Requirement
308
310
  requirements:
309
311
  - - '='
310
312
  - !ruby/object:Gem::Version
311
- version: 0.18.0.4
313
+ version: 0.19.0.0.rc1
312
314
  type: :development
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.18.0.4
320
+ version: 0.19.0.0.rc1
319
321
  - !ruby/object:Gem::Dependency
320
322
  name: elasticgraph-opensearch
321
323
  requirement: !ruby/object:Gem::Requirement
322
324
  requirements:
323
325
  - - '='
324
326
  - !ruby/object:Gem::Version
325
- version: 0.18.0.4
327
+ version: 0.19.0.0.rc1
326
328
  type: :development
327
329
  prerelease: false
328
330
  version_requirements: !ruby/object:Gem::Requirement
329
331
  requirements:
330
332
  - - '='
331
333
  - !ruby/object:Gem::Version
332
- version: 0.18.0.4
334
+ version: 0.19.0.0.rc1
333
335
  - !ruby/object:Gem::Dependency
334
336
  name: elasticgraph-schema_definition
335
337
  requirement: !ruby/object:Gem::Requirement
336
338
  requirements:
337
339
  - - '='
338
340
  - !ruby/object:Gem::Version
339
- version: 0.18.0.4
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.18.0.4
348
+ version: 0.19.0.0.rc1
347
349
  description:
348
350
  email:
349
351
  - myron@squareup.com
@@ -365,10 +367,15 @@ files:
365
367
  - lib/elastic_graph/datastore_core/index_definition/index.rb
366
368
  - lib/elastic_graph/datastore_core/index_definition/rollover_index.rb
367
369
  - lib/elastic_graph/datastore_core/index_definition/rollover_index_template.rb
368
- homepage:
370
+ homepage: https://block.github.io/elasticgraph/
369
371
  licenses:
370
372
  - MIT
371
373
  metadata:
374
+ bug_tracker_uri: https://github.com/block/elasticgraph/issues
375
+ changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.0.0.rc1
376
+ documentation_uri: https://block.github.io/elasticgraph/docs/main/
377
+ homepage_uri: https://block.github.io/elasticgraph/
378
+ source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.0.0.rc1/elasticgraph-datastore_core
372
379
  gem_category: core
373
380
  post_install_message:
374
381
  rdoc_options: []