forest_admin_datasource_customizer 1.12.10 → 1.12.11
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 551b42d83f0aca1a0ef7e34ee85ff08d62095eef0be1cca80cdcb441901d3d37
|
|
4
|
+
data.tar.gz: 8986b3600ed6c76afe85a261fb96fefe3efd1787fb8a5344dde92c4325e714cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cfa63f6edc340ae29da5c4f41a666ef6cf36d661b88816d57996cf9d5eb39c32e8f132c8f10a8e4026080dfefd6d986fa8d4389725d04d4cca9e9773946bfde
|
|
7
|
+
data.tar.gz: 78da51670a5d239ff76787c97b1f09ea677857dc71ece9ef31bc9866860b032e57ae88027b66af588d3736e6d3dccf13def6cececdb5fbc97aaa425fc3254e28
|
data/lib/forest_admin_datasource_customizer/decorators/binary/binary_collection_decorator.rb
CHANGED
|
@@ -91,6 +91,12 @@ module ForestAdminDatasourceCustomizer
|
|
|
91
91
|
prefix, suffix = leaf.field.split(':')
|
|
92
92
|
schema = @child_collection.schema[:fields][prefix]
|
|
93
93
|
|
|
94
|
+
unless schema
|
|
95
|
+
available_fields = @child_collection.schema[:fields].keys.join(', ')
|
|
96
|
+
raise Exceptions::ValidationError,
|
|
97
|
+
"Field not found: '#{@child_collection.name}.#{prefix}'. Available fields: #{available_fields}"
|
|
98
|
+
end
|
|
99
|
+
|
|
94
100
|
if schema.type != 'Column'
|
|
95
101
|
condition_tree = @datasource.get_collection(schema.foreign_collection).convert_condition_tree_leaf(
|
|
96
102
|
leaf.override(field: suffix)
|
|
@@ -134,6 +140,12 @@ module ForestAdminDatasourceCustomizer
|
|
|
134
140
|
prefix, suffix = path.split(':')
|
|
135
141
|
field = @child_collection.schema[:fields][prefix]
|
|
136
142
|
|
|
143
|
+
unless field
|
|
144
|
+
available_fields = @child_collection.schema[:fields].keys.join(', ')
|
|
145
|
+
raise Exceptions::ValidationError,
|
|
146
|
+
"Field not found: '#{@child_collection.name}.#{prefix}'. Available fields: #{available_fields}"
|
|
147
|
+
end
|
|
148
|
+
|
|
137
149
|
return value if field.type == 'PolymorphicManyToOne'
|
|
138
150
|
|
|
139
151
|
if field.type != 'Column'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: forest_admin_datasource_customizer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.12.
|
|
4
|
+
version: 1.12.11
|
|
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-10-
|
|
12
|
+
date: 2025-10-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|