forest_admin_agent 1.0.0.pre.beta.108 → 1.0.0.pre.beta.110

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: 6bb2e24d2d0741a95d71a04db8ad086cd981d5ba1905651b59b9ac0411a14865
4
- data.tar.gz: 2112782abbf81c784315c3332350595a6df0d5f92079469abbf0754177d4cbd1
3
+ metadata.gz: 817c6bdb6543eefcaa7c24c05183b90856b73d539804c4f953f82fe13ea9577e
4
+ data.tar.gz: 9b9d223c01a5656a7ffbd35cfb9bd35d1142f1c0f82e0eccb40eaa8cb5849475
5
5
  SHA512:
6
- metadata.gz: b7015cf81696b66f89e9d06389b2279189202fa0a8b03124ac660f781f0aae8761b1798eb762a44040596d9173123cbb0e507e46c4df664aa936f8a98146e6be
7
- data.tar.gz: d48fd69ae1a8bfe3cc4d456832dc46e6952bcbee49772094fa52c13a4899d587d6c46aaa475eab6f6bdb077687e8a182974d399d2db21420e22ec61338519def
6
+ metadata.gz: 04610a9f0d1296907e348d59705d93ddc5986bed3ae6515cc9f8412cce744dc6149065b74d4516f501cb462bacdc451e96bc3b1ee925b5e62c184058f9252199
7
+ data.tar.gz: 827b483eb423f82facbe127026fe165cc2e8c7c1fd1a406ce5d6ac831733eb761e324704bcfa4bcd98c40eedaccb224179ace6c792011f66722e4aa66ddd0e65
@@ -27,15 +27,16 @@ module ForestAdminAgent
27
27
  [
28
28
  @permissions.get_scope(@collection),
29
29
  parse_query_segment(@collection, args, @permissions, @caller),
30
- ForestAdminAgent::Utils::QueryStringParser.parse_condition_tree(
30
+ QueryStringParser.parse_condition_tree(
31
31
  @collection, args
32
32
  )
33
33
  ]
34
34
  ),
35
- search: ForestAdminAgent::Utils::QueryStringParser.parse_search(@collection, args),
36
- search_extended: ForestAdminAgent::Utils::QueryStringParser.parse_search_extended(args)
35
+ page: QueryStringParser.parse_export_pagination(Facades::Container.config_from_cache[:limit_export_size]),
36
+ search: QueryStringParser.parse_search(@collection, args),
37
+ search_extended: QueryStringParser.parse_search_extended(args)
37
38
  )
38
- projection = ForestAdminAgent::Utils::QueryStringParser.parse_projection(@collection, args)
39
+ projection = QueryStringParser.parse_projection(@collection, args)
39
40
  records = @collection.list(@caller, filter, projection)
40
41
  filename = args[:params][:filename] || "#{args[:params]["collection_name"]}.csv"
41
42
  filename += '.csv' unless /\.csv$/i.match?(filename)
@@ -30,7 +30,8 @@ module ForestAdminAgent
30
30
  @permissions.get_scope(@collection),
31
31
  ForestAdminAgent::Utils::QueryStringParser.parse_condition_tree(@child_collection, args)
32
32
  ]
33
- )
33
+ ),
34
+ page: QueryStringParser.parse_export_pagination(Facades::Container.config_from_cache[:limit_export_size])
34
35
  )
35
36
  projection = ForestAdminAgent::Utils::QueryStringParser.parse_projection_with_pks(@child_collection, args)
36
37
  id = Utils::Id.unpack_id(@collection, args[:params]['id'], with_key: true)
@@ -74,6 +74,10 @@ module ForestAdminAgent
74
74
  Page.new(offset: offset, limit: items_per_pages.to_i)
75
75
  end
76
76
 
77
+ def self.parse_export_pagination(limit)
78
+ Page.new(offset: 0, limit: limit&.to_i)
79
+ end
80
+
77
81
  def self.parse_search(collection, args)
78
82
  search = args.dig(:params, :data, :attributes, :all_records_subset_query, :search) || args.dig(:params, :search)
79
83
 
@@ -7,7 +7,7 @@ module ForestAdminAgent
7
7
  class SchemaEmitter
8
8
  LIANA_NAME = "agent-ruby"
9
9
 
10
- LIANA_VERSION = "1.0.0-beta.108"
10
+ LIANA_VERSION = "1.0.0-beta.110"
11
11
 
12
12
  def self.get_serialized_schema(datasource)
13
13
  schema_path = Facades::Container.cache(:schema_path)
@@ -1,3 +1,3 @@
1
1
  module ForestAdminAgent
2
- VERSION = "1.0.0-beta.108"
2
+ VERSION = "1.0.0-beta.110"
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.0.0.pre.beta.108
4
+ version: 1.0.0.pre.beta.110
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: 2025-09-11 00:00:00.000000000 Z
12
+ date: 2025-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport