elasticgraph-local 1.0.0.rc3 → 1.0.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efea31f1736fb9198a0c6bb5467f931c1535754534888d38b7fc13cba8dc78d0
|
4
|
+
data.tar.gz: bfd3ffd9592a8dea52e0d2f789fc0e234c7bf947ef8369fd0796c42289e76a24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48d776f721a5ac2b9cd11cf42904306c39dab97d4126e6fc3bc9e9b5bc305dc5a6b08ce1c86cb7485a002c24d3cabb95017c7128a22af24a9b059568feaeb356
|
7
|
+
data.tar.gz: ec4bb6c1472ecec84fb8efaeab60e564f7c14e678b2ab7def359355d87c7d0583b63500abe7d74324e34f7ac4fa492ab329cb93ef700b2e20eb1033424a9356c
|
data/README.md
CHANGED
@@ -44,40 +44,10 @@ graph LR;
|
|
44
44
|
|
45
45
|
## Installation
|
46
46
|
|
47
|
-
|
47
|
+
`elasticgraph-local` is added to a project automatically when you bootstrap a project using:
|
48
48
|
|
49
|
-
```
|
50
|
-
|
51
|
-
|
52
|
-
group :development do
|
53
|
-
gem "factory_bot"
|
54
|
-
gem "faker"
|
55
|
-
gem "elasticgraph-local"
|
56
|
-
end
|
57
|
-
```
|
58
|
-
|
59
|
-
As shown above, you can also pull in any gems that will help you
|
60
|
-
generate fake data. We tend to use [factory_bot](https://github.com/thoughtbot/factory_bot)
|
61
|
-
and [faker](https://github.com/faker-ruby/faker). `elasticgraph-local` should be defined
|
62
|
-
in the `development` group (you don't want to include it in any staging or production
|
63
|
-
deployment).
|
64
|
-
|
65
|
-
Next, install the `elasticgraph-local` rake tasks in your `Rakefile`, with code like:
|
66
|
-
|
67
|
-
``` ruby
|
68
|
-
require 'elastic_graph/local/rake_tasks'
|
69
|
-
|
70
|
-
ElasticGraph::Local::RakeTasks.new(
|
71
|
-
local_config_yaml: "config/settings/development.yaml",
|
72
|
-
path_to_schema: "config/schema.rb"
|
73
|
-
) do |tasks|
|
74
|
-
tasks.define_fake_data_batch_for :widgets do |batch|
|
75
|
-
# Use faker/factory_bot etc here to generate fake data
|
76
|
-
# and add it to the `batch` array.
|
77
|
-
# You'll probably want to put that logic in another file
|
78
|
-
# and load it from here.
|
79
|
-
end
|
80
|
-
end
|
49
|
+
```bash
|
50
|
+
gem exec elasticgraph new path/to/project
|
81
51
|
```
|
82
52
|
|
83
53
|
## Usage
|
@@ -85,7 +55,7 @@ end
|
|
85
55
|
Everything you need is provided by rake tasks. Run the following to see what they are:
|
86
56
|
|
87
57
|
```bash
|
88
|
-
|
58
|
+
bundle exec rake -T
|
89
59
|
```
|
90
60
|
|
91
61
|
At a high level, this provides tasks that help you to:
|
@@ -98,8 +68,8 @@ At a high level, this provides tasks that help you to:
|
|
98
68
|
|
99
69
|
If you just want to boot ElasticGraph locally without worrying about any of the details, run:
|
100
70
|
|
101
|
-
```
|
102
|
-
|
71
|
+
```bash
|
72
|
+
bundle exec rake boot_locally
|
103
73
|
```
|
104
74
|
|
105
75
|
That sequences each of the other tasks so that, with a single command, you can go from nothing to a
|
@@ -1,4 +1,5 @@
|
|
1
1
|
ARG VERSION=latest
|
2
2
|
FROM opensearchproject/opensearch:${VERSION}
|
3
|
-
RUN /usr/share/opensearch/bin/opensearch-plugin remove opensearch-
|
3
|
+
RUN /usr/share/opensearch/bin/opensearch-plugin remove opensearch-anomaly-detection && \
|
4
|
+
/usr/share/opensearch/bin/opensearch-plugin remove opensearch-security && \
|
4
5
|
/usr/share/opensearch/bin/opensearch-plugin install --batch mapper-size analysis-icu
|
@@ -499,31 +499,12 @@ module ElasticGraph
|
|
499
499
|
task :ensure_local_datastore_running do
|
500
500
|
datastore_status_code = begin
|
501
501
|
::Net::HTTP.get_response(URI(local_datastore_url)).code
|
502
|
-
rescue ::SystemCallError
|
502
|
+
rescue ::SystemCallError, ::EOFError
|
503
503
|
"500"
|
504
504
|
end
|
505
505
|
|
506
506
|
unless datastore_status_code == "200"
|
507
|
-
|
508
|
-
raise <<~EOS
|
509
|
-
OpenSearch is not running locally. You need to start it in another terminal using this command:
|
510
|
-
|
511
|
-
bundle exec rake opensearch:local:boot
|
512
|
-
EOS
|
513
|
-
elsif opensearch_versions.empty?
|
514
|
-
raise <<~EOS
|
515
|
-
Elasticsearch is not running locally. You need to start it in another terminal using this command:
|
516
|
-
|
517
|
-
bundle exec rake elasticsearch:local:boot
|
518
|
-
EOS
|
519
|
-
else
|
520
|
-
raise <<~EOS
|
521
|
-
Neither Elasticsearch nor OpenSearch are running locally. You need to start one of them in another terminal using one of these commands:
|
522
|
-
|
523
|
-
bundle exec rake elasticsearch:local:boot
|
524
|
-
bundle exec rake opensearch:local:boot
|
525
|
-
EOS
|
526
|
-
end
|
507
|
+
::Rake::Task["#{datastore_to_boot.downcase}:local:daemon"].invoke
|
527
508
|
end
|
528
509
|
end
|
529
510
|
|
@@ -2,7 +2,8 @@
|
|
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
|
-
- 9.
|
5
|
+
- 9.1.0 # latest version as of 2025-08-01.
|
6
|
+
- 9.0.0 # lowest version ElasticGraph currently supports
|
6
7
|
opensearch:
|
7
|
-
- 3.
|
8
|
+
- 3.1.0 # latest version as of 2025-07-11.
|
8
9
|
- 2.19.0 # lowest version ElasticGraph currently supports
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticgraph-local
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myron Marston
|
@@ -17,70 +17,70 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.0.0
|
20
|
+
version: 1.0.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.0.0
|
27
|
+
version: 1.0.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: elasticgraph-graphql
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - '='
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.0.0
|
34
|
+
version: 1.0.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - '='
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.0.0
|
41
|
+
version: 1.0.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: elasticgraph-graphiql
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - '='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.0.0
|
48
|
+
version: 1.0.0
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - '='
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.0.0
|
55
|
+
version: 1.0.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: elasticgraph-indexer
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - '='
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 1.0.0
|
62
|
+
version: 1.0.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.0.0
|
69
|
+
version: 1.0.0
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: elasticgraph-schema_definition
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - '='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 1.0.0
|
76
|
+
version: 1.0.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - '='
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 1.0.0
|
83
|
+
version: 1.0.0
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: rackup
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,42 +141,42 @@ dependencies:
|
|
141
141
|
requirements:
|
142
142
|
- - '='
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: 1.0.0
|
144
|
+
version: 1.0.0
|
145
145
|
type: :development
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - '='
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: 1.0.0
|
151
|
+
version: 1.0.0
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: elasticgraph-elasticsearch
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - '='
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: 1.0.0
|
158
|
+
version: 1.0.0
|
159
159
|
type: :development
|
160
160
|
prerelease: false
|
161
161
|
version_requirements: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - '='
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: 1.0.0
|
165
|
+
version: 1.0.0
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: elasticgraph-opensearch
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - '='
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: 1.0.0
|
172
|
+
version: 1.0.0
|
173
173
|
type: :development
|
174
174
|
prerelease: false
|
175
175
|
version_requirements: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - '='
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: 1.0.0
|
179
|
+
version: 1.0.0
|
180
180
|
email:
|
181
181
|
- myron@squareup.com
|
182
182
|
executables: []
|
@@ -203,10 +203,10 @@ licenses:
|
|
203
203
|
- MIT
|
204
204
|
metadata:
|
205
205
|
bug_tracker_uri: https://github.com/block/elasticgraph/issues
|
206
|
-
changelog_uri: https://github.com/block/elasticgraph/releases/tag/v1.0.0
|
207
|
-
documentation_uri: https://block.github.io/elasticgraph/api-docs/v1.0.0
|
206
|
+
changelog_uri: https://github.com/block/elasticgraph/releases/tag/v1.0.0
|
207
|
+
documentation_uri: https://block.github.io/elasticgraph/api-docs/v1.0.0/
|
208
208
|
homepage_uri: https://block.github.io/elasticgraph/
|
209
|
-
source_code_uri: https://github.com/block/elasticgraph/tree/v1.0.0
|
209
|
+
source_code_uri: https://github.com/block/elasticgraph/tree/v1.0.0/elasticgraph-local
|
210
210
|
gem_category: local
|
211
211
|
rdoc_options: []
|
212
212
|
require_paths:
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
- !ruby/object:Gem::Version
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
|
-
rubygems_version: 3.6.
|
228
|
+
rubygems_version: 3.6.9
|
229
229
|
specification_version: 4
|
230
|
-
summary: Provides support for developing
|
230
|
+
summary: Provides support for developing ElasticGraph applications locally.
|
231
231
|
test_files: []
|