forest_admin_agent 1.50.1 → 1.51.0
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: 900998b6c8ec46c080930054d90be7ea12628531056dd92938d2412a9f5a9b20
|
|
4
|
+
data.tar.gz: bc73d22be8f8ac6f2003a609ed3013cc38874df7c1c123c77bf5c3c75586973f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdf57da058773123a59583c1434f23a005254822856187c8d9812c9112205f8a96ddb36835d501c26bf4ac2fdffa102222a2ccad421878776116cce4e1b85045
|
|
7
|
+
data.tar.gz: 84db23c5a4b1a4b16ba0098bd481631cec94ed867bb67bded2f85d3a6da7479aac7e06d63902ad5b9c1bec5e452540ae762fe4047727bb6eda4cf02d007a8a92
|
|
@@ -153,7 +153,7 @@ module ForestAdminAgent
|
|
|
153
153
|
|
|
154
154
|
result = context.child_collection.aggregate(context.caller, old_fk_owner_filter,
|
|
155
155
|
Aggregation.new(operation: 'Count'), 1)
|
|
156
|
-
return unless
|
|
156
|
+
return unless result.first&.[]('value')&.positive?
|
|
157
157
|
|
|
158
158
|
# Avoids updating records to null if it's not authorized by the ORM
|
|
159
159
|
# and if there is no record to update (the filter returns no record)
|
|
@@ -206,7 +206,7 @@ module ForestAdminAgent
|
|
|
206
206
|
|
|
207
207
|
result = context.child_collection.aggregate(context.caller, old_fk_owner_filter,
|
|
208
208
|
Aggregation.new(operation: 'Count'), 1)
|
|
209
|
-
return unless
|
|
209
|
+
return unless result.first&.[]('value')&.positive?
|
|
210
210
|
|
|
211
211
|
# Avoids updating records to null if it's not authorized by the ORM
|
|
212
212
|
# and if there is no record to update (the filter returns no record)
|
|
@@ -58,6 +58,8 @@ module ForestAdminAgent
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
schema[:pendingRefreshInterval] = action.pending_refresh_interval if action.pending_refresh_interval
|
|
62
|
+
|
|
61
63
|
return schema if layout.all? { |element| element.component == 'Input' }
|
|
62
64
|
|
|
63
65
|
schema[:layout] = build_layout(layout)
|
|
@@ -99,6 +101,7 @@ module ForestAdminAgent
|
|
|
99
101
|
widgetEdit: GeneratorActionFieldWidget.build_widget_options(field)
|
|
100
102
|
}
|
|
101
103
|
|
|
104
|
+
output[:isPending] = true if field.is_pending
|
|
102
105
|
output[:hook] = 'changeHook' if field.respond_to?(:watch_changes) && field.watch_changes
|
|
103
106
|
|
|
104
107
|
if ActionFields.collection_field?(field)
|