elasticgraph-schema_artifacts 0.19.2.2 → 0.19.3.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: d8bfc20e18c158915114d6cb621469d147a696da192f10037ef4bfa3b6035fb6
|
4
|
+
data.tar.gz: ad68fd978823358dfc7ce41347bbec7c2031d46aade7b1fb305cb6a86975843b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e73ef33260349ab3090b1910f36ad4505be56aa4c616cce617da6263ca3db3a4a3c9213f879148a9b2603a0208c5332cd1e65ce15ab1d784c63912587b7e5adf
|
7
|
+
data.tar.gz: 5781172956439bb5106a0fcedce2bf460cfb5dfdc677bcbcd7e31c7872f099c41f8ff4cc851dedc23580feaa9264cdfbc0ee25e2918669f14f7871435adad519
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Copyright 2024 - 2025 Block, Inc.
|
2
|
+
#
|
3
|
+
# Use of this source code is governed by an MIT-style
|
4
|
+
# license that can be found in the LICENSE file or at
|
5
|
+
# https://opensource.org/licenses/MIT.
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require "elastic_graph/schema_artifacts/runtime_metadata/extension_loader"
|
10
|
+
require "elastic_graph/support/hash_util"
|
11
|
+
|
12
|
+
module ElasticGraph
|
13
|
+
module SchemaArtifacts
|
14
|
+
module RuntimeMetadata
|
15
|
+
# @private
|
16
|
+
class ConfiguredGraphQLResolver < ::Data.define(:name, :config)
|
17
|
+
NAME = "name"
|
18
|
+
CONFIG = "config"
|
19
|
+
|
20
|
+
def self.from_hash(hash)
|
21
|
+
new(
|
22
|
+
name: hash.fetch(NAME).to_sym,
|
23
|
+
config: Support::HashUtil.symbolize_keys(hash[CONFIG] || {})
|
24
|
+
)
|
25
|
+
end
|
26
|
+
|
27
|
+
def to_dumpable_hash
|
28
|
+
{
|
29
|
+
# Keys here are ordered alphabetically; please keep them that way.
|
30
|
+
CONFIG => Support::HashUtil.stringify_keys(config),
|
31
|
+
NAME => name.to_s
|
32
|
+
}.reject { |_, v| v.empty? }
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -7,6 +7,7 @@
|
|
7
7
|
# frozen_string_literal: true
|
8
8
|
|
9
9
|
require "elastic_graph/schema_artifacts/runtime_metadata/computation_detail"
|
10
|
+
require "elastic_graph/schema_artifacts/runtime_metadata/configured_graphql_resolver"
|
10
11
|
require "elastic_graph/schema_artifacts/runtime_metadata/relation"
|
11
12
|
|
12
13
|
module ElasticGraph
|
@@ -24,7 +25,7 @@ module ElasticGraph
|
|
24
25
|
name_in_index: hash[NAME_IN_INDEX],
|
25
26
|
relation: hash[RELATION]&.then { |rel_hash| Relation.from_hash(rel_hash) },
|
26
27
|
computation_detail: hash[AGGREGATION_DETAIL]&.then { |agg_hash| ComputationDetail.from_hash(agg_hash) },
|
27
|
-
resolver: hash[RESOLVER]&.
|
28
|
+
resolver: hash[RESOLVER]&.then { |res_hash| ConfiguredGraphQLResolver.from_hash(res_hash) }
|
28
29
|
)
|
29
30
|
end
|
30
31
|
|
@@ -34,7 +35,7 @@ module ElasticGraph
|
|
34
35
|
AGGREGATION_DETAIL => computation_detail&.to_dumpable_hash,
|
35
36
|
NAME_IN_INDEX => name_in_index,
|
36
37
|
RELATION => relation&.to_dumpable_hash,
|
37
|
-
RESOLVER => resolver&.
|
38
|
+
RESOLVER => resolver&.to_dumpable_hash
|
38
39
|
}
|
39
40
|
end
|
40
41
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticgraph-schema_artifacts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myron Marston
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
- Block Engineering
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-
|
12
|
+
date: 2025-06-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: elasticgraph-support
|
@@ -17,42 +17,42 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.19.
|
20
|
+
version: 0.19.3.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: 0.19.
|
27
|
+
version: 0.19.3.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: 0.19.
|
34
|
+
version: 0.19.3.0
|
35
35
|
type: :development
|
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: 0.19.
|
41
|
+
version: 0.19.3.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: elasticgraph-indexer
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - '='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.19.
|
48
|
+
version: 0.19.3.0
|
49
49
|
type: :development
|
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: 0.19.
|
55
|
+
version: 0.19.3.0
|
56
56
|
email:
|
57
57
|
- myron@squareup.com
|
58
58
|
executables: []
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- lib/elastic_graph/schema_artifacts/artifacts_helper_methods.rb
|
65
65
|
- lib/elastic_graph/schema_artifacts/from_disk.rb
|
66
66
|
- lib/elastic_graph/schema_artifacts/runtime_metadata/computation_detail.rb
|
67
|
+
- lib/elastic_graph/schema_artifacts/runtime_metadata/configured_graphql_resolver.rb
|
67
68
|
- lib/elastic_graph/schema_artifacts/runtime_metadata/enum.rb
|
68
69
|
- lib/elastic_graph/schema_artifacts/runtime_metadata/extension.rb
|
69
70
|
- lib/elastic_graph/schema_artifacts/runtime_metadata/extension_loader.rb
|
@@ -87,10 +88,10 @@ licenses:
|
|
87
88
|
- MIT
|
88
89
|
metadata:
|
89
90
|
bug_tracker_uri: https://github.com/block/elasticgraph/issues
|
90
|
-
changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.
|
91
|
-
documentation_uri: https://block.github.io/elasticgraph/api-docs/v0.19.
|
91
|
+
changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.3.0
|
92
|
+
documentation_uri: https://block.github.io/elasticgraph/api-docs/v0.19.3.0/
|
92
93
|
homepage_uri: https://block.github.io/elasticgraph/
|
93
|
-
source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.
|
94
|
+
source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.3.0/elasticgraph-schema_artifacts
|
94
95
|
gem_category: core
|
95
96
|
rdoc_options: []
|
96
97
|
require_paths:
|