forest_admin_agent 1.0.0.pre.beta.76 → 1.0.0.pre.beta.77

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: c8512cd53690bf9d4dfe5ad0ee894fa308390e22683ff411726f6e6892763215
4
- data.tar.gz: e96548c4909f79841112435af1bb62065e7dfcad7f740df2f440cd9205159129
3
+ metadata.gz: acb44dc3e46d11e1cf6ff2cc910f8c337bf499df84a12e508f641af9b6a07188
4
+ data.tar.gz: 65f2a20cebb62e62b9ed67de3ef692b71765eaf61b46eb0ff603606577efde9f
5
5
  SHA512:
6
- metadata.gz: 77678a218ecb0df323f22e5ac63472114f0e3f8bd3cbec43de66ae4401fddb67d177e0e7b41122f9d11b9bc9728700dd0692f404a18f3088b41605085d027f45
7
- data.tar.gz: df00ead64c5c4fa35f5a71439b026e386a447d2c318724f8940bd5d6ca2bc9de7dd249ca9f4ca879afcd47d97e508df01eb34b501ecfdc31fa53e912ec72c766
6
+ metadata.gz: 5086df998e3f22f9d04772f29375c33f13469aa98849045a6db9c96d1569286258f7c97fb75bb24a0d4a3dfbe61c7193d17932c625e66ee323541a37d9f676db
7
+ data.tar.gz: 957247e377111b6b48c5e69fdf375bbf7c3890043a254a16af7cfe2a5ce366d7011222dffd60438413cd3c59444399a5d8eec0371787112370773d4a0f5e94c9
@@ -5,6 +5,7 @@ module ForestAdminAgent
5
5
  module Resources
6
6
  class List < AbstractAuthenticatedRoute
7
7
  include ForestAdminDatasourceToolkit::Components::Query::ConditionTree
8
+ include ForestAdminDatasourceToolkit::Validations
8
9
 
9
10
  def setup_routes
10
11
  add_route('forest_list', 'get', '/:collection_name', ->(args) { handle_request(args) })
@@ -30,6 +31,8 @@ module ForestAdminAgent
30
31
  segment: ForestAdminAgent::Utils::QueryStringParser.parse_segment(@collection, args)
31
32
  )
32
33
 
34
+ ConditionTreeValidator.validate(filter.condition_tree, @collection) if filter.condition_tree
35
+
33
36
  projection = ForestAdminAgent::Utils::QueryStringParser.parse_projection_with_pks(@collection, args)
34
37
  records = @collection.list(@caller, filter, projection)
35
38
 
@@ -29,9 +29,9 @@ module ForestAdminAgent
29
29
  end
30
30
 
31
31
  if context_variable_key.start_with?(USER_VALUE_TAG_PREFIX)
32
+ tag_key = context_variable_key[USER_VALUE_TAG_PREFIX.length..]
32
33
  user[:tags].each do |tag|
33
- match_key = context_variable_key[USER_VALUE_TAG_PREFIX.length..]
34
- return tag[match_key] if tag.key?(match_key)
34
+ return tag['value'] if tag['key'] == tag_key
35
35
  end
36
36
  end
37
37
 
@@ -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.76"
10
+ LIANA_VERSION = "1.0.0-beta.77"
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.76"
2
+ VERSION = "1.0.0-beta.77"
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.76
4
+ version: 1.0.0.pre.beta.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu