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: 3152e105aa81f0c908538ac6fc1c777ec920380eabee39a27dd52c1161d76fe9
4
- data.tar.gz: 939d10468e7ad7c4fa9c9c4dcd85f89689771fef8c239ea2c79f0efde9f2cd65
3
+ metadata.gz: db3785fec2059a24ea3be2cedbfe5dc423dc6754702ed39956041737d2b85689
4
+ data.tar.gz: b28a17b65535b135e560e67671bcd2c05dc50aa710d4800fa2081972706dc64f
5
5
  SHA512:
6
- metadata.gz: 5422fc84e5e69dc3f2849f7a090debb7a62437d76b6f1aee0b85c62d1c623293e01b0ce2f2b4bff38b50c98de6c8bd4cf49c1de2b5bcf31e27b407142f65368d
7
- data.tar.gz: 998d17616a0f9b52c35ce379e7adb21dbf4efb9a3a5c7212243667a8aaef7894d68974398787e80e931e280558fbacbbcda67eb87633cd97b179ea8092678374
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
- Aggregation.new(**to_h, **args)
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)
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceToolkit
2
- VERSION = "1.0.0-beta.88"
2
+ VERSION = "1.0.0-beta.89"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_datasource_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.88
4
+ version: 1.0.0.pre.beta.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu