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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04a0f3a304bb9913cc223be4945bd3d33daed83d90296fcc9aed8b389bfdbcd3
4
- data.tar.gz: 72f4706d2d82fb299a2bd4597a69eb0db5c95875fd8a385e5d983c174b2ee197
3
+ metadata.gz: 28cd0068c4a25635baa09d34627ae1d91950a1a2a3a9afa0f5dd1f301f3f6d1d
4
+ data.tar.gz: 99c7119d7fbc4c48de5c5feeff9d5be80f900a870652b29505c4a81da52a9139
5
5
  SHA512:
6
- metadata.gz: b2596f8e1ef7db12e7cd0a84f41d3d8076cb5fe8f0da60942796d1d360f42de79024e6aa95bc053bffdd61358da56bef5cc870431451d4bacc086c2391b44f5e
7
- data.tar.gz: e6db68033a7e8e9fe2c4787cd8fa66e2db42e136c925a280649560d26a7558b6f68117269f6e29e5e594ed7a74824b10c59d711a784a4cb648743b65e78de965
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
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = '12.2.2'.freeze
2
+ VERSION = '12.2.3'.freeze
3
3
  end
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.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: 2020-06-19 00:00:00.000000000 Z
13
+ date: 2021-03-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsolr