gitlab_query_language 0.43.0-aarch64-linux-gnu → 0.44.0-aarch64-linux-gnu
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 +4 -4
- data/Cargo.lock +3 -1
- data/ext/gitlab_query_language/Cargo.toml +1 -1
- data/lib/gitlab_query_language/3.2/gitlab_query_language.so +0 -0
- data/lib/gitlab_query_language/3.3/gitlab_query_language.so +0 -0
- data/lib/gitlab_query_language/3.4/gitlab_query_language.so +0 -0
- data/lib/gitlab_query_language/version.rb +1 -1
- data/lib/gitlab_query_language.rb +33 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da3e8712c9799ef4d571a56d8608ea4995ddbf123c2096909c9e2fe23b58e64e
|
|
4
|
+
data.tar.gz: c4186ec4a3e3556cd231a9203f30519887ae024c64134adce0cc2fb043f8b2a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71dc60bef772a74714b6901966d848df4c73c12de0fe2c2484f18dd1b044ef0e634ee68435cc1bb6d133c7443cb33fa6ddc78a2b004c9306e29b4d1715521c57
|
|
7
|
+
data.tar.gz: 7e9c13bcd25f33553fcc7636a17e1519736ddb896a6d001437b48388f123045ccf1b40af82c7e8ffccb16aee77ce0093a9d3765bf2927adf3dadeb92ac5ae469
|
data/Cargo.lock
CHANGED
|
@@ -233,7 +233,7 @@ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
|
|
233
233
|
|
|
234
234
|
[[package]]
|
|
235
235
|
name = "glql"
|
|
236
|
-
version = "0.
|
|
236
|
+
version = "0.44.0"
|
|
237
237
|
dependencies = [
|
|
238
238
|
"chrono",
|
|
239
239
|
"graphql-parser",
|
|
@@ -320,6 +320,8 @@ checksum = "6717a8d2a5a929a1a2eb43a12812498ed141a0bcfb7e8f7844fbdbe4303bba9f"
|
|
|
320
320
|
dependencies = [
|
|
321
321
|
"equivalent",
|
|
322
322
|
"hashbrown 0.16.0",
|
|
323
|
+
"serde",
|
|
324
|
+
"serde_core",
|
|
323
325
|
]
|
|
324
326
|
|
|
325
327
|
[[package]]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -14,6 +14,10 @@ end
|
|
|
14
14
|
module Glql
|
|
15
15
|
Error = Class.new(StandardError)
|
|
16
16
|
|
|
17
|
+
# The schema document's private block; see `Glql.engine_config`.
|
|
18
|
+
ENGINE_CONFIG = "__engine_config"
|
|
19
|
+
private_constant :ENGINE_CONFIG
|
|
20
|
+
|
|
17
21
|
class << self
|
|
18
22
|
def compile(query, context)
|
|
19
23
|
result_json = compile_rs(query, context.to_json)
|
|
@@ -32,12 +36,40 @@ module Glql
|
|
|
32
36
|
# `version` is this gem's version rather than a field of the document, so it
|
|
33
37
|
# cannot disagree with the artifact it shipped in. Merged last so a `version`
|
|
34
38
|
# in the document could not override it.
|
|
39
|
+
#
|
|
40
|
+
# The document's private `__engine_config` block is left out; see
|
|
41
|
+
# `engine_config`.
|
|
35
42
|
def schema
|
|
36
|
-
@schema ||= freeze_recursively(
|
|
43
|
+
@schema ||= freeze_recursively(
|
|
44
|
+
document.except(ENGINE_CONFIG).merge("version" => VERSION)
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# The GraphQL field behind each analytics source, dimension and metric,
|
|
49
|
+
# keyed by source name and then by field name:
|
|
50
|
+
#
|
|
51
|
+
# Glql.engine_config["DuoWorkflows"]
|
|
52
|
+
# # => { "field" => "analytics.duoWorkflows",
|
|
53
|
+
# # "dimensions" => { "flowType" => { "field" => "workflowDefinition" }, ... },
|
|
54
|
+
# # "metrics" => { "creditsUsedMean" => { "field" => "creditsUsed", "leaf" => "mean" }, ... } }
|
|
55
|
+
#
|
|
56
|
+
# A dimension's field is on the aggregated node's `dimensions` object, a
|
|
57
|
+
# metric's on the node itself; `leaf` marks a measurement stat, and
|
|
58
|
+
# `arguments` the fixed arguments a field is selected with (a pipeline
|
|
59
|
+
# rate's `{ "status" => "failed" }`). It is the document's private
|
|
60
|
+
# `__engine_config` block, which `schema` leaves out.
|
|
61
|
+
def engine_config
|
|
62
|
+
@engine_config ||= freeze_recursively(document.fetch(ENGINE_CONFIG))
|
|
37
63
|
end
|
|
38
64
|
|
|
39
65
|
private
|
|
40
66
|
|
|
67
|
+
# Parsed afresh for each caller: `schema` and `engine_config` memoise and
|
|
68
|
+
# freeze their own part.
|
|
69
|
+
def document
|
|
70
|
+
JSON.parse(schema_rs)
|
|
71
|
+
end
|
|
72
|
+
|
|
41
73
|
# Freezes in place, at every level.
|
|
42
74
|
#
|
|
43
75
|
# `Hash#freeze` is shallow, and the memo above is shared for the life of the
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitlab_query_language
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.44.0
|
|
5
5
|
platform: aarch64-linux-gnu
|
|
6
6
|
authors:
|
|
7
7
|
- Himanshu Kapoor
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-
|
|
12
|
+
date: 2026-12-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rb_sys
|