elasticgraph-local 0.18.0.3 → 0.18.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afe51593da49a90d3e8d990879659dfb883b6c3f10f3e16798bd508cfaeb104c
4
- data.tar.gz: 7695045f0efa4e39fff8376caba306b1235bb14a3135ae74d2c63a5492097246
3
+ metadata.gz: cdaef5925bca9407e23194a4c43de9736969004bf11b6bd70fdf0f3433078863
4
+ data.tar.gz: 00be5842321ed420ada2ed73e99888eacb2904547fb780fa05854aa0cc826ab4
5
5
  SHA512:
6
- metadata.gz: 2d05c98e36b147dd514ca346760de236c0690d1468f7e5b37e84c40486ee9f941c0d52bdb3abf88995b91f7d22321e140f9dc5346699619afe3dcc965808e9fc
7
- data.tar.gz: db210b2b9072053fbe8647f219dcd1ab425e577b0cefa8bbc83b435e2edc0c3e5a64109e904653d26e8d1e837d840895fe7da0767444f9dbe768080ab4921446
6
+ metadata.gz: b099e031d8b26b867dceb00cbfdbdde81946509b60c00bebddaed94dd6a8b812ae0fae2043fcd92584da2c85cd4276c6c2a1ca99b07ee63f8e39aa4f4550a7d0
7
+ data.tar.gz: 5f29b2490c04cc57132cfdb1e55093bb2f2e244a96305327546f49d8f4efd1895720222d3dad381c162276f3112cd9d414d37d031c30688249d25d44939e365d
@@ -1,3 +1,3 @@
1
- ARG VERSION
1
+ ARG VERSION=latest
2
2
  FROM elasticsearch:${VERSION}
3
3
  RUN bin/elasticsearch-plugin install mapper-size
@@ -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
4
  RUN /usr/share/opensearch/bin/opensearch-plugin install --batch mapper-size
@@ -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
- # `elasticgraph-apollo`). Defaults to an empty list.
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/tested_database_versions.yaml`:
243
+ # defined by `lib/elastic_graph/local/tested_datastore_versions.yaml`:
234
244
  #
235
- # {include:file:elasticgraph-local/lib/elastic_graph/local/tested_database_versions.yaml}
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/tested_database_versions.yaml`:
263
+ # defined by `lib/elastic_graph/local/tested_datastore_versions.yaml`:
254
264
  #
255
- # {include:file:elasticgraph-local/lib/elastic_graph/local/tested_database_versions.yaml}
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
@@ -354,9 +364,9 @@ module ElasticGraph
354
364
  self.output = $stdout
355
365
  self.daemon_timeout = 120
356
366
 
357
- database_versions = ::YAML.load_file("#{__dir__}/tested_database_versions.yaml")
358
- self.elasticsearch_versions = database_versions.fetch("elasticsearch")
359
- self.opensearch_versions = database_versions.fetch("opensearch")
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
- database_to_boot =
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 #{database_to_boot}, configures it, indexes fake data, and boots GraphiQL"
455
- task :boot_locally, [:port, :rackup_args, :no_open] => ["#{database_to_boot.downcase}:local:daemon", *index_fake_data_tasks, "boot_graphiql"]
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|
@@ -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.14.1 # latest version as of 2024-07-02.
5
+ - 8.15.1 # latest version as of 2024-09-06.
6
6
  opensearch:
7
- - 2.15.0 # latest version as of 2024-07-02.
7
+ - 2.16.0 # latest version as of 2024-09-06.
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.18.0.3
4
+ version: 0.18.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Myron Marston
8
+ - Ben VandenBos
9
+ - Square Engineering
8
10
  autorequire:
9
11
  bindir: exe
10
12
  cert_chain: []
11
- date: 2024-09-05 00:00:00.000000000 Z
13
+ date: 2024-09-20 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: rubocop-factory_bot
@@ -204,70 +206,70 @@ dependencies:
204
206
  requirements:
205
207
  - - '='
206
208
  - !ruby/object:Gem::Version
207
- version: 0.18.0.3
209
+ version: 0.18.0.5
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.18.0.3
216
+ version: 0.18.0.5
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.18.0.3
223
+ version: 0.18.0.5
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.18.0.3
230
+ version: 0.18.0.5
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.18.0.3
237
+ version: 0.18.0.5
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.18.0.3
244
+ version: 0.18.0.5
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.18.0.3
251
+ version: 0.18.0.5
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.18.0.3
258
+ version: 0.18.0.5
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.18.0.3
265
+ version: 0.18.0.5
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.18.0.3
272
+ version: 0.18.0.5
271
273
  - !ruby/object:Gem::Dependency
272
274
  name: rackup
273
275
  requirement: !ruby/object:Gem::Requirement
@@ -302,28 +304,28 @@ dependencies:
302
304
  requirements:
303
305
  - - '='
304
306
  - !ruby/object:Gem::Version
305
- version: 0.18.0.3
307
+ version: 0.18.0.5
306
308
  type: :development
307
309
  prerelease: false
308
310
  version_requirements: !ruby/object:Gem::Requirement
309
311
  requirements:
310
312
  - - '='
311
313
  - !ruby/object:Gem::Version
312
- version: 0.18.0.3
314
+ version: 0.18.0.5
313
315
  - !ruby/object:Gem::Dependency
314
316
  name: elasticgraph-opensearch
315
317
  requirement: !ruby/object:Gem::Requirement
316
318
  requirements:
317
319
  - - '='
318
320
  - !ruby/object:Gem::Version
319
- version: 0.18.0.3
321
+ version: 0.18.0.5
320
322
  type: :development
321
323
  prerelease: false
322
324
  version_requirements: !ruby/object:Gem::Requirement
323
325
  requirements:
324
326
  - - '='
325
327
  - !ruby/object:Gem::Version
326
- version: 0.18.0.3
328
+ version: 0.18.0.5
327
329
  - !ruby/object:Gem::Dependency
328
330
  name: httpx
329
331
  requirement: !ruby/object:Gem::Requirement
@@ -359,7 +361,7 @@ files:
359
361
  - lib/elastic_graph/local/opensearch/UI-Dockerfile
360
362
  - lib/elastic_graph/local/opensearch/docker-compose.yaml
361
363
  - lib/elastic_graph/local/rake_tasks.rb
362
- - lib/elastic_graph/local/tested_database_versions.yaml
364
+ - lib/elastic_graph/local/tested_datastore_versions.yaml
363
365
  homepage:
364
366
  licenses:
365
367
  - MIT