forest_admin_agent 1.0.0.pre.beta.53 → 1.0.0.pre.beta.55

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: 58f20bfe5d2243e06eb35a20c5ec51e6610d81d92272f782eaace19112314a21
4
- data.tar.gz: 85cfe4e3217e0ca0a444ab642dc9d369a6a5843b7ca947ecd4ff86e9b0aca5dd
3
+ metadata.gz: 2a6aac9fa2c3c0b12bd8267a6c571abd8d8879f5f023222fc475e811c7224dcf
4
+ data.tar.gz: c8c2d673bdac6aab94ee466b7da69094ef659587c12e08010123486702f70d62
5
5
  SHA512:
6
- metadata.gz: 7ca98b9bfcc25c40c15c822b745bbe571ece3499bfc2b68c4ecb682fecfb66e0ef3a525613dcf30ebae432cbf0e9e199891524f3d6df19a92ccdc121203da919
7
- data.tar.gz: 6f11399dc1a82b75b15e79962704ec54b3e0c33bad6eab51285cd22f3a871de89b625af88a6e2e5b458c7fb999a98c3f266fb1b1bea84972072f963b1f6244c8
6
+ metadata.gz: 5194985c34dfd830afdf542b8e9b480e7d44b3ed5a2eaae8eddd70f036905d85d0715208adc04f6244351964b76d0e412fa0fbbb3318f594556660a13ec801bc
7
+ data.tar.gz: b5633f55be4046efc597450a69ffdf9ca5e9835d6e806dc1578ba734fe3c3cf51c338f78e1f53dbf5971dee512a6d6abd669b07bbaafcc5ee22738bd435c66b2
@@ -60,7 +60,10 @@ module ForestAdminAgent
60
60
  objects.each do |obj|
61
61
  relation = ForestAdminAgent::Facades::Container.datasource.get_collection(options[:class_name]).schema[:fields][attribute_name]
62
62
  relation_class_name = ForestAdminAgent::Facades::Container.datasource.get_collection(relation.foreign_collection).name
63
- obj_serializer = JSONAPI::Serializer.find_serializer(obj, options)
63
+ option_relation = options.clone
64
+ option_relation[:class_name] = relation_class_name
65
+ obj_serializer = JSONAPI::Serializer.find_serializer(obj, option_relation)
66
+
64
67
  # Use keys of ['posts', '1'] for the results to enforce uniqueness.
65
68
  # Spec: A compound document MUST NOT include more than one resource object for each
66
69
  # type and id pair.
@@ -200,7 +203,6 @@ module ForestAdminAgent
200
203
  # of the internal special merging logic.
201
204
  find_recursive_relationships(obj, inclusion_tree, relationship_data, passthrough_options)
202
205
  end
203
-
204
206
  result['included'] = relationship_data.map do |_, data|
205
207
  included_passthrough_options = {}
206
208
  included_passthrough_options[:base_url] = passthrough_options[:base_url]
@@ -7,7 +7,7 @@ module ForestAdminAgent
7
7
  class SchemaEmitter
8
8
  LIANA_NAME = "forest-rails"
9
9
 
10
- LIANA_VERSION = "1.0.0-beta.53"
10
+ LIANA_VERSION = "1.0.0-beta.55"
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.53"
2
+ VERSION = "1.0.0-beta.55"
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.53
4
+ version: 1.0.0.pre.beta.55
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: 2024-06-10 00:00:00.000000000 Z
12
+ date: 2024-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport