forest_admin_agent 1.40.1 → 1.41.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: 41424b4c16e2ad72007fc04077d6ba6eaaac2cb39e664a7bf45ca081ea3cd48f
4
- data.tar.gz: 3436faf494fa9b564bddcdd218bc3e86d40e7d017ed3abeb232ff3cd2086b96f
3
+ metadata.gz: e206afe12d8b554e97e214bc27441b51ddf5252d3e4b1ee5800645bd27baa228
4
+ data.tar.gz: cb1e6a7aa74f086fb70ebc7f30808db2b984660f6e375a49a5ee3467ebf0dbd2
5
5
  SHA512:
6
- metadata.gz: b04f5cd5d017f5dc76cadf4277a7a6b7a940298d95db23a3e31a8f15b70b3964506f56861a82b18300c2c785e3d2ecef3e70c75c5f62d71d2c7ae4fe79e011f5
7
- data.tar.gz: 77f78657ad7eac790127770d7ad4af2d98cdf4477882c882fab27779799e65c6f72ee7edb6adacf3673e2768153415935fd9c7060e03914e0cf8fec647a23b73
6
+ metadata.gz: 681910cfb585cef1e368db4e0f464b8866d35615cd1b2daaee1f02a45da613a52ec0a5063620ea36d2b1f47061486922227cc67cfa2d314b38f97a47c06fb7c8
7
+ data.tar.gz: 16763d62485a9bf7be6d253fb68352e8da2edc2d7679b606b4b535fce67d2e301e39f236c649d4cb27930fb6b3b9a7daec5643ca9a51fb30e9e34bf14095e20a
@@ -237,7 +237,11 @@ module ForestAdminAgent
237
237
  field: aggregate_field_name(args))
238
238
  result = context.collection.aggregate(context.caller, filter, aggregation)
239
239
 
240
- result[0]['value'] || 0
240
+ # `Aggregation#apply` groups the records it is given, so a filter
241
+ # matching none of them answers with no row at all -- which is what an
242
+ # in-memory aggregation hands back for an empty selection. Indexing
243
+ # that answered a value chart with a 500 where the figure is zero.
244
+ result.first&.[]('value') || 0
241
245
  end
242
246
 
243
247
  # The permission root stays the chart's own collection, which the leaderboard call site does
@@ -6,7 +6,7 @@ module ForestAdminAgent
6
6
  module Schema
7
7
  class SchemaEmitter
8
8
  LIANA_NAME = "agent-ruby"
9
- LIANA_VERSION = "1.40.1"
9
+ LIANA_VERSION = "1.41.0"
10
10
 
11
11
  def self.generate(datasource)
12
12
  datasource.collections
@@ -1,3 +1,3 @@
1
1
  module ForestAdminAgent
2
- VERSION = "1.40.1"
2
+ VERSION = "1.41.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.40.1
4
+ version: 1.41.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2026-08-28 00:00:00.000000000 Z
12
+ date: 2026-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport