Skip to content

Commit 71e9dfd

Browse files
authored
Remove hard json_ingestion -> schema_definition dependency. (#1430)
Wjhile the schema-definition piece of `elasticgraph-json_ingestion` has a dependency on `elasticgraph-schema_definition`, we do not want to force `eg-schema_definition` to be pulled into deployed production bundles, as it is intended to only be used in local development (and on CI).
1 parent 72791e3 commit 71e9dfd

6 files changed

Lines changed: 6 additions & 13 deletions

File tree

‎CODEBASE_OVERVIEW.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ graph LR;
220220
elasticgraph-datastore_core["eg-datastore_core"];
221221
elasticgraph-json_ingestion["eg-json_ingestion"];
222222
elasticgraph-indexer["eg-indexer"];
223-
elasticgraph-schema_definition["eg-schema_definition"];
224223
elasticgraph-proto_ingestion["eg-proto_ingestion"];
225224
elasticgraph-query_interceptor["eg-query_interceptor"];
226225
elasticgraph-schema_artifacts["eg-schema_artifacts"];
@@ -236,7 +235,6 @@ graph LR;
236235
elasticgraph-health_check --> elasticgraph-support;
237236
elasticgraph-json_ingestion --> elasticgraph-indexer;
238237
elasticgraph-json_ingestion --> elasticgraph-support;
239-
elasticgraph-json_ingestion --> elasticgraph-schema_definition;
240238
elasticgraph-proto_ingestion --> elasticgraph-support;
241239
elasticgraph-query_interceptor --> elasticgraph-graphql;
242240
elasticgraph-query_interceptor --> elasticgraph-schema_artifacts;
@@ -254,7 +252,6 @@ graph LR;
254252
class elasticgraph-datastore_core otherEgGemStyle;
255253
class elasticgraph-json_ingestion targetGemStyle;
256254
class elasticgraph-indexer otherEgGemStyle;
257-
class elasticgraph-schema_definition otherEgGemStyle;
258255
class elasticgraph-proto_ingestion targetGemStyle;
259256
class elasticgraph-query_interceptor targetGemStyle;
260257
class elasticgraph-schema_artifacts otherEgGemStyle;

‎Gemfile.lock‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ PATH
111111
specs:
112112
elasticgraph-json_ingestion (1.2.1.pre)
113113
elasticgraph-indexer (= 1.2.1.pre)
114-
elasticgraph-schema_definition (= 1.2.1.pre)
115114
elasticgraph-support (= 1.2.1.pre)
116115

117116
PATH
@@ -758,7 +757,6 @@ CHECKSUMS
758757
benchmark-ips (2.15.1) sha256=07a1a9f3c6105ecaf68c174fc3fbcddd71a0e9ada6236ae03093a0dcfd812d59
759758
bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66
760759
bigdecimal (4.1.3-java) sha256=9a6a1fa67723a27ab1b3a6d5526322d8c82170af03199da7c915b8d9a1770532
761-
bundler (4.0.13) sha256=19f08be7f27022cf0b89f27da0b044ae075e8270a9ef44ad248a932614e1ca3b
762760
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
763761
colorator (1.1.0) sha256=e2f85daf57af47d740db2a32191d1bdfb0f6503a0dfbc8327d0c9154d5ddfc38
764762
concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1

‎elasticgraph-json_ingestion/README.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ graph LR;
172172
elasticgraph-support["elasticgraph-support"];
173173
elasticgraph-json_ingestion --> elasticgraph-support;
174174
class elasticgraph-support otherEgGemStyle;
175-
elasticgraph-schema_definition["elasticgraph-schema_definition"];
176-
elasticgraph-json_ingestion --> elasticgraph-schema_definition;
177-
class elasticgraph-schema_definition otherEgGemStyle;
178175
elasticgraph-indexer_lambda["elasticgraph-indexer_lambda"];
179176
elasticgraph-indexer_lambda --> elasticgraph-json_ingestion;
180177
class elasticgraph-indexer_lambda otherEgGemStyle;

‎elasticgraph-json_ingestion/elasticgraph-json_ingestion.gemspec‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ Gem::Specification.new do |spec|
3737
spec.add_dependency "elasticgraph-indexer", ElasticGraph::VERSION
3838
spec.add_dependency "elasticgraph-support", ElasticGraph::VERSION
3939

40-
spec.add_dependency "elasticgraph-schema_definition", ElasticGraph::VERSION
41-
4240
# Indexer specs use real datastore client classes.
4341
spec.add_development_dependency "elasticgraph-admin", ElasticGraph::VERSION
4442
spec.add_development_dependency "elasticgraph-elasticsearch", ElasticGraph::VERSION
4543
spec.add_development_dependency "elasticgraph-opensearch", ElasticGraph::VERSION
44+
45+
# Note: technically, this is not purely a development dependency, but since `eg-schema_def`
46+
# isn't intended to be used in production (or even included in a deployed bundle) we don't
47+
# want to declare it as normal dependency here.
48+
spec.add_development_dependency "elasticgraph-schema_definition", ElasticGraph::VERSION
4649
end

‎elasticgraph-schema_definition/README.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ graph LR;
3333
rake["rake"];
3434
elasticgraph-schema_definition --> rake;
3535
class rake externalGemStyle;
36-
elasticgraph-json_ingestion["elasticgraph-json_ingestion"];
37-
elasticgraph-json_ingestion --> elasticgraph-schema_definition;
38-
class elasticgraph-json_ingestion otherEgGemStyle;
3936
elasticgraph-local["elasticgraph-local"];
4037
elasticgraph-local --> elasticgraph-schema_definition;
4138
class elasticgraph-local otherEgGemStyle;

‎elasticgraph-warehouse_lambda/elasticgraph-warehouse_lambda.gemspec‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ Gem::Specification.new do |spec|
5050
spec.add_development_dependency "elasticgraph-elasticsearch", ElasticGraph::VERSION
5151
spec.add_development_dependency "elasticgraph-json_ingestion", ElasticGraph::VERSION
5252
spec.add_development_dependency "elasticgraph-opensearch", ElasticGraph::VERSION
53+
spec.add_development_dependency "elasticgraph-schema_definition", ElasticGraph::VERSION
5354
end

0 commit comments

Comments
 (0)