ddr-batch 1.2.0.rc4 → 1.2.0.rc5
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa7c749e7a4d5890af0a5361686efb35b6e14a25
|
4
|
+
data.tar.gz: e9b9bc82f92990cd7f1c47f20c384ee9cf375b4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6d004c54939cd8494bd24270c0dd9dbbd2307bc5a99b44d27f7c8f07c89ac3215e9b46022b205ac48c14526319912ddb1de0ab3245a2f429380294f14e9f51d
|
7
|
+
data.tar.gz: 3c689cb6e24dce70e3325e3414804c422049d8b18125457842bc5b156bc0ae0ec1917a3e512ab8fe3e8e517c269444337f34302c69c588ab5475293165ed7371
|
@@ -13,6 +13,7 @@ module Ddr::Batch
|
|
13
13
|
|
14
14
|
def batch_object_handled(batch_object, batch)
|
15
15
|
log_batch_object_messages(batch_object, batch.id)
|
16
|
+
batch_object.update!(handled: true)
|
16
17
|
unless batch.unhandled_objects?
|
17
18
|
ActiveSupport::Notifications.instrument('finished.batch.batch.ddr', batch_id: batch.id)
|
18
19
|
end
|
@@ -12,8 +12,6 @@ module Ddr::Batch
|
|
12
12
|
ActiveSupport::Notifications.instrument("handled.batchobject.batch.ddr",
|
13
13
|
batch_object_id: batch_object_id) do |payload|
|
14
14
|
batch_object = BatchObject.find(batch_object_id)
|
15
|
-
# Mark batch object as 'handled'
|
16
|
-
batch_object.update!(handled: true)
|
17
15
|
# Validate batch object
|
18
16
|
errors = batch_object.validate
|
19
17
|
# Process batch object or record validation errors
|
data/lib/ddr/batch/version.rb
CHANGED