cdmbl 0.2.18 → 0.2.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cdmbl/default_loader_notification.rb +8 -0
- data/lib/cdmbl/etl_worker.rb +5 -1
- data/lib/cdmbl/hooks.rb +2 -0
- data/lib/cdmbl/version.rb +1 -1
- data/lib/cdmbl.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4de2069eb64be456e0e8c318985c1a8d2fb9d94
|
4
|
+
data.tar.gz: 66f6849b0a4a95c946cd438c2706ede5fa1f9048
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99c9d162f60024e40be272a21e72ece5dec8db85f49166bb1b588901fde3453edceb9f8f156b07274255c4ec14fcf7b28971f6673ad93b9f46d19b88bccfa0a5
|
7
|
+
data.tar.gz: 88add0ed3ad4495bc7a5afe3274b7ff792f98b368f0a895cbf96d2c1a3f845c7bb421f2a1d73a69c22f2d0aed6fb6d42d3aa2380250797bae9f14e666738ae39
|
data/lib/cdmbl/etl_worker.rb
CHANGED
@@ -38,13 +38,17 @@ module CDMBL
|
|
38
38
|
private
|
39
39
|
|
40
40
|
def ingest_batches!
|
41
|
+
sent_deleted = false
|
41
42
|
extraction.local_identifiers.each_slice(10) do |ids|
|
43
|
+
delete_ids = (sent_deleted == false) ? extraction.deletable_ids : []
|
44
|
+
CDMBL::LoaderNotification.call!(ids, delete_ids)
|
42
45
|
ETLWorker.perform_async(solr_config,
|
43
46
|
etl_config,
|
44
47
|
is_recursive,
|
45
48
|
ids,
|
46
|
-
|
49
|
+
delete_ids,
|
47
50
|
extraction.set_lookup)
|
51
|
+
sent_deleted = true
|
48
52
|
end
|
49
53
|
end
|
50
54
|
|
data/lib/cdmbl/hooks.rb
CHANGED
@@ -6,6 +6,8 @@ module CDMBL
|
|
6
6
|
hook(pattern: name.to_s, default: DefaultCompletedCallback)
|
7
7
|
elsif name.to_s == 'OaiNotification'
|
8
8
|
hook(pattern: name.to_s, default: DefaultOaiNotification)
|
9
|
+
elsif name.to_s == 'LoaderNotification'
|
10
|
+
hook(pattern: name.to_s, default: DefaultLoaderNotification)
|
9
11
|
elsif name.to_s == 'CdmNotification'
|
10
12
|
hook(pattern: name.to_s, default: DefaultCdmNotification)
|
11
13
|
end
|
data/lib/cdmbl/version.rb
CHANGED
data/lib/cdmbl.rb
CHANGED
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.
|
4
|
+
version: 0.2.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chadfennell
|
@@ -210,6 +210,7 @@ files:
|
|
210
210
|
- lib/cdmbl.rb
|
211
211
|
- lib/cdmbl/default_cdm_notification.rb
|
212
212
|
- lib/cdmbl/default_completed_callback.rb
|
213
|
+
- lib/cdmbl/default_loader_notification.rb
|
213
214
|
- lib/cdmbl/default_oai_notification.rb
|
214
215
|
- lib/cdmbl/default_solr.rb
|
215
216
|
- lib/cdmbl/etl_run.rb
|