elasticgraph-admin 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/admin/cluster_configurator/cluster_settings_manager.rb +2 -2
- data/lib/elastic_graph/admin/cluster_configurator/script_configurator.rb +1 -1
- data/lib/elastic_graph/admin/cluster_configurator.rb +2 -2
- data/lib/elastic_graph/admin/rake_tasks.rb +2 -2
- metadata +34 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7a35af5471f4caf7dc052843c74b6cd5dec09b2ff07737c4110577edd293eee
|
4
|
+
data.tar.gz: b4b8662f18abb3073e9906e424f5b8f0d23a25b3b98f75754f13d0d06f4bbe50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edebfed85c6461752fb5f7e5f2508d3464affb84136660b45efdab49345658fd856e39e1eac150a314bf07df6c6c277e36b9193977315f8785aea4b3519a58f7
|
7
|
+
data.tar.gz: 3171e4285f7a4fd8df9b43c7a01ab2ccf15a305c8ec134b0e7521fa0aeba3b8730f34b5aa646d310ac7ce7b185e502d04deb19db975e1ac7daa4566e394ce297
|
@@ -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
|
|
11
11
|
module ElasticGraph
|
12
12
|
class Admin
|
@@ -82,7 +82,7 @@ module ElasticGraph
|
|
82
82
|
|
83
83
|
def datastore_client_named(cluster_name)
|
84
84
|
@datastore_clients_by_name.fetch(cluster_name) do
|
85
|
-
raise ClusterOperationError,
|
85
|
+
raise Errors::ClusterOperationError,
|
86
86
|
"Unknown datastore cluster name: `#{cluster_name}`. Valid cluster names: #{@datastore_clients_by_name.keys}"
|
87
87
|
end
|
88
88
|
end
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
require "elastic_graph/admin/cluster_configurator/script_configurator"
|
10
10
|
require "elastic_graph/admin/index_definition_configurator"
|
11
|
-
require "elastic_graph/
|
11
|
+
require "elastic_graph/errors"
|
12
12
|
require "stringio"
|
13
13
|
|
14
14
|
module ElasticGraph
|
@@ -55,7 +55,7 @@ module ElasticGraph
|
|
55
55
|
"#{index + 1}): #{error}"
|
56
56
|
end.join("\n#{"=" * 80}\n\n")
|
57
57
|
|
58
|
-
raise ClusterOperationError, "Got #{errors.size} validation error(s):\n\n#{error_descriptions}"
|
58
|
+
raise Errors::ClusterOperationError, "Got #{errors.size} validation error(s):\n\n#{error_descriptions}"
|
59
59
|
end
|
60
60
|
|
61
61
|
script_configurators.each(&:configure!)
|
@@ -77,12 +77,12 @@ module ElasticGraph
|
|
77
77
|
index_def_name = args.fetch(:index_def_name)
|
78
78
|
cluster_name = args.fetch(:cluster_name)
|
79
79
|
datastore_client = admin.datastore_core.clients_by_name.fetch(cluster_name) do |key|
|
80
|
-
raise IndexOperationError, "Cluster named `#{key}` does not exist. Valid clusters: #{admin.datastore_core.clients_by_name.keys}."
|
80
|
+
raise Errors::IndexOperationError, "Cluster named `#{key}` does not exist. Valid clusters: #{admin.datastore_core.clients_by_name.keys}."
|
81
81
|
end
|
82
82
|
|
83
83
|
index_def = admin.datastore_core.index_definitions_by_name.fetch(index_def_name)
|
84
84
|
unless prototype_index_names.include?(index_def.name)
|
85
|
-
raise IndexOperationError, "Unable to drop live index #{index_def_name}. Deleting a live index is extremely dangerous. " \
|
85
|
+
raise Errors::IndexOperationError, "Unable to drop live index #{index_def_name}. Deleting a live index is extremely dangerous. " \
|
86
86
|
"Please ensure this is indeed intended, add the index name to the `prototype_index_names` list and retry."
|
87
87
|
end
|
88
88
|
|
metadata
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticgraph-admin
|
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-indexer
|
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: rake
|
321
323
|
requirement: !ruby/object:Gem::Requirement
|
@@ -336,42 +338,42 @@ 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-opensearch
|
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-schema_definition
|
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
|
description:
|
376
378
|
email:
|
377
379
|
- myron@squareup.com
|
@@ -392,10 +394,15 @@ files:
|
|
392
394
|
- lib/elastic_graph/admin/index_definition_configurator/for_index.rb
|
393
395
|
- lib/elastic_graph/admin/index_definition_configurator/for_index_template.rb
|
394
396
|
- lib/elastic_graph/admin/rake_tasks.rb
|
395
|
-
homepage:
|
397
|
+
homepage: https://block.github.io/elasticgraph/
|
396
398
|
licenses:
|
397
399
|
- MIT
|
398
400
|
metadata:
|
401
|
+
bug_tracker_uri: https://github.com/block/elasticgraph/issues
|
402
|
+
changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.0.0.rc1
|
403
|
+
documentation_uri: https://block.github.io/elasticgraph/docs/main/
|
404
|
+
homepage_uri: https://block.github.io/elasticgraph/
|
405
|
+
source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.0.0.rc1/elasticgraph-admin
|
399
406
|
gem_category: core
|
400
407
|
post_install_message:
|
401
408
|
rdoc_options: []
|