forest_admin_datasource_toolkit 1.0.0.pre.beta.88 → 1.0.0.pre.beta.89
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db3785fec2059a24ea3be2cedbfe5dc423dc6754702ed39956041737d2b85689
|
4
|
+
data.tar.gz: b28a17b65535b135e560e67671bcd2c05dc50aa710d4800fa2081972706dc64f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01b370a2e20dd3bd96832d31e189a80b281948236efe12710448472407acf19597c5bb1a6cae917fba817f2fb850bb0e3832cd350b58e4f519cec10b82f012ea
|
7
|
+
data.tar.gz: f59693ce277a38d5d981290b08b9e25f4f02ad8cbbf3846e9c7e6884422041ed3bc5c0014daf65f71125ed6d632f5d39e65443a261450a9119c36eb9656f20dc
|
@@ -14,7 +14,9 @@ module ForestAdminDatasourceToolkit
|
|
14
14
|
timezone:,
|
15
15
|
permission_level:,
|
16
16
|
role: nil,
|
17
|
-
request: {}
|
17
|
+
request: {},
|
18
|
+
project: nil,
|
19
|
+
environment: nil
|
18
20
|
)
|
19
21
|
@id = id
|
20
22
|
@email = email
|
@@ -27,6 +29,8 @@ module ForestAdminDatasourceToolkit
|
|
27
29
|
@permission_level = permission_level
|
28
30
|
@role = role
|
29
31
|
@request = request
|
32
|
+
@project = project
|
33
|
+
@environment = environment
|
30
34
|
end
|
31
35
|
end
|
32
36
|
end
|
@@ -46,7 +46,12 @@ module ForestAdminDatasourceToolkit
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def override(**args)
|
49
|
-
|
49
|
+
params = to_h.merge(args)
|
50
|
+
Aggregation.new(
|
51
|
+
operation: params[:operation],
|
52
|
+
field: params[:field],
|
53
|
+
groups: params[:groups]
|
54
|
+
)
|
50
55
|
end
|
51
56
|
|
52
57
|
def apply(records, timezone, limit = nil)
|