cdmbl 0.2.20 → 0.2.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d015ba13c6af1dbce4fdd610f1445c1e7a62050
4
- data.tar.gz: 5374bec7147146fb4c69b1728013bb05ca51462e
3
+ metadata.gz: fd9fea6971b175d445d9e9ead144aa5e9a0b69f1
4
+ data.tar.gz: 2421f9df5f929333e2d1897c894f5144f732b53f
5
5
  SHA512:
6
- metadata.gz: 77de9a18808ce929ad3ed8a1e920d62d2300e85608d5ea7afad8402a3d0e4cd31593c942264521d97ea17f455f6d0ca2c73822fd70744bf9154d87646dabdf51
7
- data.tar.gz: 3a98ae96bf1dac23a5af699f4a057d658fbcd7b9c4100ca5b9122c61a93e0abc1705022880cfd17df8642ceccb5cf28173f7b6ce88312b6664f107812b5cb427
6
+ metadata.gz: 6dc0cf4f595fe3dc2a7227e56099552acaabf7c5783692de7313416443e8438bc280a8dae764a9a446623dec40d28259dce40f337bd2048f7ebf335f3f023428
7
+ data.tar.gz: 0092116fa74ab309e91c2f78e0d62dfab009053ef4ba831563ce1ad427ad716ebcd793b86ef2ddf16f718689a0d2f640c08d66251d9e4b6ed3b12d566a32b5bc
@@ -10,7 +10,7 @@ module CDMBL
10
10
  :sets
11
11
 
12
12
  include Sidekiq::Worker
13
-
13
+
14
14
  def perform(solr_config,
15
15
  etl_config,
16
16
  batch_size = 10,
@@ -45,7 +45,6 @@ module CDMBL
45
45
  sent_deleted = false
46
46
  extraction.local_identifiers.each_slice(batch_size) do |ids|
47
47
  delete_ids = (sent_deleted == false) ? extraction.deletable_ids : []
48
- CDMBL::LoaderNotification.call!(ids, delete_ids)
49
48
  ETLWorker.perform_async(solr_config,
50
49
  etl_config,
51
50
  batch_size,
@@ -58,11 +57,12 @@ module CDMBL
58
57
  end
59
58
 
60
59
  def load!
60
+ CDMBL::LoaderNotification.call!(transformation.records, deletables)
61
61
  etl_run.load!(deletables, transformation.records)
62
62
  end
63
63
 
64
64
  def transformation
65
- etl_run.transform(sets, records)
65
+ @transformation ||= etl_run.transform(sets, records)
66
66
  end
67
67
 
68
68
  def records
data/lib/cdmbl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CDMBL
2
- VERSION = "0.2.20"
2
+ VERSION = "0.2.21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cdmbl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.20
4
+ version: 0.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - chadfennell