bulkrax 9.3.1 → 9.3.2
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: 52b7c05e33d9749382619fe7fc1c8ced0fc007b72c5ac744838b6e7b68929828
|
|
4
|
+
data.tar.gz: 9557d6e4aa20d0c39f77fb716f52e67ae2ca7e2c20503cd7209ae166a75f9e53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d6ed45673433b73776134f4e8503ecfed23ff7907396118de2a29731b71bc5296829e6d80ad3835bb914c752cdedf47434587cc519f0a5a206173e136d5a395
|
|
7
|
+
data.tar.gz: 4d05030d27a91a1df0db7552d4fb431b10fc8fb06cf8384c98fe78142a7db674463c376de349270c476b1f9b5c556041db39469ed55cdd93b95538a12305d77e
|
|
@@ -108,7 +108,7 @@ module Bulkrax
|
|
|
108
108
|
def self.add_child_to_parent_work(parent:, child:)
|
|
109
109
|
parent = self.find(parent.id)
|
|
110
110
|
return true if parent.member_ids.include?(child.id)
|
|
111
|
-
parent.member_ids
|
|
111
|
+
parent.member_ids += [child.id]
|
|
112
112
|
Hyrax.persister.save(resource: parent)
|
|
113
113
|
end
|
|
114
114
|
|
|
@@ -116,7 +116,7 @@ module Bulkrax
|
|
|
116
116
|
# The resource added to a collection can be either a work or another collection.
|
|
117
117
|
def self.add_resource_to_collection(collection:, resource:, user:)
|
|
118
118
|
resource = self.find(resource.id)
|
|
119
|
-
resource.member_of_collection_ids
|
|
119
|
+
resource.member_of_collection_ids += [collection.id]
|
|
120
120
|
save!(resource: resource, user: user)
|
|
121
121
|
end
|
|
122
122
|
|
|
@@ -189,6 +189,7 @@ module Bulkrax
|
|
|
189
189
|
|
|
190
190
|
# save record if members were added
|
|
191
191
|
if @parent_record_members_added
|
|
192
|
+
Bulkrax.object_factory.save!(resource: parent_record, user: user)
|
|
192
193
|
reloaded_parent = Bulkrax.object_factory.find(parent_record.id)
|
|
193
194
|
Bulkrax.object_factory.update_index(resources: [reloaded_parent])
|
|
194
195
|
Bulkrax.object_factory.publish(event: 'object.membership.updated', object: reloaded_parent, user: @user)
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
module Bulkrax
|
|
4
4
|
class Status < ApplicationRecord
|
|
5
|
-
belongs_to :statusable, polymorphic: true, denormalize: { fields: %i[status_message error_class], if: :latest? }
|
|
6
|
-
belongs_to :runnable, polymorphic: true
|
|
7
|
-
|
|
8
5
|
if Rails.version < '7.1'
|
|
6
|
+
belongs_to :statusable, polymorphic: true, denormalize: { fields: %i[status_message error_class], if: :latest? }
|
|
7
|
+
belongs_to :runnable, polymorphic: true
|
|
9
8
|
serialize :error_backtrace, Array
|
|
10
9
|
else
|
|
10
|
+
belongs_to :statusable, polymorphic: true, denormalize: { fields: %i[status_message error_class], if: :latest? }, optional: true
|
|
11
|
+
belongs_to :runnable, polymorphic: true, optional: true
|
|
11
12
|
serialize :error_backtrace, coder: YAML, type: Array
|
|
12
13
|
end
|
|
13
14
|
|
data/lib/bulkrax/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bulkrax
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 9.3.
|
|
4
|
+
version: 9.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rob Kaufman
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rails
|
|
@@ -512,7 +511,6 @@ homepage: https://github.com/samvera-labs/bulkrax
|
|
|
512
511
|
licenses:
|
|
513
512
|
- Apache-2.0
|
|
514
513
|
metadata: {}
|
|
515
|
-
post_install_message:
|
|
516
514
|
rdoc_options: []
|
|
517
515
|
require_paths:
|
|
518
516
|
- lib
|
|
@@ -527,8 +525,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
527
525
|
- !ruby/object:Gem::Version
|
|
528
526
|
version: '0'
|
|
529
527
|
requirements: []
|
|
530
|
-
rubygems_version: 3.
|
|
531
|
-
signing_key:
|
|
528
|
+
rubygems_version: 3.6.8
|
|
532
529
|
specification_version: 4
|
|
533
530
|
summary: Import and export tool for Hyrax and Hyku
|
|
534
531
|
test_files: []
|