elasticgraph-local 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/elasticgraph-local.gemspec +2 -1
- data/lib/elastic_graph/local/elasticsearch/Dockerfile +2 -2
- data/lib/elastic_graph/local/elasticsearch/UI-Dockerfile +1 -1
- data/lib/elastic_graph/local/opensearch/Dockerfile +2 -2
- data/lib/elastic_graph/local/opensearch/UI-Dockerfile +1 -1
- data/lib/elastic_graph/local/rake_tasks.rb +22 -12
- data/lib/elastic_graph/local/{tested_database_versions.yaml → tested_datastore_versions.yaml} +2 -2
- metadata +51 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e9b8f4d826d55b6579ae626a2aab33b58cb729bf65f63530f97a2823e38287b
|
4
|
+
data.tar.gz: 5d5970e6f71d10a565fa1274b6aeda642666ee1bd07d0f702cecb7d6bf974123
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b63f87b4496e5269324e70fe74f615ca66f245d4a9199c37d60c7788b4625f57458e80e622e420e1ab95a430ad4115f4b9edd5457585a158003d4d69a8a6eea
|
7
|
+
data.tar.gz: 690edcfba6f5295b96f51a60d39e533d02174f12654586f96c8d9e31700b8e902015a5414f7a18a7e588ada69adf45aeb89c7355644d01873c6ac158c9afc0ce
|
data/elasticgraph-local.gemspec
CHANGED
@@ -16,8 +16,9 @@ ElasticGraphGemspecHelper.define_elasticgraph_gem(gemspec_file: __FILE__, catego
|
|
16
16
|
spec.add_dependency "elasticgraph-indexer", eg_version
|
17
17
|
spec.add_dependency "elasticgraph-rack", eg_version
|
18
18
|
spec.add_dependency "elasticgraph-schema_definition", eg_version
|
19
|
-
spec.add_dependency "rackup", "~> 2.
|
19
|
+
spec.add_dependency "rackup", "~> 2.2"
|
20
20
|
spec.add_dependency "rake", "~> 13.2"
|
21
|
+
spec.add_dependency "webrick", "~> 1.9"
|
21
22
|
|
22
23
|
spec.add_development_dependency "elasticgraph-elasticsearch", eg_version
|
23
24
|
spec.add_development_dependency "elasticgraph-opensearch", eg_version
|
@@ -1,3 +1,3 @@
|
|
1
|
-
ARG VERSION
|
1
|
+
ARG VERSION=latest
|
2
2
|
FROM elasticsearch:${VERSION}
|
3
|
-
RUN bin/elasticsearch-plugin install mapper-size
|
3
|
+
RUN bin/elasticsearch-plugin install mapper-size analysis-icu
|
@@ -1,2 +1,2 @@
|
|
1
|
-
ARG VERSION
|
1
|
+
ARG VERSION=latest
|
2
2
|
FROM kibana:${VERSION}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
ARG VERSION
|
1
|
+
ARG VERSION=latest
|
2
2
|
FROM opensearchproject/opensearch:${VERSION}
|
3
3
|
RUN /usr/share/opensearch/bin/opensearch-plugin remove opensearch-security
|
4
|
-
RUN /usr/share/opensearch/bin/opensearch-plugin install --batch mapper-size
|
4
|
+
RUN /usr/share/opensearch/bin/opensearch-plugin install --batch mapper-size analysis-icu
|
@@ -1,2 +1,2 @@
|
|
1
|
-
ARG VERSION
|
1
|
+
ARG VERSION=latest
|
2
2
|
FROM opensearchproject/opensearch-dashboards:${VERSION}
|
@@ -155,10 +155,20 @@ module ElasticGraph
|
|
155
155
|
attr_accessor :enum_value_overrides_by_type
|
156
156
|
|
157
157
|
# List of Ruby modules to extend onto the {SchemaDefinition::API} instance. Designed to support ElasticGraph extensions (such as
|
158
|
-
#
|
158
|
+
# {Apollo::SchemaDefinition::APIExtension}). Defaults to an empty list.
|
159
159
|
#
|
160
160
|
# @return [Array<Module>] list of extension modules
|
161
161
|
#
|
162
|
+
# @example Use `elasticgraph-apollo`
|
163
|
+
# require "elastic_graph/apollo/schema_definition/api_extension"
|
164
|
+
#
|
165
|
+
# ElasticGraph::Local::RakeTasks.new(
|
166
|
+
# local_config_yaml: "config/settings/local.yaml",
|
167
|
+
# path_to_schema: "config/schema.rb"
|
168
|
+
# ) do |tasks|
|
169
|
+
# tasks.schema_definition_extension_modules = [ElasticGraph::Apollo::SchemaDefinition::APIExtension]
|
170
|
+
# end
|
171
|
+
#
|
162
172
|
# @example Extension that defines a `@since` directive and offers a `since` API on fields
|
163
173
|
# module SinceExtension
|
164
174
|
# # `self.extended` is a standard Ruby hook that gets called when a module is extended onto an object.
|
@@ -230,9 +240,9 @@ module ElasticGraph
|
|
230
240
|
|
231
241
|
# List of Elasticsearch versions you want to be able to boot. Rake tasks will be defined for each version to support booting and
|
232
242
|
# halting Elasticsearch locally. Defaults to the versions of Elasticsearch that are exercised by the ElasticGraph test suite, as
|
233
|
-
# defined by `lib/elastic_graph/local/
|
243
|
+
# defined by `lib/elastic_graph/local/tested_datastore_versions.yaml`:
|
234
244
|
#
|
235
|
-
# {include:file:elasticgraph-local/lib/elastic_graph/local/
|
245
|
+
# {include:file:elasticgraph-local/lib/elastic_graph/local/tested_datastore_versions.yaml}
|
236
246
|
#
|
237
247
|
# @return [Array<String>] list of Elasticsearch versions
|
238
248
|
# @see #opensearch_versions
|
@@ -250,9 +260,9 @@ module ElasticGraph
|
|
250
260
|
|
251
261
|
# List of OpenSearch versions you want to be able to boot. Rake tasks will be defined for each version to support booting and
|
252
262
|
# halting OpenSearch locally. Defaults to the versions of OpenSearch that are exercised by the ElasticGraph test suite, as
|
253
|
-
# defined by `lib/elastic_graph/local/
|
263
|
+
# defined by `lib/elastic_graph/local/tested_datastore_versions.yaml`:
|
254
264
|
#
|
255
|
-
# {include:file:elasticgraph-local/lib/elastic_graph/local/
|
265
|
+
# {include:file:elasticgraph-local/lib/elastic_graph/local/tested_datastore_versions.yaml}
|
256
266
|
#
|
257
267
|
# @return [Array<String>] list of OpenSearch versions
|
258
268
|
# @see #elasticsearch_versions
|
@@ -352,11 +362,11 @@ module ElasticGraph
|
|
352
362
|
self.enforce_json_schema_version = true
|
353
363
|
self.env_port_mapping = {}
|
354
364
|
self.output = $stdout
|
355
|
-
self.daemon_timeout =
|
365
|
+
self.daemon_timeout = 300
|
356
366
|
|
357
|
-
|
358
|
-
self.elasticsearch_versions =
|
359
|
-
self.opensearch_versions =
|
367
|
+
datastore_versions = ::YAML.load_file("#{__dir__}/tested_datastore_versions.yaml")
|
368
|
+
self.elasticsearch_versions = datastore_versions.fetch("elasticsearch")
|
369
|
+
self.opensearch_versions = datastore_versions.fetch("opensearch")
|
360
370
|
|
361
371
|
@fake_data_batch_generator_by_type = {}
|
362
372
|
|
@@ -442,7 +452,7 @@ module ElasticGraph
|
|
442
452
|
"index_fake_data:#{type}"
|
443
453
|
end
|
444
454
|
|
445
|
-
|
455
|
+
datastore_to_boot =
|
446
456
|
if elasticsearch_versions.empty? && opensearch_versions.empty?
|
447
457
|
raise "Both `elasticsearch_versions` and `opensearch_versions` are empty, but we need at least one of them to have a version in order to provide the boot tasks."
|
448
458
|
elsif elasticsearch_versions.empty?
|
@@ -451,8 +461,8 @@ module ElasticGraph
|
|
451
461
|
"Elasticsearch"
|
452
462
|
end
|
453
463
|
|
454
|
-
desc "Boots ElasticGraph locally from scratch: boots #{
|
455
|
-
task :boot_locally, [:port, :rackup_args, :no_open] => ["#{
|
464
|
+
desc "Boots ElasticGraph locally from scratch: boots #{datastore_to_boot}, configures it, indexes fake data, and boots GraphiQL"
|
465
|
+
task :boot_locally, [:port, :rackup_args, :no_open] => ["#{datastore_to_boot.downcase}:local:daemon", *index_fake_data_tasks, "boot_graphiql"]
|
456
466
|
|
457
467
|
desc "Boots ElasticGraph locally with the GraphiQL UI, and opens it in a browser."
|
458
468
|
task :boot_graphiql, [:port, :rackup_args, :no_open] => :ensure_datastore_ready_for_indexing_and_querying do |task, args|
|
data/lib/elastic_graph/local/{tested_database_versions.yaml → tested_datastore_versions.yaml}
RENAMED
@@ -2,7 +2,7 @@
|
|
2
2
|
# This file determines the versions the ElasticGraph CI build tests against, and is also
|
3
3
|
# used to provide the default versions offered by the `elasticgraph-local` rake tasks.
|
4
4
|
elasticsearch:
|
5
|
-
- 8.
|
5
|
+
- 8.15.3 # latest version as of 2024-10-29.
|
6
6
|
opensearch:
|
7
|
-
- 2.
|
7
|
+
- 2.17.1 # latest version as of 2024-10-29.
|
8
8
|
- 2.7.0 # lowest version ElasticGraph currently supports
|
metadata
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticgraph-local
|
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
|
@@ -190,98 +192,98 @@ dependencies:
|
|
190
192
|
requirements:
|
191
193
|
- - "~>"
|
192
194
|
- !ruby/object:Gem::Version
|
193
|
-
version: '3.
|
195
|
+
version: '3.5'
|
194
196
|
type: :development
|
195
197
|
prerelease: false
|
196
198
|
version_requirements: !ruby/object:Gem::Requirement
|
197
199
|
requirements:
|
198
200
|
- - "~>"
|
199
201
|
- !ruby/object:Gem::Version
|
200
|
-
version: '3.
|
202
|
+
version: '3.5'
|
201
203
|
- !ruby/object:Gem::Dependency
|
202
204
|
name: elasticgraph-admin
|
203
205
|
requirement: !ruby/object:Gem::Requirement
|
204
206
|
requirements:
|
205
207
|
- - '='
|
206
208
|
- !ruby/object:Gem::Version
|
207
|
-
version: 0.
|
209
|
+
version: 0.19.0.0.rc1
|
208
210
|
type: :runtime
|
209
211
|
prerelease: false
|
210
212
|
version_requirements: !ruby/object:Gem::Requirement
|
211
213
|
requirements:
|
212
214
|
- - '='
|
213
215
|
- !ruby/object:Gem::Version
|
214
|
-
version: 0.
|
216
|
+
version: 0.19.0.0.rc1
|
215
217
|
- !ruby/object:Gem::Dependency
|
216
218
|
name: elasticgraph-graphql
|
217
219
|
requirement: !ruby/object:Gem::Requirement
|
218
220
|
requirements:
|
219
221
|
- - '='
|
220
222
|
- !ruby/object:Gem::Version
|
221
|
-
version: 0.
|
223
|
+
version: 0.19.0.0.rc1
|
222
224
|
type: :runtime
|
223
225
|
prerelease: false
|
224
226
|
version_requirements: !ruby/object:Gem::Requirement
|
225
227
|
requirements:
|
226
228
|
- - '='
|
227
229
|
- !ruby/object:Gem::Version
|
228
|
-
version: 0.
|
230
|
+
version: 0.19.0.0.rc1
|
229
231
|
- !ruby/object:Gem::Dependency
|
230
232
|
name: elasticgraph-indexer
|
231
233
|
requirement: !ruby/object:Gem::Requirement
|
232
234
|
requirements:
|
233
235
|
- - '='
|
234
236
|
- !ruby/object:Gem::Version
|
235
|
-
version: 0.
|
237
|
+
version: 0.19.0.0.rc1
|
236
238
|
type: :runtime
|
237
239
|
prerelease: false
|
238
240
|
version_requirements: !ruby/object:Gem::Requirement
|
239
241
|
requirements:
|
240
242
|
- - '='
|
241
243
|
- !ruby/object:Gem::Version
|
242
|
-
version: 0.
|
244
|
+
version: 0.19.0.0.rc1
|
243
245
|
- !ruby/object:Gem::Dependency
|
244
246
|
name: elasticgraph-rack
|
245
247
|
requirement: !ruby/object:Gem::Requirement
|
246
248
|
requirements:
|
247
249
|
- - '='
|
248
250
|
- !ruby/object:Gem::Version
|
249
|
-
version: 0.
|
251
|
+
version: 0.19.0.0.rc1
|
250
252
|
type: :runtime
|
251
253
|
prerelease: false
|
252
254
|
version_requirements: !ruby/object:Gem::Requirement
|
253
255
|
requirements:
|
254
256
|
- - '='
|
255
257
|
- !ruby/object:Gem::Version
|
256
|
-
version: 0.
|
258
|
+
version: 0.19.0.0.rc1
|
257
259
|
- !ruby/object:Gem::Dependency
|
258
260
|
name: elasticgraph-schema_definition
|
259
261
|
requirement: !ruby/object:Gem::Requirement
|
260
262
|
requirements:
|
261
263
|
- - '='
|
262
264
|
- !ruby/object:Gem::Version
|
263
|
-
version: 0.
|
265
|
+
version: 0.19.0.0.rc1
|
264
266
|
type: :runtime
|
265
267
|
prerelease: false
|
266
268
|
version_requirements: !ruby/object:Gem::Requirement
|
267
269
|
requirements:
|
268
270
|
- - '='
|
269
271
|
- !ruby/object:Gem::Version
|
270
|
-
version: 0.
|
272
|
+
version: 0.19.0.0.rc1
|
271
273
|
- !ruby/object:Gem::Dependency
|
272
274
|
name: rackup
|
273
275
|
requirement: !ruby/object:Gem::Requirement
|
274
276
|
requirements:
|
275
277
|
- - "~>"
|
276
278
|
- !ruby/object:Gem::Version
|
277
|
-
version: '2.
|
279
|
+
version: '2.2'
|
278
280
|
type: :runtime
|
279
281
|
prerelease: false
|
280
282
|
version_requirements: !ruby/object:Gem::Requirement
|
281
283
|
requirements:
|
282
284
|
- - "~>"
|
283
285
|
- !ruby/object:Gem::Version
|
284
|
-
version: '2.
|
286
|
+
version: '2.2'
|
285
287
|
- !ruby/object:Gem::Dependency
|
286
288
|
name: rake
|
287
289
|
requirement: !ruby/object:Gem::Requirement
|
@@ -296,34 +298,48 @@ dependencies:
|
|
296
298
|
- - "~>"
|
297
299
|
- !ruby/object:Gem::Version
|
298
300
|
version: '13.2'
|
301
|
+
- !ruby/object:Gem::Dependency
|
302
|
+
name: webrick
|
303
|
+
requirement: !ruby/object:Gem::Requirement
|
304
|
+
requirements:
|
305
|
+
- - "~>"
|
306
|
+
- !ruby/object:Gem::Version
|
307
|
+
version: '1.9'
|
308
|
+
type: :runtime
|
309
|
+
prerelease: false
|
310
|
+
version_requirements: !ruby/object:Gem::Requirement
|
311
|
+
requirements:
|
312
|
+
- - "~>"
|
313
|
+
- !ruby/object:Gem::Version
|
314
|
+
version: '1.9'
|
299
315
|
- !ruby/object:Gem::Dependency
|
300
316
|
name: elasticgraph-elasticsearch
|
301
317
|
requirement: !ruby/object:Gem::Requirement
|
302
318
|
requirements:
|
303
319
|
- - '='
|
304
320
|
- !ruby/object:Gem::Version
|
305
|
-
version: 0.
|
321
|
+
version: 0.19.0.0.rc1
|
306
322
|
type: :development
|
307
323
|
prerelease: false
|
308
324
|
version_requirements: !ruby/object:Gem::Requirement
|
309
325
|
requirements:
|
310
326
|
- - '='
|
311
327
|
- !ruby/object:Gem::Version
|
312
|
-
version: 0.
|
328
|
+
version: 0.19.0.0.rc1
|
313
329
|
- !ruby/object:Gem::Dependency
|
314
330
|
name: elasticgraph-opensearch
|
315
331
|
requirement: !ruby/object:Gem::Requirement
|
316
332
|
requirements:
|
317
333
|
- - '='
|
318
334
|
- !ruby/object:Gem::Version
|
319
|
-
version: 0.
|
335
|
+
version: 0.19.0.0.rc1
|
320
336
|
type: :development
|
321
337
|
prerelease: false
|
322
338
|
version_requirements: !ruby/object:Gem::Requirement
|
323
339
|
requirements:
|
324
340
|
- - '='
|
325
341
|
- !ruby/object:Gem::Version
|
326
|
-
version: 0.
|
342
|
+
version: 0.19.0.0.rc1
|
327
343
|
- !ruby/object:Gem::Dependency
|
328
344
|
name: httpx
|
329
345
|
requirement: !ruby/object:Gem::Requirement
|
@@ -359,11 +375,16 @@ files:
|
|
359
375
|
- lib/elastic_graph/local/opensearch/UI-Dockerfile
|
360
376
|
- lib/elastic_graph/local/opensearch/docker-compose.yaml
|
361
377
|
- lib/elastic_graph/local/rake_tasks.rb
|
362
|
-
- lib/elastic_graph/local/
|
363
|
-
homepage:
|
378
|
+
- lib/elastic_graph/local/tested_datastore_versions.yaml
|
379
|
+
homepage: https://block.github.io/elasticgraph/
|
364
380
|
licenses:
|
365
381
|
- MIT
|
366
382
|
metadata:
|
383
|
+
bug_tracker_uri: https://github.com/block/elasticgraph/issues
|
384
|
+
changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.0.0.rc1
|
385
|
+
documentation_uri: https://block.github.io/elasticgraph/docs/main/
|
386
|
+
homepage_uri: https://block.github.io/elasticgraph/
|
387
|
+
source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.0.0.rc1/elasticgraph-local
|
367
388
|
gem_category: local
|
368
389
|
post_install_message:
|
369
390
|
rdoc_options: []
|