dor-services 5.1.1 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/dor-services.rb +1 -2
- data/lib/dor/config.rb +5 -6
- data/lib/dor/datastreams/content_metadata_ds.rb +17 -20
- data/lib/dor/datastreams/datastream_spec_solrizer.rb +1 -1
- data/lib/dor/datastreams/desc_metadata_ds.rb +7 -7
- data/lib/dor/datastreams/embargo_metadata_ds.rb +2 -7
- data/lib/dor/datastreams/events_ds.rb +9 -9
- data/lib/dor/datastreams/identity_metadata_ds.rb +29 -34
- data/lib/dor/datastreams/rights_metadata_ds.rb +1 -1
- data/lib/dor/datastreams/role_metadata_ds.rb +0 -1
- data/lib/dor/datastreams/simple_dublin_core_ds.rb +12 -13
- data/lib/dor/datastreams/version_metadata_ds.rb +11 -15
- data/lib/dor/datastreams/workflow_definition_ds.rb +18 -22
- data/lib/dor/datastreams/workflow_ds.rb +24 -36
- data/lib/dor/migrations/identifiable/assert_adminPolicy.rb +1 -1
- data/lib/dor/migrations/identifiable/fix_model_assertions.rb +1 -1
- data/lib/dor/migrations/identifiable/record_remediation.rb +2 -2
- data/lib/dor/migrations/identifiable/uriify_augmented_contentlocation_refs.rb +1 -1
- data/lib/dor/migrations/identifiable/uriify_contentlocation_refs.rb +1 -1
- data/lib/dor/migrations/processable/unify_workflows.rb +4 -4
- data/lib/dor/migrations/versionable/add_missing_version_md.rb +2 -2
- data/lib/dor/models/assembleable.rb +2 -2
- data/lib/dor/models/collection.rb +1 -0
- data/lib/dor/models/contentable.rb +3 -3
- data/lib/dor/models/describable.rb +16 -13
- data/lib/dor/models/editable.rb +3 -3
- data/lib/dor/models/embargoable.rb +2 -2
- data/lib/dor/models/eventable.rb +2 -2
- data/lib/dor/models/geoable.rb +14 -18
- data/lib/dor/models/governable.rb +1 -1
- data/lib/dor/models/identifiable.rb +36 -57
- data/lib/dor/models/itemizable.rb +6 -6
- data/lib/dor/models/presentable.rb +12 -12
- data/lib/dor/models/preservable.rb +2 -5
- data/lib/dor/models/processable.rb +19 -25
- data/lib/dor/models/publishable.rb +2 -2
- data/lib/dor/models/releaseable.rb +165 -212
- data/lib/dor/models/shelvable.rb +10 -14
- data/lib/dor/models/upgradable.rb +11 -11
- data/lib/dor/models/versionable.rb +16 -21
- data/lib/dor/models/workflow_object.rb +3 -3
- data/lib/dor/services/cleanup_reset_service.rb +32 -27
- data/lib/dor/services/digital_stacks_service.rb +3 -3
- data/lib/dor/services/merge_service.rb +4 -8
- data/lib/dor/services/metadata_handlers/catalog_handler.rb +1 -1
- data/lib/dor/services/metadata_handlers/mdtoolkit_handler.rb +4 -6
- data/lib/dor/services/metadata_service.rb +20 -22
- data/lib/dor/services/registration_service.rb +6 -8
- data/lib/dor/services/reset_workspace_service.rb +14 -16
- data/lib/dor/services/sdr_ingest_service.rb +2 -6
- data/lib/dor/services/search_service.rb +3 -3
- data/lib/dor/services/suri_service.rb +2 -3
- data/lib/dor/services/technical_metadata_service.rb +2 -3
- data/lib/dor/utils/ng_tidy.rb +6 -6
- data/lib/dor/utils/predicate_patch.rb +1 -1
- data/lib/dor/utils/solr_doc_helper.rb +2 -2
- data/lib/dor/version.rb +1 -1
- data/lib/dor/workflow/document.rb +27 -33
- data/lib/dor/workflow/graph.rb +34 -37
- data/lib/dor/workflow/process.rb +8 -8
- data/lib/tasks/rdoc.rake +5 -5
- metadata +4 -11
- data/bin/dor-indexer +0 -108
- data/bin/dor-indexerd +0 -73
- data/config/certs/robots-dor-dev.crt +0 -29
- data/config/certs/robots-dor-dev.key +0 -27
- data/config/dev_console_env.rb +0 -78
data/lib/dor/workflow/process.rb
CHANGED
@@ -23,8 +23,8 @@ module Workflow
|
|
23
23
|
'batch_limit' => node['batch-limit'] ? node['batch-limit'].to_i : nil,
|
24
24
|
'error_limit' => node['error-limit'] ? node['error-limit'].to_i : nil,
|
25
25
|
'prerequisite' => node.xpath('prereq').collect { |p|
|
26
|
-
repo = (p['repository'].nil?
|
27
|
-
wf = (p['workflow'].nil?
|
26
|
+
repo = (p['repository'].nil? || p['repository'] == @repo) ? nil : p['repository']
|
27
|
+
wf = (p['workflow'].nil? || p['workflow'] == @workflow) ? nil : p['workflow']
|
28
28
|
[repo,wf,p.text.to_s].compact.join(':')
|
29
29
|
},
|
30
30
|
'priority' => node['priority'] ? node['priority'].to_i : 0
|
@@ -46,19 +46,19 @@ module Workflow
|
|
46
46
|
def completed? ; self.status == 'completed' ; end
|
47
47
|
def error? ; self.status == 'error' ; end
|
48
48
|
def waiting? ; self.status == 'waiting' ; end
|
49
|
-
def date_time ;@attrs['datetime'] ; end
|
49
|
+
def date_time ;@attrs['datetime'] ; end
|
50
50
|
|
51
51
|
def archived?
|
52
|
-
return true if
|
52
|
+
return true if @attrs['archived'] =~ /true$/i
|
53
53
|
return false
|
54
54
|
end
|
55
55
|
|
56
56
|
def ready?
|
57
|
-
self.waiting?
|
57
|
+
self.waiting? && (!self.prerequisite.nil?) && self.prerequisite.all? { |pr| (prq = self.owner[pr]) && prq.completed? }
|
58
58
|
end
|
59
59
|
|
60
60
|
def blocked?
|
61
|
-
self.waiting?
|
61
|
+
self.waiting? && (!self.prerequisite.nil?) && self.prerequisite.any? { |pr| (prq = self.owner[pr]) && (prq.error? || prq.blocked?) }
|
62
62
|
end
|
63
63
|
|
64
64
|
def state
|
@@ -92,8 +92,8 @@ module Workflow
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def to_hash
|
95
|
-
@attrs.reject { |k,v| v.nil?
|
95
|
+
@attrs.reject { |k,v| v.nil? || v == 0 || (v.respond_to?(:empty?) && v.empty?) }
|
96
96
|
end
|
97
97
|
end
|
98
98
|
end
|
99
|
-
end
|
99
|
+
end
|
data/lib/tasks/rdoc.rake
CHANGED
@@ -10,11 +10,11 @@ namespace :doc do
|
|
10
10
|
require 'yard/rake/yardoc_task'
|
11
11
|
|
12
12
|
YARD::Rake::YardocTask.new(:generate) do |yt|
|
13
|
-
yt.files
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
yt.files = Dir.glob(File.join(project_root, 'lib', '*.rb')) +
|
14
|
+
Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) + ['-'] +
|
15
|
+
[ File.join(project_root, 'README.md') ] +
|
16
|
+
[ File.join(project_root, 'LICENSE') ]
|
17
|
+
|
18
18
|
yt.options = ['--output-dir', doc_destination, '--readme', 'README.md']
|
19
19
|
end
|
20
20
|
rescue LoadError
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Klein
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2015-
|
15
|
+
date: 2015-09-05 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: active-fedora
|
@@ -559,19 +559,12 @@ dependencies:
|
|
559
559
|
description: Contains classes to register objects and initialize workflows
|
560
560
|
email:
|
561
561
|
- mbklein@stanford.edu
|
562
|
-
executables:
|
563
|
-
- dor-indexer
|
564
|
-
- dor-indexerd
|
562
|
+
executables: []
|
565
563
|
extensions: []
|
566
564
|
extra_rdoc_files: []
|
567
565
|
files:
|
568
|
-
- bin/dor-indexer
|
569
|
-
- bin/dor-indexerd
|
570
566
|
- config/certs/README
|
571
|
-
- config/certs/robots-dor-dev.crt
|
572
|
-
- config/certs/robots-dor-dev.key
|
573
567
|
- config/config_defaults.yml
|
574
|
-
- config/dev_console_env.rb
|
575
568
|
- config/dev_console_env.rb.example
|
576
569
|
- config/predicate_mappings.yml
|
577
570
|
- lib/dor-services.rb
|
@@ -672,7 +665,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
672
665
|
version: 1.3.6
|
673
666
|
requirements: []
|
674
667
|
rubyforge_project:
|
675
|
-
rubygems_version: 2.
|
668
|
+
rubygems_version: 2.4.8
|
676
669
|
signing_key:
|
677
670
|
specification_version: 4
|
678
671
|
summary: Ruby implmentation of DOR services used by the SULAIR Digital Library
|
data/bin/dor-indexer
DELETED
@@ -1,108 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'optparse'
|
5
|
-
require 'stomp'
|
6
|
-
require 'timeout'
|
7
|
-
require 'dor-services'
|
8
|
-
|
9
|
-
options = { :log_level => Logger::WARN }
|
10
|
-
|
11
|
-
optparse = OptionParser.new do|opts|
|
12
|
-
opts.banner = "Usage: #{File.basename(__FILE__)} [options]"
|
13
|
-
|
14
|
-
options[:dor_config] = nil
|
15
|
-
opts.on( '--dor-config PATH', 'Load the dor-services configuration file at this path' ) do |path|
|
16
|
-
puts "Configuring dor-services..."
|
17
|
-
options[:dor_config] = path
|
18
|
-
require options[:dor_config]
|
19
|
-
end
|
20
|
-
|
21
|
-
options[:destination] = '/topic/fedora.apim.update'
|
22
|
-
opts.on('-d','--destination TOPIC', 'Topic to listen to') do |destination|
|
23
|
-
options[:destination] = destination
|
24
|
-
end
|
25
|
-
|
26
|
-
options[:client_id] = "fedora_stomper"
|
27
|
-
opts.on('-c', '--client-id ID', 'Stomp client ID') do |client_id|
|
28
|
-
Dor::Config.stomp.client_id = client_id
|
29
|
-
end
|
30
|
-
|
31
|
-
opts.on('-v', 'Verbose') do
|
32
|
-
options[:log_level] -= 1 if options[:log_level] > 0
|
33
|
-
end
|
34
|
-
|
35
|
-
opts.on('-h', '--help', 'Display this screen') do
|
36
|
-
puts opts
|
37
|
-
exit
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
optparse.parse!
|
42
|
-
|
43
|
-
begin; require 'rubygems'; rescue; end
|
44
|
-
|
45
|
-
unless options[:dor_config]
|
46
|
-
$stderr.puts "The --dor-config PATH option is mandatory. Please provide the path to a valid dor-services configuration file."
|
47
|
-
exit 1
|
48
|
-
end
|
49
|
-
|
50
|
-
puts "loading listener"
|
51
|
-
|
52
|
-
begin
|
53
|
-
@clientid = options[:client_id]
|
54
|
-
@destination = options[:destination]
|
55
|
-
|
56
|
-
|
57
|
-
@conn = Dor::Config.stomp.connection
|
58
|
-
$stderr.print Time.now.to_s + " Getting output from #{@destination}\n"
|
59
|
-
|
60
|
-
@conn.subscribe(@destination, {"activemq.subscriptionName" => @clientid, :ack =>"client" })
|
61
|
-
while true
|
62
|
-
|
63
|
-
begin
|
64
|
-
Timeout::timeout(300) do
|
65
|
-
@msg = @conn.receive
|
66
|
-
end
|
67
|
-
if @msg.nil?
|
68
|
-
$stderr.print 'nil message\n'
|
69
|
-
else
|
70
|
-
pid = @msg.headers["pid"]
|
71
|
-
method = @msg.headers["methodName"]
|
72
|
-
|
73
|
-
if ["addDatastream", "addRelationship","ingest","modifyDatastreamByValue","modifyDatastreamByReference","modifyObject","purgeDatastream","purgeRelationship","reindex"].include? method
|
74
|
-
begin
|
75
|
-
obj = Dor.load_instance pid
|
76
|
-
Dor::SearchService.solr.add(obj.to_solr, :add_attributes => {:commitWithin => 10}) unless obj.nil?
|
77
|
-
rescue
|
78
|
-
end
|
79
|
-
elsif method == "purgeObject"
|
80
|
-
Dor::SearchService.solr.delete_by_id(pid)
|
81
|
-
else
|
82
|
-
$stderr.print Time.now.to_s + " Unknown Method: #{method} for PID #{pid}"
|
83
|
-
end
|
84
|
-
$stderr.print Time.now.to_s + " updated solr index for #{pid}\n"
|
85
|
-
@conn.ack @msg.headers["message-id"]
|
86
|
-
end
|
87
|
-
rescue Timeout::Error
|
88
|
-
begin
|
89
|
-
$stderr.print Time.now.to_s +" Sending heartbeat\n"
|
90
|
-
@conn.begin('heartbeat')
|
91
|
-
@conn.commit('heartbeat')
|
92
|
-
rescue Exception => e
|
93
|
-
body = "Unable to send heartbeat to broker\n"
|
94
|
-
body << "\n\nExeption:\n" << he.inspect << "\n" << he.backtrace.join("\n")
|
95
|
-
$stderr.print(Time.now.to_s + " Unable to send heartbeat")
|
96
|
-
$stderr.print(body)
|
97
|
-
end
|
98
|
-
|
99
|
-
|
100
|
-
rescue Exception => e
|
101
|
-
$stderr.print Time.now.to_s + " failed to update solr index for #{pid}: #<#{e.class.name}: #{e.message}>"
|
102
|
-
end
|
103
|
-
end
|
104
|
-
@conn.join
|
105
|
-
rescue Exception => e
|
106
|
-
p e
|
107
|
-
end
|
108
|
-
|
data/bin/dor-indexerd
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'daemons'
|
5
|
-
require 'stomp'
|
6
|
-
|
7
|
-
banner=<<-EOC
|
8
|
-
Usage: #{File.basename(__FILE__)} command --dor-config PATH [options]
|
9
|
-
PATH must point to a valid dor-services configuration file
|
10
|
-
Commands:
|
11
|
-
start start an instance of the application
|
12
|
-
stop stop all instances of the application
|
13
|
-
restart stop all instances and restart them afterwards
|
14
|
-
status show status (PID) of application instances
|
15
|
-
Options:
|
16
|
-
--dor-config PATH Load the dor-services configuration file at this path
|
17
|
-
-d, --destination TOPIC Topic to listen to (default: /topic/fedora.apim.update)
|
18
|
-
-c, --client-id Stomp client ID (default: fedora_stomper)
|
19
|
-
-h, --help Display this screen
|
20
|
-
EOC
|
21
|
-
|
22
|
-
|
23
|
-
# check for a valid command
|
24
|
-
unless ['start','stop','restart','status'].include? ARGV[0]
|
25
|
-
puts banner
|
26
|
-
exit 7
|
27
|
-
end
|
28
|
-
|
29
|
-
if ARGV.include?('-h') || ARGV.include?('--help')
|
30
|
-
puts banner
|
31
|
-
exit 0
|
32
|
-
end
|
33
|
-
|
34
|
-
# Make sure --dor-config was set for the start and restart commands
|
35
|
-
if ARGV[0] == 'start' || ARGV[0] == 'restart'
|
36
|
-
unless ARGV[1] == '--dor-config'
|
37
|
-
puts "ERROR: You must --dor-config to specify the path to a valid dor-services gem configuration file"
|
38
|
-
exit 8
|
39
|
-
end
|
40
|
-
end
|
41
|
-
#4th arg should be --log_dir and 5th is the path.
|
42
|
-
log_dir=nil
|
43
|
-
if ARGV[3]=='--log_dir'
|
44
|
-
log_dir=ARGV[4]
|
45
|
-
else
|
46
|
-
puts "Log dir not specified"
|
47
|
-
end
|
48
|
-
|
49
|
-
|
50
|
-
if log_dir.empty?
|
51
|
-
File.join(Dir.pwd,'log')
|
52
|
-
end
|
53
|
-
|
54
|
-
|
55
|
-
options = {
|
56
|
-
:multiple=>ARGV.any? { |arg| arg =~ %r{^/queue/}},
|
57
|
-
:dir_mode=>:normal,
|
58
|
-
:dir=>'/tmp',
|
59
|
-
:log_dir=> log_dir,
|
60
|
-
:log_output=>true,
|
61
|
-
:backtrace=>true
|
62
|
-
}
|
63
|
-
argv_array = []
|
64
|
-
argv_array << ARGV[0]
|
65
|
-
argv_array << '--'
|
66
|
-
ARGV[1..-1].each {|ele| argv_array << ele }
|
67
|
-
options[:ARGV] = argv_array
|
68
|
-
|
69
|
-
version = '>=0'
|
70
|
-
#app = Gem.bin_path('dor-services','dor-indexer',version)
|
71
|
-
app = File.expand_path('../dor-indexer',__FILE__)
|
72
|
-
Daemons.run(app,options)
|
73
|
-
|
@@ -1,29 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIE9zCCAt8CCQCcUJVDTu7rTjANBgkqhkiG9w0BAQUFADCBvzELMAkGA1UEBhMC
|
3
|
-
VVMxEzARBgNVBAgTCkNhbGlmb3JuaWExETAPBgNVBAcTCFN0YW5mb3JkMRwwGgYD
|
4
|
-
VQQKExNTdGFuZm9yZCBVbml2ZXJzaXR5MRIwEAYDVQQLEwlMaWJyYXJpZXMxJTAj
|
5
|
-
BgNVBAMTHFNVTCBET1IgKGRldi90ZXN0KSBhY2Nlc3MgQ0ExLzAtBgkqhkiG9w0B
|
6
|
-
CQEWIHN1bC13ZWJtYXN0ZXJAbGlzdHMuc3RhbmZvcmQuZWR1MB4XDTEy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|
23
|
-
Wu0JX3zR3y+IMczQ+tRGmNiU5qXhCJ4fbQHSeGqIN3Io7h/RR6E/QlJU59RrRG/a
|
24
|
-
SjqAV+ECgYEA2mA5VFK3jECnLde+biEaXidIOuBMcqaP0VG6sBwz2wTGSTBE1WkG
|
25
|
-
6prCD0McWVAgDTm3MMKxeuMaoW5eEi83+G+CywLaTBpc8Hz7qgRhBpKhRirCfHMW
|
26
|
-
EfQV5k32vEGoSI+eG8zcGb9mwDeb/EWXAMGXrx2YuYFu7txtwC2mZXc=
|
27
|
-
-----END RSA PRIVATE KEY-----
|
data/config/dev_console_env.rb
DELETED
@@ -1,78 +0,0 @@
|
|
1
|
-
cert_dir = File.join(File.dirname(__FILE__), "certs")
|
2
|
-
|
3
|
-
Dor::Config.configure do
|
4
|
-
|
5
|
-
ssl do
|
6
|
-
cert_file File.join(cert_dir,"robots-dor-dev.crt")
|
7
|
-
key_file File.join(cert_dir,"robots-dor-dev.key")
|
8
|
-
key_pass ''
|
9
|
-
end
|
10
|
-
|
11
|
-
suri do
|
12
|
-
mint_ids true
|
13
|
-
id_namespace 'druid'
|
14
|
-
url 'https://lyberservices-dev.stanford.edu'
|
15
|
-
user 'labware'
|
16
|
-
pass 'lyberteam'
|
17
|
-
end
|
18
|
-
|
19
|
-
metadata do
|
20
|
-
exist.url 'http://viewer:l3l%40nd@lyberapps-dev.stanford.edu/exist/rest/'
|
21
|
-
catalog.url 'http://lyberservices-prod.stanford.edu/catalog/mods'
|
22
|
-
end
|
23
|
-
|
24
|
-
stacks do
|
25
|
-
document_cache_host 'purl-dev.stanford.edu'
|
26
|
-
local_stacks_root '/stacks'
|
27
|
-
local_document_cache_root '/purl/document_cache'
|
28
|
-
local_workspace_root '/dor/workspace'
|
29
|
-
end
|
30
|
-
|
31
|
-
solrizer.url 'http://sul-solr.stanford.edu/solr/argo_test'
|
32
|
-
fedora.url 'https://sul-dor-test.stanford.edu/fedora'
|
33
|
-
workflow.url 'https://lyberservices-dev.stanford.edu/workflow/'
|
34
|
-
dor_services.url 'https://dorAdmin:dorAdmin@sul-lyberservices-dev.stanford.edu/dor'
|
35
|
-
|
36
|
-
cleanup do
|
37
|
-
local_workspace_root '/dor/workspace'
|
38
|
-
local_export_home '/dor/export'
|
39
|
-
end
|
40
|
-
|
41
|
-
sdr do
|
42
|
-
url 'https://sdrAdmin:sdrAdmin@sdr-services-test.stanford.edu/sdr/'
|
43
|
-
local_workspace_root '/dor/workspace'
|
44
|
-
local_export_home '/dor/export'
|
45
|
-
datastreams do
|
46
|
-
administrativeMetadata 'optional'
|
47
|
-
contentMetadata 'optional'
|
48
|
-
descMetadata 'required'
|
49
|
-
defaultObjectRights 'optional'
|
50
|
-
events 'optional'
|
51
|
-
embargoMetadata 'optional'
|
52
|
-
identityMetadata 'required'
|
53
|
-
provenanceMetadata 'required'
|
54
|
-
relationshipMetadata 'required'
|
55
|
-
rightsMetadata 'optional'
|
56
|
-
roleMetadata 'optional'
|
57
|
-
sourceMetadata 'optional'
|
58
|
-
technicalMetadata 'optional'
|
59
|
-
versionMetadata 'required'
|
60
|
-
workflows 'optional'
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
accessioning_robot_sleep_time 30
|
65
|
-
|
66
|
-
end
|
67
|
-
|
68
|
-
|
69
|
-
#WORKFLOW_URI = 'http://lyberservices-test.stanford.edu/workflow'
|
70
|
-
|
71
|
-
# Constants for Dor::WorkflowService
|
72
|
-
#module Dor
|
73
|
-
# CREATE_WORKFLOW = DOR_CREATE_WORKFLOW = true
|
74
|
-
# WF_URI = 'http://lyberservices-test.stanford.edu/workflow'
|
75
|
-
#end
|
76
|
-
|
77
|
-
# External application locations
|
78
|
-
JHOVE_HOME = File.join(ENV['HOME'], 'jhoveToolkit')
|