dor-workflow-service 2.11.0 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +2 -2
- data/lib/dor/services/workflow_service.rb +5 -1
- data/lib/dor/workflow_version.rb +1 -1
- data/spec/workflow_service_spec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e6c5805e79584b2d589228b7aeb42594a4bc95574270780825c2895dad05ade
|
4
|
+
data.tar.gz: 7aca0e0086cdf447f8a04eec4ae74d12ef9bcaa7839b8553bc578447fdaf057d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aac7c412e1f9514753cc5505206bb38f18887fb762507104407a7e60d0764946645800c87e0112d7ad66243fbfd60c0476df9d1cfc348537881c52fee02ae513
|
7
|
+
data.tar.gz: 249ce3b4527851fed63841e74def916ea7d5b04bbc49f368900b5c531a3ce6f5ea508df988ee1e8a1ba01efc21d53da43c4a8fe2916f431bcbdfd1b29e2ea798
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2019-04-
|
3
|
+
# on 2019-04-04 15:30:18 -0500 using RuboCop version 0.63.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -23,7 +23,7 @@ Metrics/AbcSize:
|
|
23
23
|
# Offense count: 1
|
24
24
|
# Configuration parameters: CountComments.
|
25
25
|
Metrics/ClassLength:
|
26
|
-
Max:
|
26
|
+
Max: 307
|
27
27
|
|
28
28
|
# Offense count: 3
|
29
29
|
# Configuration parameters: CountComments, ExcludedMethods.
|
@@ -177,7 +177,7 @@ module Dor
|
|
177
177
|
# @param [String] workflow_name The name of the workflow
|
178
178
|
# @return [Workflow::Response::Workflow]
|
179
179
|
def workflow(repo: 'dor', pid:, workflow_name:)
|
180
|
-
xml =
|
180
|
+
xml = workflow_xml(repo, pid, workflow_name)
|
181
181
|
Workflow::Response::Workflow.new(xml: xml)
|
182
182
|
end
|
183
183
|
|
@@ -390,6 +390,8 @@ module Dor
|
|
390
390
|
#
|
391
391
|
# @return [Integer] Number of objects with this repository:workflow:step that have a status of 'error'
|
392
392
|
def count_errored_for_workstep(workflow, step, repository = 'dor')
|
393
|
+
Deprecation.warn(self, 'count_errored_for_workstep is deprecated and will be removed in dor-workflow-service version 3. Use count_objects_in_step instead.')
|
394
|
+
|
393
395
|
count_objects_in_step(workflow, step, 'error', repository)
|
394
396
|
end
|
395
397
|
|
@@ -401,6 +403,8 @@ module Dor
|
|
401
403
|
#
|
402
404
|
# @return [Integer] Number of objects with this repository:workflow:step that have a status of 'queued'
|
403
405
|
def count_queued_for_workstep(workflow, step, repository = 'dor')
|
406
|
+
Deprecation.warn(self, 'count_queued_for_workstep is deprecated and will be removed in dor-workflow-service version 3. Use count_objects_in_step instead.')
|
407
|
+
|
404
408
|
count_objects_in_step(workflow, step, 'queued', repository)
|
405
409
|
end
|
406
410
|
|
data/lib/dor/workflow_version.rb
CHANGED
@@ -584,6 +584,7 @@ RSpec.describe Dor::WorkflowService do
|
|
584
584
|
|
585
585
|
describe 'count_errored_for_workstep' do
|
586
586
|
it 'counts how many steps are errored out' do
|
587
|
+
expect(Deprecation).to receive(:warn)
|
587
588
|
expect(described_class.count_errored_for_workstep(@workflow, @step, @repository)).to eq(1)
|
588
589
|
end
|
589
590
|
end
|
@@ -609,6 +610,7 @@ RSpec.describe Dor::WorkflowService do
|
|
609
610
|
end
|
610
611
|
|
611
612
|
it 'counts how many steps are errored out' do
|
613
|
+
expect(Deprecation).to receive(:warn)
|
612
614
|
expect(described_class.count_queued_for_workstep(@workflow, @step, @repository)).to eq(1)
|
613
615
|
end
|
614
616
|
end
|
@@ -724,7 +726,7 @@ RSpec.describe Dor::WorkflowService do
|
|
724
726
|
XML
|
725
727
|
end
|
726
728
|
before do
|
727
|
-
allow(described_class).to receive(:
|
729
|
+
allow(described_class).to receive(:workflow_xml) { xml }
|
728
730
|
end
|
729
731
|
|
730
732
|
it 'it returns a workflow' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-workflow-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Willy Mene
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-04-
|
12
|
+
date: 2019-04-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|