forest_admin_agent 1.0.0.pre.beta.77 → 1.0.0.pre.beta.78

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: acb44dc3e46d11e1cf6ff2cc910f8c337bf499df84a12e508f641af9b6a07188
4
- data.tar.gz: 65f2a20cebb62e62b9ed67de3ef692b71765eaf61b46eb0ff603606577efde9f
3
+ metadata.gz: 27acf5eecdcc0214bb2f2c88c761a165e4c769e8790d10be2ed999e4e2b99c6f
4
+ data.tar.gz: 6fc3368da9efe7a50120dfcf27fb731100be817075343f4d489efdbd6a225a26
5
5
  SHA512:
6
- metadata.gz: 5086df998e3f22f9d04772f29375c33f13469aa98849045a6db9c96d1569286258f7c97fb75bb24a0d4a3dfbe61c7193d17932c625e66ee323541a37d9f676db
7
- data.tar.gz: 957247e377111b6b48c5e69fdf375bbf7c3890043a254a16af7cfe2a5ce366d7011222dffd60438413cd3c59444399a5d8eec0371787112370773d4a0f5e94c9
6
+ metadata.gz: f6325a6a4130edf6c3589bcdcf1c0247693fa17a95dd6dea045058b48e4289e85b13d0a4c9f9d67414aa1d91c6b795e254b20f966611ceff8448c27ea24f85a6
7
+ data.tar.gz: c68b8311af7cd615eaa1ef6b84dc9126098988d725885e6499acd9acb743d4023474fda0ec10176c7d3a6eb2b7ab405936db8335a11290b60290b6ca80fa76ef
@@ -5,7 +5,6 @@ module ForestAdminAgent
5
5
  module Resources
6
6
  class List < AbstractAuthenticatedRoute
7
7
  include ForestAdminDatasourceToolkit::Components::Query::ConditionTree
8
- include ForestAdminDatasourceToolkit::Validations
9
8
 
10
9
  def setup_routes
11
10
  add_route('forest_list', 'get', '/:collection_name', ->(args) { handle_request(args) })
@@ -31,8 +30,6 @@ module ForestAdminAgent
31
30
  segment: ForestAdminAgent::Utils::QueryStringParser.parse_segment(@collection, args)
32
31
  )
33
32
 
34
- ConditionTreeValidator.validate(filter.condition_tree, @collection) if filter.condition_tree
35
-
36
33
  projection = ForestAdminAgent::Utils::QueryStringParser.parse_projection_with_pks(@collection, args)
37
34
  records = @collection.list(@caller, filter, projection)
38
35
 
@@ -52,6 +52,7 @@ module ForestAdminAgent
52
52
  )[0]
53
53
  token_data.delete('exp')
54
54
  token_data[:timezone] = timezone
55
+ token_data[:request] = { ip: args[:headers]['action_dispatch.remote_ip'].to_s }
55
56
 
56
57
  Caller.new(**token_data.transform_keys(&:to_sym))
57
58
  end
@@ -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.77"
10
+ LIANA_VERSION = "1.0.0-beta.78"
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.77"
2
+ VERSION = "1.0.0-beta.78"
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.77
4
+ version: 1.0.0.pre.beta.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu