active-fedora 12.2.2 → 12.2.3
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 +4 -4
- data/lib/active_fedora/aggregation/list_source.rb +10 -0
- data/lib/active_fedora/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28cd0068c4a25635baa09d34627ae1d91950a1a2a3a9afa0f5dd1f301f3f6d1d
|
|
4
|
+
data.tar.gz: 99c7119d7fbc4c48de5c5feeff9d5be80f900a870652b29505c4a81da52a9139
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c78a7bca25217d723d12a665831d1e27344e6cd2748befb268e57c92c2e4c038269264a0e5a024baa200e901441f67fef2cca0c81afde4426b1832bc4a260a2
|
|
7
|
+
data.tar.gz: 05a4dbb9d8ed4a65e19e214be481c8bcc6ff0912593cc01bcb2fbbfcd72afe9004c0f452d424c9fdb31991192550e89bbcbbf86ab9c48c40e67e65f8f7eb7a47
|
|
@@ -61,6 +61,16 @@ module ActiveFedora
|
|
|
61
61
|
["ActiveFedora::Aggregation::ListSource"]
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
+
# Short circuit ActiveModel::Dirty which attempts to load the whole ordered list when calling nodes_will_change!
|
|
65
|
+
# which leads to a stack level too deep exception in some cases
|
|
66
|
+
# See https://github.com/samvera/hyrax/issues/4581
|
|
67
|
+
# This approach was also taken in ActiveFedora::File:
|
|
68
|
+
# See https://github.com/samvera/active_fedora/pull/1312/commits/7c8bbbefdacefd655a2ca653f5950c991e1dc999#diff-28356c4daa0d55cbaf97e4269869f510R100-R103
|
|
69
|
+
def attribute_will_change!(attr)
|
|
70
|
+
return super unless attr == 'nodes'
|
|
71
|
+
attributes_changed_by_setter[:nodes] = true
|
|
72
|
+
end
|
|
73
|
+
|
|
64
74
|
private
|
|
65
75
|
|
|
66
76
|
def persist_ordered_self
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active-fedora
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 12.2.
|
|
4
|
+
version: 12.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Zumwalt
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2021-03-25 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rsolr
|